File: | var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp |
Warning: | line 2057, column 3 Use of memory after it is freed |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
1 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | |||
2 | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ | |||
3 | /* This Source Code Form is subject to the terms of the Mozilla Public | |||
4 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, | |||
5 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ | |||
6 | ||||
7 | #include "ActorsParent.h" | |||
8 | ||||
9 | #include <inttypes.h> | |||
10 | #include <math.h> | |||
11 | #include <stdlib.h> | |||
12 | #include <string.h> | |||
13 | #include <algorithm> | |||
14 | #include <cstdint> | |||
15 | #include <functional> | |||
16 | #include <iterator> | |||
17 | #include <new> | |||
18 | #include <numeric> | |||
19 | #include <tuple> | |||
20 | #include <type_traits> | |||
21 | #include <utility> | |||
22 | #include "ActorsParentCommon.h" | |||
23 | #include "CrashAnnotations.h" | |||
24 | #include "DatabaseFileInfo.h" | |||
25 | #include "DatabaseFileManager.h" | |||
26 | #include "DatabaseFileManagerImpl.h" | |||
27 | #include "DBSchema.h" | |||
28 | #include "ErrorList.h" | |||
29 | #include "IDBCursorType.h" | |||
30 | #include "IDBObjectStore.h" | |||
31 | #include "IDBTransaction.h" | |||
32 | #include "IndexedDBCommon.h" | |||
33 | #include "IndexedDatabaseInlines.h" | |||
34 | #include "IndexedDatabaseManager.h" | |||
35 | #include "IndexedDBCipherKeyManager.h" | |||
36 | #include "KeyPath.h" | |||
37 | #include "MainThreadUtils.h" | |||
38 | #include "ProfilerHelpers.h" | |||
39 | #include "ReportInternalError.h" | |||
40 | #include "SafeRefPtr.h" | |||
41 | #include "SchemaUpgrades.h" | |||
42 | #include "chrome/common/ipc_channel.h" | |||
43 | #include "ipc/IPCMessageUtils.h" | |||
44 | #include "js/RootingAPI.h" | |||
45 | #include "js/StructuredClone.h" | |||
46 | #include "js/Value.h" | |||
47 | #include "jsapi.h" | |||
48 | #include "mozIStorageAsyncConnection.h" | |||
49 | #include "mozIStorageConnection.h" | |||
50 | #include "mozIStorageFunction.h" | |||
51 | #include "mozIStorageProgressHandler.h" | |||
52 | #include "mozIStorageService.h" | |||
53 | #include "mozIStorageStatement.h" | |||
54 | #include "mozIStorageValueArray.h" | |||
55 | #include "mozStorageCID.h" | |||
56 | #include "mozStorageHelper.h" | |||
57 | #include "mozilla/Algorithm.h" | |||
58 | #include "mozilla/ArrayAlgorithm.h" | |||
59 | #include "mozilla/ArrayIterator.h" | |||
60 | #include "mozilla/Assertions.h" | |||
61 | #include "mozilla/Atomics.h" | |||
62 | #include "mozilla/Attributes.h" | |||
63 | #include "mozilla/Casting.h" | |||
64 | #include "mozilla/CondVar.h" | |||
65 | #include "mozilla/DebugOnly.h" | |||
66 | #include "mozilla/EndianUtils.h" | |||
67 | #include "mozilla/ErrorNames.h" | |||
68 | #include "mozilla/ErrorResult.h" | |||
69 | #include "mozilla/InitializedOnce.h" | |||
70 | #include "mozilla/Logging.h" | |||
71 | #include "mozilla/MacroForEach.h" | |||
72 | #include "mozilla/Maybe.h" | |||
73 | #include "mozilla/Monitor.h" | |||
74 | #include "mozilla/Mutex.h" | |||
75 | #include "mozilla/NotNull.h" | |||
76 | #include "mozilla/Preferences.h" | |||
77 | #include "mozilla/ProfilerLabels.h" | |||
78 | #include "mozilla/RefCountType.h" | |||
79 | #include "mozilla/RefCounted.h" | |||
80 | #include "mozilla/RemoteLazyInputStreamParent.h" | |||
81 | #include "mozilla/RemoteLazyInputStreamStorage.h" | |||
82 | #include "mozilla/Result.h" | |||
83 | #include "mozilla/ResultExtensions.h" | |||
84 | #include "mozilla/SchedulerGroup.h" | |||
85 | #include "mozilla/SnappyCompressOutputStream.h" | |||
86 | #include "mozilla/SpinEventLoopUntil.h" | |||
87 | #include "mozilla/StaticPtr.h" | |||
88 | #include "mozilla/TimeStamp.h" | |||
89 | #include "mozilla/UniquePtr.h" | |||
90 | #include "mozilla/Unused.h" | |||
91 | #include "mozilla/Variant.h" | |||
92 | #include "mozilla/dom/BlobImpl.h" | |||
93 | #include "mozilla/dom/ContentParent.h" | |||
94 | #include "mozilla/dom/FileBlobImpl.h" | |||
95 | #include "mozilla/dom/FlippedOnce.h" | |||
96 | #include "mozilla/dom/IDBCursorBinding.h" | |||
97 | #include "mozilla/dom/IDBFactory.h" | |||
98 | #include "mozilla/dom/IPCBlob.h" | |||
99 | #include "mozilla/dom/IPCBlobUtils.h" | |||
100 | #include "mozilla/dom/IndexedDatabase.h" | |||
101 | #include "mozilla/dom/Nullable.h" | |||
102 | #include "mozilla/dom/PContentParent.h" | |||
103 | #include "mozilla/dom/ScriptSettings.h" | |||
104 | #include "mozilla/dom/indexedDB/IDBResult.h" | |||
105 | #include "mozilla/dom/indexedDB/Key.h" | |||
106 | #include "mozilla/dom/indexedDB/PBackgroundIDBCursor.h" | |||
107 | #include "mozilla/dom/indexedDB/PBackgroundIDBCursorParent.h" | |||
108 | #include "mozilla/dom/indexedDB/PBackgroundIDBDatabase.h" | |||
109 | #include "mozilla/dom/indexedDB/PBackgroundIDBDatabaseFileParent.h" | |||
110 | #include "mozilla/dom/indexedDB/PBackgroundIDBDatabaseParent.h" | |||
111 | #include "mozilla/dom/indexedDB/PBackgroundIDBFactory.h" | |||
112 | #include "mozilla/dom/indexedDB/PBackgroundIDBFactoryParent.h" | |||
113 | #include "mozilla/dom/indexedDB/PBackgroundIDBFactoryRequestParent.h" | |||
114 | #include "mozilla/dom/indexedDB/PBackgroundIDBRequest.h" | |||
115 | #include "mozilla/dom/indexedDB/PBackgroundIDBRequestParent.h" | |||
116 | #include "mozilla/dom/indexedDB/PBackgroundIDBSharedTypes.h" | |||
117 | #include "mozilla/dom/indexedDB/PBackgroundIDBTransactionParent.h" | |||
118 | #include "mozilla/dom/indexedDB/PBackgroundIDBVersionChangeTransactionParent.h" | |||
119 | #include "mozilla/dom/indexedDB/PBackgroundIndexedDBUtilsParent.h" | |||
120 | #include "mozilla/dom/ipc/IdType.h" | |||
121 | #include "mozilla/dom/quota/Assertions.h" | |||
122 | #include "mozilla/dom/quota/CachingDatabaseConnection.h" | |||
123 | #include "mozilla/dom/quota/CheckedUnsafePtr.h" | |||
124 | #include "mozilla/dom/quota/Client.h" | |||
125 | #include "mozilla/dom/quota/ClientImpl.h" | |||
126 | #include "mozilla/dom/quota/DebugOnlyMacro.h" | |||
127 | #include "mozilla/dom/quota/DirectoryLock.h" | |||
128 | #include "mozilla/dom/quota/DirectoryLockInlines.h" | |||
129 | #include "mozilla/dom/quota/DecryptingInputStream_impl.h" | |||
130 | #include "mozilla/dom/quota/EncryptingOutputStream_impl.h" | |||
131 | #include "mozilla/dom/quota/ErrorHandling.h" | |||
132 | #include "mozilla/dom/quota/FileStreams.h" | |||
133 | #include "mozilla/dom/quota/OriginScope.h" | |||
134 | #include "mozilla/dom/quota/PersistenceType.h" | |||
135 | #include "mozilla/dom/quota/QuotaCommon.h" | |||
136 | #include "mozilla/dom/quota/QuotaManager.h" | |||
137 | #include "mozilla/dom/quota/QuotaObject.h" | |||
138 | #include "mozilla/dom/quota/ResultExtensions.h" | |||
139 | #include "mozilla/dom/quota/ThreadUtils.h" | |||
140 | #include "mozilla/dom/quota/UsageInfo.h" | |||
141 | #include "mozilla/fallible.h" | |||
142 | #include "mozilla/ipc/BackgroundParent.h" | |||
143 | #include "mozilla/ipc/BackgroundUtils.h" | |||
144 | #include "mozilla/ipc/InputStreamParams.h" | |||
145 | #include "mozilla/ipc/PBackgroundParent.h" | |||
146 | #include "mozilla/ipc/PBackgroundSharedTypes.h" | |||
147 | #include "mozilla/ipc/ProtocolUtils.h" | |||
148 | #include "mozilla/mozalloc.h" | |||
149 | #include "mozilla/storage/Variant.h" | |||
150 | #include "nsBaseHashtable.h" | |||
151 | #include "nsCOMPtr.h" | |||
152 | #include "nsClassHashtable.h" | |||
153 | #include "nsContentUtils.h" | |||
154 | #include "nsTHashMap.h" | |||
155 | #include "nsDebug.h" | |||
156 | #include "nsError.h" | |||
157 | #include "nsEscape.h" | |||
158 | #include "nsHashKeys.h" | |||
159 | #include "nsIAsyncInputStream.h" | |||
160 | #include "nsID.h" | |||
161 | #include "nsIDUtils.h" | |||
162 | #include "nsIDirectoryEnumerator.h" | |||
163 | #include "nsIEventTarget.h" | |||
164 | #include "nsIFile.h" | |||
165 | #include "nsIFileProtocolHandler.h" | |||
166 | #include "nsIFileStreams.h" | |||
167 | #include "nsIFileURL.h" | |||
168 | #include "nsIInputStream.h" | |||
169 | #include "nsIOutputStream.h" | |||
170 | #include "nsIProtocolHandler.h" | |||
171 | #include "nsIRunnable.h" | |||
172 | #include "nsISupports.h" | |||
173 | #include "nsISupportsPriority.h" | |||
174 | #include "nsISupportsUtils.h" | |||
175 | #include "nsIThread.h" | |||
176 | #include "nsIThreadInternal.h" | |||
177 | #include "nsITimer.h" | |||
178 | #include "nsIURIMutator.h" | |||
179 | #include "nsIVariant.h" | |||
180 | #include "nsLiteralString.h" | |||
181 | #include "nsNetCID.h" | |||
182 | #include "nsPrintfCString.h" | |||
183 | #include "nsProxyRelease.h" | |||
184 | #include "nsServiceManagerUtils.h" | |||
185 | #include "nsStreamUtils.h" | |||
186 | #include "nsString.h" | |||
187 | #include "nsStringFlags.h" | |||
188 | #include "nsStringFwd.h" | |||
189 | #include "nsTArray.h" | |||
190 | #include "nsTHashSet.h" | |||
191 | #include "nsTHashtable.h" | |||
192 | #include "nsTLiteralString.h" | |||
193 | #include "nsTStringRepr.h" | |||
194 | #include "nsThreadPool.h" | |||
195 | #include "nsThreadUtils.h" | |||
196 | #include "nscore.h" | |||
197 | #include "prinrval.h" | |||
198 | #include "prio.h" | |||
199 | #include "prsystem.h" | |||
200 | #include "prthread.h" | |||
201 | #include "prtime.h" | |||
202 | #include "prtypes.h" | |||
203 | #include "snappy/snappy.h" | |||
204 | ||||
205 | struct JSContext; | |||
206 | class JSObject; | |||
207 | template <class T> | |||
208 | class nsPtrHashKey; | |||
209 | ||||
210 | #define IDB_DEBUG_LOG(_args) \ | |||
211 | MOZ_LOG(IndexedDatabaseManager::GetLoggingModule(), LogLevel::Debug, _args)do { const ::mozilla::LogModule* moz_real_module = IndexedDatabaseManager ::GetLoggingModule(); if ((__builtin_expect(!!(mozilla::detail ::log_test(moz_real_module, LogLevel::Debug)), 0))) { mozilla ::detail::log_print(moz_real_module, LogLevel::Debug, MOZ_LOG_EXPAND_ARGS _args); } } while (0) | |||
212 | ||||
213 | #if defined(MOZ_WIDGET_ANDROID) | |||
214 | # define IDB_MOBILE | |||
215 | #endif | |||
216 | ||||
217 | // Helper macros to reduce assertion verbosity | |||
218 | // AUUF == ASSERT_UNREACHABLE_UNLESS_FUZZING | |||
219 | #ifdef DEBUG1 | |||
220 | # ifdef FUZZING | |||
221 | # define NS_AUUF_OR_WARN(...)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" ... ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 221); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" ... ")"); do { *((volatile int*)__null) = 221; __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false) NS_WARNING(__VA_ARGS__)NS_DebugBreak(NS_DEBUG_WARNING, __VA_ARGS__, nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 221) | |||
222 | # else | |||
223 | # define NS_AUUF_OR_WARN(...)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" ... ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 223); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" ... ")"); do { *((volatile int*)__null) = 223; __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false) MOZ_ASSERT(false, __VA_ARGS__)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" __VA_ARGS__ ")" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 223); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" __VA_ARGS__ ")"); do { *((volatile int*)__null) = 223; __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false) | |||
224 | # endif | |||
225 | # define NS_AUUF_OR_WARN_IF(cond)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cond" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 225); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cond" ")"); do { *((volatile int*)__null) = 225; __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((cond)) \ | |||
226 | [](bool aCond) { \ | |||
227 | if (MOZ_UNLIKELY(aCond)(__builtin_expect(!!(aCond), 0))) { \ | |||
228 | NS_AUUF_OR_WARN(#cond)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" #cond ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 228); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" #cond ")"); do { *((volatile int*)__null) = 228; __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); \ | |||
229 | } \ | |||
230 | return aCond; \ | |||
231 | }((cond)) | |||
232 | #else | |||
233 | # define NS_AUUF_OR_WARN(...)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" ... ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 233); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" ... ")"); do { *((volatile int*)__null) = 233; __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false) \ | |||
234 | do { \ | |||
235 | } while (false) | |||
236 | # define NS_AUUF_OR_WARN_IF(cond)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cond" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 236); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cond" ")"); do { *((volatile int*)__null) = 236; __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((cond)) static_cast<bool>(cond) | |||
237 | #endif | |||
238 | ||||
239 | namespace mozilla { | |||
240 | ||||
241 | namespace dom::indexedDB { | |||
242 | ||||
243 | using namespace mozilla::dom::quota; | |||
244 | using namespace mozilla::ipc; | |||
245 | using mozilla::dom::quota::Client; | |||
246 | ||||
247 | namespace { | |||
248 | ||||
249 | class ConnectionPool; | |||
250 | class Database; | |||
251 | struct DatabaseActorInfo; | |||
252 | class DatabaseFile; | |||
253 | class DatabaseLoggingInfo; | |||
254 | class DatabaseMaintenance; | |||
255 | class Factory; | |||
256 | class Maintenance; | |||
257 | class OpenDatabaseOp; | |||
258 | class TransactionBase; | |||
259 | class TransactionDatabaseOperationBase; | |||
260 | class VersionChangeTransaction; | |||
261 | template <bool StatementHasIndexKeyBindings> | |||
262 | struct ValuePopulateResponseHelper; | |||
263 | ||||
264 | /******************************************************************************* | |||
265 | * Constants | |||
266 | ******************************************************************************/ | |||
267 | ||||
268 | const int32_t kStorageProgressGranularity = 1000; | |||
269 | ||||
270 | // Changing the value here will override the page size of new databases only. | |||
271 | // A journal mode change and VACUUM are needed to change existing databases, so | |||
272 | // the best way to do that is to use the schema version upgrade mechanism. | |||
273 | const uint32_t kSQLitePageSizeOverride = | |||
274 | #ifdef IDB_MOBILE | |||
275 | 2048; | |||
276 | #else | |||
277 | 4096; | |||
278 | #endif | |||
279 | ||||
280 | static_assert(kSQLitePageSizeOverride == /* mozStorage default */ 0 || | |||
281 | (kSQLitePageSizeOverride % 2 == 0 && | |||
282 | kSQLitePageSizeOverride >= 512 && | |||
283 | kSQLitePageSizeOverride <= 65536), | |||
284 | "Must be 0 (disabled) or a power of 2 between 512 and 65536!"); | |||
285 | ||||
286 | // Set to -1 to use SQLite's default, 0 to disable, or some positive number to | |||
287 | // enforce a custom limit. | |||
288 | const int32_t kMaxWALPages = 5000; // 20MB on desktop, 10MB on mobile. | |||
289 | ||||
290 | // Set to some multiple of the page size to grow the database in larger chunks. | |||
291 | const uint32_t kSQLiteGrowthIncrement = kSQLitePageSizeOverride * 2; | |||
292 | ||||
293 | static_assert(kSQLiteGrowthIncrement >= 0 && | |||
294 | kSQLiteGrowthIncrement % kSQLitePageSizeOverride == 0 && | |||
295 | kSQLiteGrowthIncrement < uint32_t(INT32_MAX(2147483647)), | |||
296 | "Must be 0 (disabled) or a positive multiple of the page size!"); | |||
297 | ||||
298 | // The maximum number of threads that can be used for database activity at a | |||
299 | // single time. Please keep in sync with the constants in | |||
300 | // test_connection_idle_maintenance*.js tests | |||
301 | const uint32_t kMaxConnectionThreadCount = 20; | |||
302 | ||||
303 | static_assert(kMaxConnectionThreadCount, "Must have at least one thread!"); | |||
304 | ||||
305 | // The maximum number of threads to keep when idle. Until we switch to the STS | |||
306 | // pool, we can reduce the number of idle threads kept around thanks to the | |||
307 | // grace timeout. | |||
308 | const uint32_t kMaxIdleConnectionThreadCount = 1; | |||
309 | ||||
310 | static_assert(kMaxConnectionThreadCount >= kMaxIdleConnectionThreadCount, | |||
311 | "Idle thread limit must be less than total thread limit!"); | |||
312 | ||||
313 | // The length of time that wanted idle threads will stay alive before being shut | |||
314 | // down. | |||
315 | const uint32_t kConnectionThreadMaxIdleMS = 30 * 1000; // 30 seconds | |||
316 | ||||
317 | // The length of time that excess idle threads will stay alive before being shut | |||
318 | // down. | |||
319 | const uint32_t kConnectionThreadGraceIdleMS = 500; // 0.5 seconds | |||
320 | ||||
321 | // The length of time that database connections will be held open after all | |||
322 | // transactions have completed before doing idle maintenance. Please keep in | |||
323 | // sync with the timeouts in test_connection_idle_maintenance*.js tests | |||
324 | const uint32_t kConnectionIdleMaintenanceMS = 2 * 1000; // 2 seconds | |||
325 | ||||
326 | // The length of time that database connections will be held open after all | |||
327 | // transactions and maintenance have completed. | |||
328 | const uint32_t kConnectionIdleCloseMS = 10 * 1000; // 10 seconds | |||
329 | ||||
330 | #define SAVEPOINT_CLAUSE"SAVEPOINT sp;"_ns "SAVEPOINT sp;"_ns | |||
331 | ||||
332 | // For efficiency reasons, kEncryptedStreamBlockSize must be a multiple of large | |||
333 | // 4k disk sectors. | |||
334 | static_assert(kEncryptedStreamBlockSize % 4096 == 0); | |||
335 | // Similarly, the file copy buffer size must be a multiple of the encrypted | |||
336 | // block size. | |||
337 | static_assert(kFileCopyBufferSize % kEncryptedStreamBlockSize == 0); | |||
338 | ||||
339 | constexpr auto kFileManagerDirectoryNameSuffix = u".files"_ns; | |||
340 | constexpr auto kSQLiteSuffix = u".sqlite"_ns; | |||
341 | constexpr auto kSQLiteJournalSuffix = u".sqlite-journal"_ns; | |||
342 | constexpr auto kSQLiteSHMSuffix = u".sqlite-shm"_ns; | |||
343 | constexpr auto kSQLiteWALSuffix = u".sqlite-wal"_ns; | |||
344 | ||||
345 | // The following constants define all names of binding parameters in statements, | |||
346 | // where they are bound by name. This should include all parameter names which | |||
347 | // are bound by name. Binding may be done by index when the statement definition | |||
348 | // and binding are done in the same local scope, and no other reasons prevent | |||
349 | // using the indexes (e.g. multiple statement variants with differing number or | |||
350 | // order of parameters). Neither the styles of specifying parameter names | |||
351 | // (literally vs. via these constants) nor the binding styles (by index vs. by | |||
352 | // name) should not be mixed for the same statement. The decision must be made | |||
353 | // for each statement based on the proximity of statement and binding calls. | |||
354 | constexpr auto kStmtParamNameCurrentKey = "current_key"_ns; | |||
355 | constexpr auto kStmtParamNameRangeBound = "range_bound"_ns; | |||
356 | constexpr auto kStmtParamNameObjectStorePosition = "object_store_position"_ns; | |||
357 | constexpr auto kStmtParamNameLowerKey = "lower_key"_ns; | |||
358 | constexpr auto kStmtParamNameUpperKey = "upper_key"_ns; | |||
359 | constexpr auto kStmtParamNameKey = "key"_ns; | |||
360 | constexpr auto kStmtParamNameObjectStoreId = "object_store_id"_ns; | |||
361 | constexpr auto kStmtParamNameIndexId = "index_id"_ns; | |||
362 | // TODO: Maybe the uses of kStmtParamNameId should be replaced by more | |||
363 | // specific constants such as kStmtParamNameObjectStoreId. | |||
364 | constexpr auto kStmtParamNameId = "id"_ns; | |||
365 | constexpr auto kStmtParamNameValue = "value"_ns; | |||
366 | constexpr auto kStmtParamNameObjectDataKey = "object_data_key"_ns; | |||
367 | constexpr auto kStmtParamNameIndexDataValues = "index_data_values"_ns; | |||
368 | constexpr auto kStmtParamNameData = "data"_ns; | |||
369 | constexpr auto kStmtParamNameFileIds = "file_ids"_ns; | |||
370 | constexpr auto kStmtParamNameValueLocale = "value_locale"_ns; | |||
371 | constexpr auto kStmtParamNameLimit = "limit"_ns; | |||
372 | ||||
373 | // The following constants define some names of columns in tables, which are | |||
374 | // referred to in remote locations, e.g. in calls to | |||
375 | // GetBindingClauseForKeyRange. | |||
376 | constexpr auto kColumnNameKey = "key"_ns; | |||
377 | constexpr auto kColumnNameValue = "value"_ns; | |||
378 | constexpr auto kColumnNameAliasSortKey = "sort_column"_ns; | |||
379 | ||||
380 | // SQL fragments used at multiple locations. | |||
381 | constexpr auto kOpenLimit = " LIMIT "_ns; | |||
382 | ||||
383 | // The deletion marker file is created before RemoveDatabaseFilesAndDirectory | |||
384 | // begins deleting a database. It is removed as the last step of deletion. If a | |||
385 | // deletion marker file is found when initializing the origin, the deletion | |||
386 | // routine is run again to ensure that the database and all of its related files | |||
387 | // are removed. The primary goal of this mechanism is to avoid situations where | |||
388 | // a database has been partially deleted, leading to inconsistent state for the | |||
389 | // origin. | |||
390 | constexpr auto kIdbDeletionMarkerFilePrefix = u"idb-deleting-"_ns; | |||
391 | ||||
392 | const uint32_t kDeleteTimeoutMs = 1000; | |||
393 | ||||
394 | #ifdef DEBUG1 | |||
395 | ||||
396 | const int32_t kDEBUGThreadPriority = nsISupportsPriority::PRIORITY_NORMAL; | |||
397 | const uint32_t kDEBUGThreadSleepMS = 0; | |||
398 | ||||
399 | // Set to a non-zero number to enable debugging of transaction event targets. | |||
400 | // It will cause sleeping after every transaction runnable! | |||
401 | // | |||
402 | // This can be useful for discovering race conditions related to switching to | |||
403 | // another thread. Such races are usually avoided by using MozPromise or | |||
404 | // RunAfterProcessingCurrentEvent. Chaos mode doesn't always help with | |||
405 | // uncovering these issues, and only a precisely targeted sleep call can | |||
406 | // simulate the problem. | |||
407 | const uint32_t kDEBUGTransactionThreadSleepMS = 0; | |||
408 | ||||
409 | // Make sure that we notice if we ever accidentally check in a non-zero value. | |||
410 | # ifdef MOZILLA_OFFICIAL | |||
411 | static_assert(kDEBUGTransactionThreadSleepMS == 0); | |||
412 | # endif | |||
413 | ||||
414 | #endif | |||
415 | ||||
416 | /******************************************************************************* | |||
417 | * Metadata classes | |||
418 | ******************************************************************************/ | |||
419 | ||||
420 | // Can be instantiated either on the QuotaManager IO thread or on a | |||
421 | // versionchange transaction thread. These threads can never race so this is | |||
422 | // totally safe. | |||
423 | struct FullIndexMetadata { | |||
424 | IndexMetadata mCommonMetadata = {0, nsString(), KeyPath(0), nsCString(), | |||
425 | false, false, false}; | |||
426 | ||||
427 | FlippedOnce<false> mDeleted; | |||
428 | ||||
429 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FullIndexMetadata)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<FullIndexMetadata>, "Reference-counted class " "FullIndexMetadata" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 429); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 429; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this ), (count), ("FullIndexMetadata"), (uint32_t)(sizeof(*this))) ; return (nsrefcnt)count; } MozExternalRefCountType Release(void ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 429); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 429 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("FullIndexMetadata")); if (count == 0) { delete (this ); return 0; } return count; } using HasThreadSafeRefCnt = std ::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt ; public: | |||
430 | ||||
431 | private: | |||
432 | ~FullIndexMetadata() = default; | |||
433 | }; | |||
434 | ||||
435 | using IndexTable = nsTHashMap<nsUint64HashKey, SafeRefPtr<FullIndexMetadata>>; | |||
436 | ||||
437 | // Can be instantiated either on the QuotaManager IO thread or on a | |||
438 | // versionchange transaction thread. These threads can never race so this is | |||
439 | // totally safe. | |||
440 | struct FullObjectStoreMetadata { | |||
441 | ObjectStoreMetadata mCommonMetadata; | |||
442 | IndexTable mIndexes; | |||
443 | ||||
444 | // The auto increment ids are touched on both the background thread and the | |||
445 | // transaction I/O thread, and they must be kept in sync, so we need a mutex | |||
446 | // to protect them. | |||
447 | struct AutoIncrementIds { | |||
448 | int64_t next; | |||
449 | int64_t committed; | |||
450 | }; | |||
451 | DataMutex<AutoIncrementIds> mAutoIncrementIds; | |||
452 | ||||
453 | FlippedOnce<false> mDeleted; | |||
454 | ||||
455 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FullObjectStoreMetadata)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<FullObjectStoreMetadata>, "Reference-counted class " "FullObjectStoreMetadata" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 455); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 455; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this ), (count), ("FullObjectStoreMetadata"), (uint32_t)(sizeof(*this ))); return (nsrefcnt)count; } MozExternalRefCountType Release (void) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 455); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 455 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("FullObjectStoreMetadata")); if (count == 0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt = std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; public:; | |||
456 | ||||
457 | bool HasLiveIndexes() const; | |||
458 | ||||
459 | FullObjectStoreMetadata(ObjectStoreMetadata aCommonMetadata, | |||
460 | const AutoIncrementIds& aAutoIncrementIds) | |||
461 | : mCommonMetadata{std::move(aCommonMetadata)}, | |||
462 | mAutoIncrementIds{AutoIncrementIds{aAutoIncrementIds}, | |||
463 | "FullObjectStoreMetadata"} {} | |||
464 | ||||
465 | private: | |||
466 | ~FullObjectStoreMetadata() = default; | |||
467 | }; | |||
468 | ||||
469 | using ObjectStoreTable = | |||
470 | nsTHashMap<nsUint64HashKey, SafeRefPtr<FullObjectStoreMetadata>>; | |||
471 | ||||
472 | static_assert( | |||
473 | std::is_same_v<IndexOrObjectStoreId, | |||
474 | std::remove_cv_t<std::remove_reference_t< | |||
475 | decltype(std::declval<const ObjectStoreGetParams&>() | |||
476 | .objectStoreId())>>>); | |||
477 | static_assert( | |||
478 | std::is_same_v< | |||
479 | IndexOrObjectStoreId, | |||
480 | std::remove_cv_t<std::remove_reference_t< | |||
481 | decltype(std::declval<const IndexGetParams&>().objectStoreId())>>>); | |||
482 | ||||
483 | struct FullDatabaseMetadata final : AtomicSafeRefCounted<FullDatabaseMetadata> { | |||
484 | DatabaseMetadata mCommonMetadata; | |||
485 | nsCString mDatabaseId; | |||
486 | nsString mFilePath; | |||
487 | ObjectStoreTable mObjectStores; | |||
488 | ||||
489 | IndexOrObjectStoreId mNextObjectStoreId = 0; | |||
490 | IndexOrObjectStoreId mNextIndexId = 0; | |||
491 | ||||
492 | public: | |||
493 | explicit FullDatabaseMetadata(const DatabaseMetadata& aCommonMetadata) | |||
494 | : mCommonMetadata(aCommonMetadata) { | |||
495 | AssertIsOnBackgroundThread(); | |||
496 | } | |||
497 | ||||
498 | [[nodiscard]] SafeRefPtr<FullDatabaseMetadata> Duplicate() const; | |||
499 | ||||
500 | MOZ_DECLARE_REFCOUNTED_TYPENAME(FullDatabaseMetadata)const char* typeName() const { return "FullDatabaseMetadata"; } size_t typeSize() const { return sizeof(*this); } | |||
501 | }; | |||
502 | ||||
503 | template <class Enumerable> | |||
504 | auto MatchMetadataNameOrId(const Enumerable& aEnumerable, | |||
505 | IndexOrObjectStoreId aId, | |||
506 | Maybe<const nsAString&> aName = Nothing()) { | |||
507 | AssertIsOnBackgroundThread(); | |||
508 | MOZ_ASSERT(aId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aId)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(aId))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("aId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 508); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aId" ")"); do { *((volatile int*)__null) = 508; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | |||
509 | ||||
510 | const auto it = std::find_if( | |||
511 | aEnumerable.cbegin(), aEnumerable.cend(), | |||
512 | [aId, aName](const auto& entry) { | |||
513 | MOZ_ASSERT(entry.GetKey() != 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey() != 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey() != 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey() != 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 513); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey() != 0" ")"); do { *((volatile int*)__null) = 513; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
514 | ||||
515 | const auto& value = entry.GetData(); | |||
516 | MOZ_ASSERT(value)do { static_assert( mozilla::detail::AssertionConditionType< decltype(value)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(value))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("value", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 516); AnnotateMozCrashReason("MOZ_ASSERT" "(" "value" ")"); do { *((volatile int*)__null) = 516; __attribute__((nomerge) ) ::abort(); } while (false); } } while (false); | |||
517 | ||||
518 | return !value->mDeleted && | |||
519 | (aId == value->mCommonMetadata.id() || | |||
520 | (aName && *aName == value->mCommonMetadata.name())); | |||
521 | }); | |||
522 | ||||
523 | return ToMaybeRef(it != aEnumerable.cend() ? it->GetData().unsafeGetRawPtr() | |||
524 | : nullptr); | |||
525 | } | |||
526 | ||||
527 | /******************************************************************************* | |||
528 | * SQLite functions | |||
529 | ******************************************************************************/ | |||
530 | ||||
531 | // WARNING: the hash function used for the database name must not change. | |||
532 | // That's why this function exists separately from mozilla::HashString(), even | |||
533 | // though it is (at the time of writing) equivalent. See bug 780408 and bug | |||
534 | // 940315 for details. | |||
535 | uint32_t HashName(const nsAString& aName) { | |||
536 | struct Helper { | |||
537 | static uint32_t RotateBitsLeft32(uint32_t aValue, uint8_t aBits) { | |||
538 | MOZ_ASSERT(aBits < 32)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aBits < 32)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aBits < 32))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aBits < 32", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 538); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aBits < 32" ")"); do { *((volatile int*)__null) = 538; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
539 | return (aValue << aBits) | (aValue >> (32 - aBits)); | |||
540 | } | |||
541 | }; | |||
542 | ||||
543 | static const uint32_t kGoldenRatioU32 = 0x9e3779b9u; | |||
544 | ||||
545 | return std::accumulate(aName.BeginReading(), aName.EndReading(), uint32_t(0), | |||
546 | [](uint32_t hash, char16_t ch) { | |||
547 | return kGoldenRatioU32 * | |||
548 | (Helper::RotateBitsLeft32(hash, 5) ^ ch); | |||
549 | }); | |||
550 | } | |||
551 | ||||
552 | nsresult ClampResultCode(nsresult aResultCode) { | |||
553 | if (NS_SUCCEEDED(aResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(aResultCode)), 1) )) || | |||
554 | NS_ERROR_GET_MODULE(aResultCode) == NS_ERROR_MODULE_DOM_INDEXEDDB33) { | |||
555 | return aResultCode; | |||
556 | } | |||
557 | ||||
558 | switch (aResultCode) { | |||
559 | case NS_ERROR_FILE_NO_DEVICE_SPACE: | |||
560 | return NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR; | |||
561 | case NS_ERROR_STORAGE_CONSTRAINT: | |||
562 | return NS_ERROR_DOM_INDEXEDDB_CONSTRAINT_ERR; | |||
563 | default: | |||
564 | #ifdef DEBUG1 | |||
565 | nsPrintfCString message("Converting non-IndexedDB error code (0x%" PRIX32"X" | |||
566 | ") to " | |||
567 | "NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR", | |||
568 | static_cast<uint32_t>(aResultCode)); | |||
569 | NS_WARNING(message.get())NS_DebugBreak(NS_DEBUG_WARNING, message.get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 569); | |||
570 | #else | |||
571 | ; | |||
572 | #endif | |||
573 | } | |||
574 | ||||
575 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 575, "UnknownErr"); | |||
576 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
577 | } | |||
578 | ||||
579 | Result<nsCOMPtr<nsIFileURL>, nsresult> GetDatabaseFileURL( | |||
580 | nsIFile& aDatabaseFile, const int64_t aDirectoryLockId, | |||
581 | const Maybe<CipherKey>& aMaybeKey) { | |||
582 | MOZ_ASSERT(aDirectoryLockId >= -1)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectoryLockId >= -1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= -1))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= -1" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 582); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= -1" ")"); do { *((volatile int*)__null) = 582; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
583 | ||||
584 | QM_TRY_INSPECT(auto tryResult3060 = (::mozilla::ToResultGet< nsCOMPtr< nsIProtocolHandler> >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype (aArgs)>(aArgs)...); }, "@mozilla.org/network/protocol;1?name=" "file")); if ((__builtin_expect(!!(tryResult3060.isErr()), 0 ))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/network/protocol;1?name=\" \"file\")" , tryResult3060.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 588, mozilla::dom::quota::Severity::Error); return tryResult3060 .propagateErr(); } const auto& protocolHandler = tryResult3060 .inspect(); | |||
585 | const auto& protocolHandler,auto tryResult3060 = (::mozilla::ToResultGet< nsCOMPtr< nsIProtocolHandler> >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype (aArgs)>(aArgs)...); }, "@mozilla.org/network/protocol;1?name=" "file")); if ((__builtin_expect(!!(tryResult3060.isErr()), 0 ))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/network/protocol;1?name=\" \"file\")" , tryResult3060.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 588, mozilla::dom::quota::Severity::Error); return tryResult3060 .propagateErr(); } const auto& protocolHandler = tryResult3060 .inspect(); | |||
586 | MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<nsIProtocolHandler>,auto tryResult3060 = (::mozilla::ToResultGet< nsCOMPtr< nsIProtocolHandler> >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype (aArgs)>(aArgs)...); }, "@mozilla.org/network/protocol;1?name=" "file")); if ((__builtin_expect(!!(tryResult3060.isErr()), 0 ))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/network/protocol;1?name=\" \"file\")" , tryResult3060.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 588, mozilla::dom::quota::Severity::Error); return tryResult3060 .propagateErr(); } const auto& protocolHandler = tryResult3060 .inspect(); | |||
587 | MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult3060 = (::mozilla::ToResultGet< nsCOMPtr< nsIProtocolHandler> >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype (aArgs)>(aArgs)...); }, "@mozilla.org/network/protocol;1?name=" "file")); if ((__builtin_expect(!!(tryResult3060.isErr()), 0 ))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/network/protocol;1?name=\" \"file\")" , tryResult3060.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 588, mozilla::dom::quota::Severity::Error); return tryResult3060 .propagateErr(); } const auto& protocolHandler = tryResult3060 .inspect(); | |||
588 | NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX "file"))auto tryResult3060 = (::mozilla::ToResultGet< nsCOMPtr< nsIProtocolHandler> >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype (aArgs)>(aArgs)...); }, "@mozilla.org/network/protocol;1?name=" "file")); if ((__builtin_expect(!!(tryResult3060.isErr()), 0 ))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/network/protocol;1?name=\" \"file\")" , tryResult3060.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 588, mozilla::dom::quota::Severity::Error); return tryResult3060 .propagateErr(); } const auto& protocolHandler = tryResult3060 .inspect();; | |||
589 | ||||
590 | QM_TRY_INSPECT(const auto& fileHandler,auto tryResult3061 = (::mozilla::ToResultGet< nsCOMPtr< nsIFileProtocolHandler> >([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype (aArgs)>(aArgs)...); }, protocolHandler)); if ((__builtin_expect (!!(tryResult3061.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)" , tryResult3061.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 593, mozilla::dom::quota::Severity::Error); return tryResult3061 .propagateErr(); } const auto& fileHandler = tryResult3061 .inspect(); | |||
591 | MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<nsIFileProtocolHandler>,auto tryResult3061 = (::mozilla::ToResultGet< nsCOMPtr< nsIFileProtocolHandler> >([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype (aArgs)>(aArgs)...); }, protocolHandler)); if ((__builtin_expect (!!(tryResult3061.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)" , tryResult3061.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 593, mozilla::dom::quota::Severity::Error); return tryResult3061 .propagateErr(); } const auto& fileHandler = tryResult3061 .inspect(); | |||
592 | MOZ_SELECT_OVERLOAD(do_QueryInterface),auto tryResult3061 = (::mozilla::ToResultGet< nsCOMPtr< nsIFileProtocolHandler> >([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype (aArgs)>(aArgs)...); }, protocolHandler)); if ((__builtin_expect (!!(tryResult3061.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)" , tryResult3061.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 593, mozilla::dom::quota::Severity::Error); return tryResult3061 .propagateErr(); } const auto& fileHandler = tryResult3061 .inspect(); | |||
593 | protocolHandler))auto tryResult3061 = (::mozilla::ToResultGet< nsCOMPtr< nsIFileProtocolHandler> >([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype (aArgs)>(aArgs)...); }, protocolHandler)); if ((__builtin_expect (!!(tryResult3061.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)" , tryResult3061.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 593, mozilla::dom::quota::Severity::Error); return tryResult3061 .propagateErr(); } const auto& fileHandler = tryResult3061 .inspect();; | |||
594 | ||||
595 | QM_TRY_INSPECT(const auto& mutator, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3062 = (::mozilla::ToResultInvoke< nsCOMPtr< nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail ::DerefedType<decltype(fileHandler)>::NewFileURIMutator ), (fileHandler), &aDatabaseFile)); if ((__builtin_expect (!!(tryResult3062.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)" , tryResult3062.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 597, mozilla::dom::quota::Severity::Error); return tryResult3062 .propagateErr(); } const auto& mutator = tryResult3062.inspect (); | |||
596 | nsCOMPtr<nsIURIMutator>, fileHandler,auto tryResult3062 = (::mozilla::ToResultInvoke< nsCOMPtr< nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail ::DerefedType<decltype(fileHandler)>::NewFileURIMutator ), (fileHandler), &aDatabaseFile)); if ((__builtin_expect (!!(tryResult3062.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)" , tryResult3062.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 597, mozilla::dom::quota::Severity::Error); return tryResult3062 .propagateErr(); } const auto& mutator = tryResult3062.inspect (); | |||
597 | NewFileURIMutator, &aDatabaseFile))auto tryResult3062 = (::mozilla::ToResultInvoke< nsCOMPtr< nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail ::DerefedType<decltype(fileHandler)>::NewFileURIMutator ), (fileHandler), &aDatabaseFile)); if ((__builtin_expect (!!(tryResult3062.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)" , tryResult3062.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 597, mozilla::dom::quota::Severity::Error); return tryResult3062 .propagateErr(); } const auto& mutator = tryResult3062.inspect ();; | |||
598 | ||||
599 | // aDirectoryLockId should only be -1 when we are called | |||
600 | // - from DatabaseFileManager::InitDirectory when the temporary storage | |||
601 | // hasn't been initialized yet. At that time, the in-memory objects (e.g. | |||
602 | // OriginInfo) are only being created so it doesn't make sense to tunnel | |||
603 | // quota information to QuotaVFS to get corresponding QuotaObject instances | |||
604 | // for SQLite files. | |||
605 | // - from DeleteDatabaseOp::LoadPreviousVersion, since this might require | |||
606 | // temporarily exceeding the quota limit before the database can be | |||
607 | // deleted. | |||
608 | const nsCString directoryLockIdClause = | |||
609 | "&directoryLockId="_ns + IntToCString(aDirectoryLockId); | |||
610 | ||||
611 | const auto keyClause = [&aMaybeKey] { | |||
612 | nsAutoCString keyClause; | |||
613 | if (aMaybeKey) { | |||
614 | keyClause.AssignLiteral("&key="); | |||
615 | for (uint8_t byte : IndexedDBCipherStrategy::SerializeKey(*aMaybeKey)) { | |||
616 | keyClause.AppendPrintf("%02x", byte); | |||
617 | } | |||
618 | } | |||
619 | return keyClause; | |||
620 | }(); | |||
621 | ||||
622 | QM_TRY_UNWRAP(auto result, ([&mutator, &directoryLockIdClause, &keyClause] {auto tryResult3063 = (([&mutator, &directoryLockIdClause , &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL >, nsresult>{result} : Err(rv); }())); if ((__builtin_expect (!!(tryResult3063.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())" , tryResult3063.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 631, mozilla::dom::quota::Severity::Error); return tryResult3063 .propagateErr(); } auto result = tryResult3063.unwrap(); | |||
623 | nsCOMPtr<nsIFileURL> result;auto tryResult3063 = (([&mutator, &directoryLockIdClause , &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL >, nsresult>{result} : Err(rv); }())); if ((__builtin_expect (!!(tryResult3063.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())" , tryResult3063.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 631, mozilla::dom::quota::Severity::Error); return tryResult3063 .propagateErr(); } auto result = tryResult3063.unwrap(); | |||
624 | nsresult rv = NS_MutateURI(mutator)auto tryResult3063 = (([&mutator, &directoryLockIdClause , &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL >, nsresult>{result} : Err(rv); }())); if ((__builtin_expect (!!(tryResult3063.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())" , tryResult3063.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 631, mozilla::dom::quota::Severity::Error); return tryResult3063 .propagateErr(); } auto result = tryResult3063.unwrap(); | |||
625 | .SetQuery("cache=private"_ns +auto tryResult3063 = (([&mutator, &directoryLockIdClause , &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL >, nsresult>{result} : Err(rv); }())); if ((__builtin_expect (!!(tryResult3063.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())" , tryResult3063.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 631, mozilla::dom::quota::Severity::Error); return tryResult3063 .propagateErr(); } auto result = tryResult3063.unwrap(); | |||
626 | directoryLockIdClause + keyClause)auto tryResult3063 = (([&mutator, &directoryLockIdClause , &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL >, nsresult>{result} : Err(rv); }())); if ((__builtin_expect (!!(tryResult3063.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())" , tryResult3063.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 631, mozilla::dom::quota::Severity::Error); return tryResult3063 .propagateErr(); } auto result = tryResult3063.unwrap(); | |||
627 | .Finalize(result);auto tryResult3063 = (([&mutator, &directoryLockIdClause , &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL >, nsresult>{result} : Err(rv); }())); if ((__builtin_expect (!!(tryResult3063.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())" , tryResult3063.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 631, mozilla::dom::quota::Severity::Error); return tryResult3063 .propagateErr(); } auto result = tryResult3063.unwrap(); | |||
628 | return NS_SUCCEEDED(rv)auto tryResult3063 = (([&mutator, &directoryLockIdClause , &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL >, nsresult>{result} : Err(rv); }())); if ((__builtin_expect (!!(tryResult3063.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())" , tryResult3063.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 631, mozilla::dom::quota::Severity::Error); return tryResult3063 .propagateErr(); } auto result = tryResult3063.unwrap(); | |||
629 | ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result}auto tryResult3063 = (([&mutator, &directoryLockIdClause , &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL >, nsresult>{result} : Err(rv); }())); if ((__builtin_expect (!!(tryResult3063.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())" , tryResult3063.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 631, mozilla::dom::quota::Severity::Error); return tryResult3063 .propagateErr(); } auto result = tryResult3063.unwrap(); | |||
630 | : Err(rv);auto tryResult3063 = (([&mutator, &directoryLockIdClause , &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL >, nsresult>{result} : Err(rv); }())); if ((__builtin_expect (!!(tryResult3063.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())" , tryResult3063.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 631, mozilla::dom::quota::Severity::Error); return tryResult3063 .propagateErr(); } auto result = tryResult3063.unwrap(); | |||
631 | }()))auto tryResult3063 = (([&mutator, &directoryLockIdClause , &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL >, nsresult>{result} : Err(rv); }())); if ((__builtin_expect (!!(tryResult3063.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())" , tryResult3063.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 631, mozilla::dom::quota::Severity::Error); return tryResult3063 .propagateErr(); } auto result = tryResult3063.unwrap();; | |||
632 | ||||
633 | return result; | |||
634 | } | |||
635 | ||||
636 | nsLiteralCString GetDefaultSynchronousMode() { | |||
637 | return IndexedDatabaseManager::FullSynchronous() ? "FULL"_ns : "NORMAL"_ns; | |||
638 | } | |||
639 | ||||
640 | nsresult SetDefaultPragmas(mozIStorageConnection& aConnection) { | |||
641 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 641); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 641; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
642 | ||||
643 | static constexpr auto kBuiltInPragmas = | |||
644 | // We use foreign keys in DEBUG builds only because there is a performance | |||
645 | // cost to using them. | |||
646 | "PRAGMA foreign_keys = " | |||
647 | #ifdef DEBUG1 | |||
648 | "ON" | |||
649 | #else | |||
650 | "OFF" | |||
651 | #endif | |||
652 | ";" | |||
653 | ||||
654 | // The "INSERT OR REPLACE" statement doesn't fire the update trigger, | |||
655 | // instead it fires only the insert trigger. This confuses the update | |||
656 | // refcount function. This behavior changes with enabled recursive | |||
657 | // triggers, so the statement fires the delete trigger first and then the | |||
658 | // insert trigger. | |||
659 | "PRAGMA recursive_triggers = ON;" | |||
660 | ||||
661 | // We aggressively truncate the database file when idle so don't bother | |||
662 | // overwriting the WAL with 0 during active periods. | |||
663 | "PRAGMA secure_delete = OFF;"_ns; | |||
664 | ||||
665 | QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL(kBuiltInPragmas))){auto tryResult3064 = (ToResult(aConnection.ExecuteSimpleSQL( kBuiltInPragmas))); static_assert(std::is_empty_v<typename decltype(tryResult3064)::ok_type>); if ((__builtin_expect (!!(tryResult3064.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(kBuiltInPragmas))", tryResult3064 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 665, mozilla::dom::quota::Severity::Error); return tryResult3064 .propagateErr(); }}; | |||
666 | ||||
667 | QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL(nsAutoCString{{auto tryResult3065 = (ToResult(aConnection.ExecuteSimpleSQL( nsAutoCString{ "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode () + ";"_ns}))); static_assert(std::is_empty_v<typename decltype (tryResult3065)::ok_type>); if ((__builtin_expect(!!(tryResult3065 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString{ \"PRAGMA synchronous = \"_ns + GetDefaultSynchronousMode() + \";\"_ns}))" , tryResult3065.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 668, mozilla::dom::quota::Severity::Error); return tryResult3065 .propagateErr(); }} | |||
668 | "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns}))){auto tryResult3065 = (ToResult(aConnection.ExecuteSimpleSQL( nsAutoCString{ "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode () + ";"_ns}))); static_assert(std::is_empty_v<typename decltype (tryResult3065)::ok_type>); if ((__builtin_expect(!!(tryResult3065 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString{ \"PRAGMA synchronous = \"_ns + GetDefaultSynchronousMode() + \";\"_ns}))" , tryResult3065.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 668, mozilla::dom::quota::Severity::Error); return tryResult3065 .propagateErr(); }}; | |||
669 | ||||
670 | #ifndef IDB_MOBILE | |||
671 | if (kSQLiteGrowthIncrement) { | |||
672 | // This is just an optimization so ignore the failure if the disk is | |||
673 | // currently too full. | |||
674 | QM_TRY(QM_OR_ELSE_WARN_IF({auto tryResult3066 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 681, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3066)::ok_type>); if ((__builtin_expect(!!(tryResult3066 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 681, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3066.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 681, mozilla::dom::quota::Severity::Error); return tryResult3066 .propagateErr(); }} | |||
675 | // Expression.{auto tryResult3066 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 681, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3066)::ok_type>); if ((__builtin_expect(!!(tryResult3066 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 681, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3066.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 681, mozilla::dom::quota::Severity::Error); return tryResult3066 .propagateErr(); }} | |||
676 | MOZ_TO_RESULT({auto tryResult3066 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 681, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3066)::ok_type>); if ((__builtin_expect(!!(tryResult3066 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 681, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3066.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 681, mozilla::dom::quota::Severity::Error); return tryResult3066 .propagateErr(); }} | |||
677 | aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns)),{auto tryResult3066 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 681, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3066)::ok_type>); if ((__builtin_expect(!!(tryResult3066 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 681, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3066.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 681, mozilla::dom::quota::Severity::Error); return tryResult3066 .propagateErr(); }} | |||
678 | // Predicate.{auto tryResult3066 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 681, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3066)::ok_type>); if ((__builtin_expect(!!(tryResult3066 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 681, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3066.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 681, mozilla::dom::quota::Severity::Error); return tryResult3066 .propagateErr(); }} | |||
679 | IsSpecificError<NS_ERROR_FILE_TOO_BIG>,{auto tryResult3066 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 681, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3066)::ok_type>); if ((__builtin_expect(!!(tryResult3066 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 681, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3066.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 681, mozilla::dom::quota::Severity::Error); return tryResult3066 .propagateErr(); }} | |||
680 | // Fallback.{auto tryResult3066 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 681, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3066)::ok_type>); if ((__builtin_expect(!!(tryResult3066 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 681, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3066.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 681, mozilla::dom::quota::Severity::Error); return tryResult3066 .propagateErr(); }} | |||
681 | ErrToDefaultOk<>)){auto tryResult3066 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 681, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3066)::ok_type>); if ((__builtin_expect(!!(tryResult3066 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 681, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3066.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 681, mozilla::dom::quota::Severity::Error); return tryResult3066 .propagateErr(); }}; | |||
682 | } | |||
683 | #endif // IDB_MOBILE | |||
684 | ||||
685 | return NS_OK; | |||
686 | } | |||
687 | ||||
688 | nsresult SetJournalMode(mozIStorageConnection& aConnection) { | |||
689 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 689); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 689; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
690 | ||||
691 | // Try enabling WAL mode. This can fail in various circumstances so we have to | |||
692 | // check the results here. | |||
693 | constexpr auto journalModeQueryStart = "PRAGMA journal_mode = "_ns; | |||
694 | constexpr auto journalModeWAL = "wal"_ns; | |||
695 | ||||
696 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3067 = (CreateAndExecuteSingleStepStatement( aConnection , journalModeQueryStart + journalModeWAL)); if ((__builtin_expect (!!(tryResult3067.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)" , tryResult3067.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 698, mozilla::dom::quota::Severity::Error); return tryResult3067 .propagateErr(); } const auto& stmt = tryResult3067.inspect (); | |||
697 | CreateAndExecuteSingleStepStatement(auto tryResult3067 = (CreateAndExecuteSingleStepStatement( aConnection , journalModeQueryStart + journalModeWAL)); if ((__builtin_expect (!!(tryResult3067.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)" , tryResult3067.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 698, mozilla::dom::quota::Severity::Error); return tryResult3067 .propagateErr(); } const auto& stmt = tryResult3067.inspect (); | |||
698 | aConnection, journalModeQueryStart + journalModeWAL))auto tryResult3067 = (CreateAndExecuteSingleStepStatement( aConnection , journalModeQueryStart + journalModeWAL)); if ((__builtin_expect (!!(tryResult3067.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)" , tryResult3067.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 698, mozilla::dom::quota::Severity::Error); return tryResult3067 .propagateErr(); } const auto& stmt = tryResult3067.inspect ();; | |||
699 | ||||
700 | QM_TRY_INSPECT(auto tryResult3068 = (::mozilla::ToResultInvoke< nsCString >( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult3068.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult3068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 702, mozilla::dom::quota::Severity::Error); return tryResult3068 .propagateErr(); } const auto& journalMode = tryResult3068 .inspect(); | |||
701 | const auto& journalMode,auto tryResult3068 = (::mozilla::ToResultInvoke< nsCString >( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult3068.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult3068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 702, mozilla::dom::quota::Severity::Error); return tryResult3068 .propagateErr(); } const auto& journalMode = tryResult3068 .inspect(); | |||
702 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCString, *stmt, GetUTF8String, 0))auto tryResult3068 = (::mozilla::ToResultInvoke< nsCString >( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult3068.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult3068.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 702, mozilla::dom::quota::Severity::Error); return tryResult3068 .propagateErr(); } const auto& journalMode = tryResult3068 .inspect();; | |||
703 | ||||
704 | if (journalMode.Equals(journalModeWAL)) { | |||
705 | // WAL mode successfully enabled. Maybe set limits on its size here. | |||
706 | if (kMaxWALPages >= 0) { | |||
707 | QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL({auto tryResult3069 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA wal_autocheckpoint = "_ns + IntToCString(kMaxWALPages )))); static_assert(std::is_empty_v<typename decltype(tryResult3069 )::ok_type>); if ((__builtin_expect(!!(tryResult3069.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL( \"PRAGMA wal_autocheckpoint = \"_ns + IntToCString(kMaxWALPages)))" , tryResult3069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 708, mozilla::dom::quota::Severity::Error); return tryResult3069 .propagateErr(); }} | |||
708 | "PRAGMA wal_autocheckpoint = "_ns + IntToCString(kMaxWALPages)))){auto tryResult3069 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA wal_autocheckpoint = "_ns + IntToCString(kMaxWALPages )))); static_assert(std::is_empty_v<typename decltype(tryResult3069 )::ok_type>); if ((__builtin_expect(!!(tryResult3069.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL( \"PRAGMA wal_autocheckpoint = \"_ns + IntToCString(kMaxWALPages)))" , tryResult3069.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 708, mozilla::dom::quota::Severity::Error); return tryResult3069 .propagateErr(); }}; | |||
709 | } | |||
710 | } else { | |||
711 | NS_WARNING("Failed to set WAL mode, falling back to normal journal mode.")NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set WAL mode, falling back to normal journal mode." , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 711); | |||
712 | #ifdef IDB_MOBILE | |||
713 | QM_TRY(MOZ_TO_RESULT({auto tryResult3070 = (ToResult(aConnection.ExecuteSimpleSQL( journalModeQueryStart + "truncate"_ns))); static_assert(std:: is_empty_v<typename decltype(tryResult3070)::ok_type>); if ((__builtin_expect(!!(tryResult3070.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + \"truncate\"_ns))" , tryResult3070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 714, mozilla::dom::quota::Severity::Error); return tryResult3070 .propagateErr(); }} | |||
714 | aConnection.ExecuteSimpleSQL(journalModeQueryStart + "truncate"_ns))){auto tryResult3070 = (ToResult(aConnection.ExecuteSimpleSQL( journalModeQueryStart + "truncate"_ns))); static_assert(std:: is_empty_v<typename decltype(tryResult3070)::ok_type>); if ((__builtin_expect(!!(tryResult3070.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + \"truncate\"_ns))" , tryResult3070.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 714, mozilla::dom::quota::Severity::Error); return tryResult3070 .propagateErr(); }}; | |||
715 | #endif | |||
716 | } | |||
717 | ||||
718 | return NS_OK; | |||
719 | } | |||
720 | ||||
721 | Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> OpenDatabase( | |||
722 | mozIStorageService& aStorageService, nsIFileURL& aFileURL, | |||
723 | const uint32_t aTelemetryId = 0) { | |||
724 | const nsAutoCString telemetryFilename = | |||
725 | aTelemetryId ? "indexedDB-"_ns + IntToCString(aTelemetryId) + | |||
726 | NS_ConvertUTF16toUTF8(kSQLiteSuffix) | |||
727 | : nsAutoCString(); | |||
728 | ||||
729 | QM_TRY_UNWRAP(auto connection,auto tryResult3071 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageConnection> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL ), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService ::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult3071 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageConnection>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService::CONNECTION_INTERRUPTIBLE)" , tryResult3071.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 733, mozilla::dom::quota::Severity::Error); return tryResult3071 .propagateErr(); } auto connection = tryResult3071.unwrap(); | |||
730 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3071 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageConnection> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL ), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService ::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult3071 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageConnection>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService::CONNECTION_INTERRUPTIBLE)" , tryResult3071.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 733, mozilla::dom::quota::Severity::Error); return tryResult3071 .propagateErr(); } auto connection = tryResult3071.unwrap(); | |||
731 | nsCOMPtr<mozIStorageConnection>, aStorageService,auto tryResult3071 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageConnection> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL ), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService ::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult3071 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageConnection>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService::CONNECTION_INTERRUPTIBLE)" , tryResult3071.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 733, mozilla::dom::quota::Severity::Error); return tryResult3071 .propagateErr(); } auto connection = tryResult3071.unwrap(); | |||
732 | OpenDatabaseWithFileURL, &aFileURL, telemetryFilename,auto tryResult3071 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageConnection> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL ), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService ::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult3071 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageConnection>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService::CONNECTION_INTERRUPTIBLE)" , tryResult3071.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 733, mozilla::dom::quota::Severity::Error); return tryResult3071 .propagateErr(); } auto connection = tryResult3071.unwrap(); | |||
733 | mozIStorageService::CONNECTION_INTERRUPTIBLE))auto tryResult3071 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageConnection> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL ), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService ::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult3071 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageConnection>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService::CONNECTION_INTERRUPTIBLE)" , tryResult3071.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 733, mozilla::dom::quota::Severity::Error); return tryResult3071 .propagateErr(); } auto connection = tryResult3071.unwrap();; | |||
734 | ||||
735 | return WrapMovingNotNull(std::move(connection)); | |||
736 | } | |||
737 | ||||
738 | Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> | |||
739 | OpenDatabaseAndHandleBusy(mozIStorageService& aStorageService, | |||
740 | nsIFileURL& aFileURL, | |||
741 | const uint32_t aTelemetryId = 0) { | |||
742 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 742); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 742; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
743 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 743); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 743; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
744 | ||||
745 | using ConnectionType = Maybe<MovingNotNull<nsCOMPtr<mozIStorageConnection>>>; | |||
746 | ||||
747 | QM_TRY_UNWRAP(auto connection,auto tryResult3072 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3072 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 757, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3072.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, mozilla::dom::quota::Severity::Error); return tryResult3072 .propagateErr(); } auto connection = tryResult3072.unwrap(); | |||
748 | QM_OR_ELSE_WARN_IF(auto tryResult3072 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3072 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 757, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3072.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, mozilla::dom::quota::Severity::Error); return tryResult3072 .propagateErr(); } auto connection = tryResult3072.unwrap(); | |||
749 | // Expressionauto tryResult3072 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3072 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 757, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3072.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, mozilla::dom::quota::Severity::Error); return tryResult3072 .propagateErr(); } auto connection = tryResult3072.unwrap(); | |||
750 | OpenDatabase(aStorageService, aFileURL, aTelemetryId)auto tryResult3072 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3072 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 757, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3072.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, mozilla::dom::quota::Severity::Error); return tryResult3072 .propagateErr(); } auto connection = tryResult3072.unwrap(); | |||
751 | .map([](auto connection) -> ConnectionType {auto tryResult3072 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3072 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 757, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3072.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, mozilla::dom::quota::Severity::Error); return tryResult3072 .propagateErr(); } auto connection = tryResult3072.unwrap(); | |||
752 | return Some(std::move(connection));auto tryResult3072 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3072 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 757, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3072.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, mozilla::dom::quota::Severity::Error); return tryResult3072 .propagateErr(); } auto connection = tryResult3072.unwrap(); | |||
753 | }),auto tryResult3072 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3072 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 757, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3072.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, mozilla::dom::quota::Severity::Error); return tryResult3072 .propagateErr(); } auto connection = tryResult3072.unwrap(); | |||
754 | // Predicate.auto tryResult3072 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3072 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 757, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3072.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, mozilla::dom::quota::Severity::Error); return tryResult3072 .propagateErr(); } auto connection = tryResult3072.unwrap(); | |||
755 | IsSpecificError<NS_ERROR_STORAGE_BUSY>,auto tryResult3072 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3072 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 757, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3072.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, mozilla::dom::quota::Severity::Error); return tryResult3072 .propagateErr(); } auto connection = tryResult3072.unwrap(); | |||
756 | // Fallback.auto tryResult3072 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3072 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 757, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3072.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, mozilla::dom::quota::Severity::Error); return tryResult3072 .propagateErr(); } auto connection = tryResult3072.unwrap(); | |||
757 | ErrToDefaultOk<ConnectionType>))auto tryResult3072 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3072 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 757, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3072.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 757, mozilla::dom::quota::Severity::Error); return tryResult3072 .propagateErr(); } auto connection = tryResult3072.unwrap();; | |||
758 | ||||
759 | if (connection.isNothing()) { | |||
760 | #ifdef DEBUG1 | |||
761 | { | |||
762 | nsCString path; | |||
763 | MOZ_ALWAYS_SUCCEEDS(aFileURL.GetFileName(path))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aFileURL.GetFileName(path))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(aFileURL.GetFileName(path))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 763); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aFileURL.GetFileName(path))" ")"); do { * ((volatile int*)__null) = 763; __attribute__((nomerge)) ::abort (); } while (false); } } while (false); } } while (false); | |||
764 | ||||
765 | nsPrintfCString message( | |||
766 | "Received NS_ERROR_STORAGE_BUSY when attempting to open database " | |||
767 | "'%s', retrying for up to 10 seconds", | |||
768 | path.get()); | |||
769 | NS_WARNING(message.get())NS_DebugBreak(NS_DEBUG_WARNING, message.get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 769); | |||
770 | } | |||
771 | #endif | |||
772 | ||||
773 | // Another thread must be checkpointing the WAL. Wait up to 10 seconds for | |||
774 | // that to complete. | |||
775 | const TimeStamp start = TimeStamp::NowLoRes(); | |||
776 | ||||
777 | do { | |||
778 | PR_Sleep(PR_MillisecondsToInterval(100)); | |||
779 | ||||
780 | QM_TRY_UNWRAP(connection,auto tryResult3073 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3073 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 794, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3073.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, mozilla::dom::quota::Severity::Error); return tryResult3073 .propagateErr(); } connection = tryResult3073.unwrap(); | |||
781 | QM_OR_ELSE_WARN_IF(auto tryResult3073 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3073 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 794, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3073.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, mozilla::dom::quota::Severity::Error); return tryResult3073 .propagateErr(); } connection = tryResult3073.unwrap(); | |||
782 | // Expression.auto tryResult3073 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3073 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 794, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3073.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, mozilla::dom::quota::Severity::Error); return tryResult3073 .propagateErr(); } connection = tryResult3073.unwrap(); | |||
783 | OpenDatabase(aStorageService, aFileURL, aTelemetryId)auto tryResult3073 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3073 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 794, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3073.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, mozilla::dom::quota::Severity::Error); return tryResult3073 .propagateErr(); } connection = tryResult3073.unwrap(); | |||
784 | .map([](auto connection) -> ConnectionType {auto tryResult3073 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3073 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 794, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3073.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, mozilla::dom::quota::Severity::Error); return tryResult3073 .propagateErr(); } connection = tryResult3073.unwrap(); | |||
785 | return Some(std::move(connection));auto tryResult3073 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3073 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 794, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3073.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, mozilla::dom::quota::Severity::Error); return tryResult3073 .propagateErr(); } connection = tryResult3073.unwrap(); | |||
786 | }),auto tryResult3073 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3073 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 794, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3073.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, mozilla::dom::quota::Severity::Error); return tryResult3073 .propagateErr(); } connection = tryResult3073.unwrap(); | |||
787 | // Predicate.auto tryResult3073 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3073 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 794, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3073.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, mozilla::dom::quota::Severity::Error); return tryResult3073 .propagateErr(); } connection = tryResult3073.unwrap(); | |||
788 | ([&start](nsresult aValue) {auto tryResult3073 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3073 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 794, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3073.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, mozilla::dom::quota::Severity::Error); return tryResult3073 .propagateErr(); } connection = tryResult3073.unwrap(); | |||
789 | return aValue == NS_ERROR_STORAGE_BUSY &&auto tryResult3073 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3073 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 794, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3073.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, mozilla::dom::quota::Severity::Error); return tryResult3073 .propagateErr(); } connection = tryResult3073.unwrap(); | |||
790 | TimeStamp::NowLoRes() - start <=auto tryResult3073 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3073 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 794, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3073.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, mozilla::dom::quota::Severity::Error); return tryResult3073 .propagateErr(); } connection = tryResult3073.unwrap(); | |||
791 | TimeDuration::FromSeconds(10);auto tryResult3073 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3073 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 794, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3073.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, mozilla::dom::quota::Severity::Error); return tryResult3073 .propagateErr(); } connection = tryResult3073.unwrap(); | |||
792 | }),auto tryResult3073 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3073 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 794, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3073.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, mozilla::dom::quota::Severity::Error); return tryResult3073 .propagateErr(); } connection = tryResult3073.unwrap(); | |||
793 | // Fallback.auto tryResult3073 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3073 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 794, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3073.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, mozilla::dom::quota::Severity::Error); return tryResult3073 .propagateErr(); } connection = tryResult3073.unwrap(); | |||
794 | ErrToDefaultOk<ConnectionType>))auto tryResult3073 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult3073 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 794, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult3073.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 794, mozilla::dom::quota::Severity::Error); return tryResult3073 .propagateErr(); } connection = tryResult3073.unwrap();; | |||
795 | } while (connection.isNothing()); | |||
796 | } | |||
797 | ||||
798 | return connection.extract(); | |||
799 | } | |||
800 | ||||
801 | // Returns true if a given nsIFile exists and is a directory. Returns false if | |||
802 | // it doesn't exist. Returns an error if it exists, but is not a directory, or | |||
803 | // any other error occurs. | |||
804 | Result<bool, nsresult> ExistsAsDirectory(nsIFile& aDirectory) { | |||
805 | QM_TRY_INSPECT(const bool& exists,auto tryResult3074 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::Exists)); if ((__builtin_expect(!!(tryResult3074.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists)" , tryResult3074.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 806, mozilla::dom::quota::Severity::Error); return tryResult3074 .propagateErr(); } const bool& exists = tryResult3074.inspect (); | |||
806 | MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, Exists))auto tryResult3074 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::Exists)); if ((__builtin_expect(!!(tryResult3074.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists)" , tryResult3074.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 806, mozilla::dom::quota::Severity::Error); return tryResult3074 .propagateErr(); } const bool& exists = tryResult3074.inspect ();; | |||
807 | ||||
808 | if (exists) { | |||
809 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult3075 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::IsDirectory)); if ((__builtin_expect(!!(tryResult3075. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory)" , tryResult3075.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 810, mozilla::dom::quota::Severity::Error); return tryResult3075 .propagateErr(); } const bool& isDirectory = tryResult3075 .inspect(); | |||
810 | MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, IsDirectory))auto tryResult3075 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::IsDirectory)); if ((__builtin_expect(!!(tryResult3075. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory)" , tryResult3075.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 810, mozilla::dom::quota::Severity::Error); return tryResult3075 .propagateErr(); } const bool& isDirectory = tryResult3075 .inspect();; | |||
811 | ||||
812 | QM_TRY(OkIf(isDirectory), Err(NS_ERROR_FAILURE)){auto tryResult3076 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult3076)::ok_type>); if ((__builtin_expect(!!(tryResult3076.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3076.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 812, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Err(NS_ERROR_FAILURE)); }}; | |||
813 | } | |||
814 | ||||
815 | return exists; | |||
816 | } | |||
817 | ||||
818 | constexpr nsresult mapNoDeviceSpaceError(nsresult aRv) { | |||
819 | if (aRv == NS_ERROR_FILE_NO_DEVICE_SPACE) { | |||
820 | // mozstorage translates SQLITE_FULL to | |||
821 | // NS_ERROR_FILE_NO_DEVICE_SPACE, which we know better as | |||
822 | // NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR. | |||
823 | return NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR; | |||
824 | } | |||
825 | return aRv; | |||
826 | } | |||
827 | ||||
828 | Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> | |||
829 | CreateStorageConnection(nsIFile& aDBFile, nsIFile& aFMDirectory, | |||
830 | const nsAString& aName, const nsACString& aOrigin, | |||
831 | const int64_t aDirectoryLockId, | |||
832 | const uint32_t aTelemetryId, | |||
833 | const Maybe<CipherKey>& aMaybeKey) { | |||
834 | AssertIsOnIOThread(); | |||
835 | MOZ_ASSERT(aDirectoryLockId >= -1)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectoryLockId >= -1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= -1))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= -1" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 835); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= -1" ")"); do { *((volatile int*)__null) = 835; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
836 | ||||
837 | AUTO_PROFILER_LABEL("CreateStorageConnection", DOM)mozilla::AutoProfilerLabel raiiObject837( "CreateStorageConnection" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
838 | ||||
839 | QM_TRY_INSPECT(const auto& dbFileUrl,auto tryResult3077 = (GetDatabaseFileURL(aDBFile, aDirectoryLockId , aMaybeKey)); if ((__builtin_expect(!!(tryResult3077.isErr() ), 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey)" , tryResult3077.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 840, mozilla::dom::quota::Severity::Error); return tryResult3077 .propagateErr(); } const auto& dbFileUrl = tryResult3077. inspect(); | |||
840 | GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey))auto tryResult3077 = (GetDatabaseFileURL(aDBFile, aDirectoryLockId , aMaybeKey)); if ((__builtin_expect(!!(tryResult3077.isErr() ), 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey)" , tryResult3077.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 840, mozilla::dom::quota::Severity::Error); return tryResult3077 .propagateErr(); } const auto& dbFileUrl = tryResult3077. inspect();; | |||
841 | ||||
842 | QM_TRY_INSPECT(const auto& storageService,auto tryResult3078 = (::mozilla::ToResultGet< nsCOMPtr< mozIStorageService> >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype (aArgs)>(aArgs)...); }, "@mozilla.org/storage" "/service;1" )); if ((__builtin_expect(!!(tryResult3078.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage\" \"/service;1\")" , tryResult3078.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult3078 .propagateErr(); } const auto& storageService = tryResult3078 .inspect(); | |||
843 | MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<mozIStorageService>,auto tryResult3078 = (::mozilla::ToResultGet< nsCOMPtr< mozIStorageService> >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype (aArgs)>(aArgs)...); }, "@mozilla.org/storage" "/service;1" )); if ((__builtin_expect(!!(tryResult3078.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage\" \"/service;1\")" , tryResult3078.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult3078 .propagateErr(); } const auto& storageService = tryResult3078 .inspect(); | |||
844 | MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult3078 = (::mozilla::ToResultGet< nsCOMPtr< mozIStorageService> >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype (aArgs)>(aArgs)...); }, "@mozilla.org/storage" "/service;1" )); if ((__builtin_expect(!!(tryResult3078.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage\" \"/service;1\")" , tryResult3078.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult3078 .propagateErr(); } const auto& storageService = tryResult3078 .inspect(); | |||
845 | MOZ_STORAGE_SERVICE_CONTRACTID))auto tryResult3078 = (::mozilla::ToResultGet< nsCOMPtr< mozIStorageService> >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype (aArgs)>(aArgs)...); }, "@mozilla.org/storage" "/service;1" )); if ((__builtin_expect(!!(tryResult3078.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage\" \"/service;1\")" , tryResult3078.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult3078 .propagateErr(); } const auto& storageService = tryResult3078 .inspect();; | |||
846 | ||||
847 | QM_TRY_UNWRAP(auto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap(); | |||
848 | auto connection,auto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap(); | |||
849 | QM_OR_ELSE_WARN_IF(auto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap(); | |||
850 | // Expression.auto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap(); | |||
851 | OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)auto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap(); | |||
852 | .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> {auto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap(); | |||
853 | return std::move(connection).unwrapBasePtr();auto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap(); | |||
854 | }),auto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap(); | |||
855 | // Predicate.auto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap(); | |||
856 | ([&aName](nsresult aValue) {auto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap(); | |||
857 | // If we're just opening the database during origin initialization,auto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap(); | |||
858 | // then we don't want to erase any files. The failure here will failauto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap(); | |||
859 | // origin initialization too.auto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap(); | |||
860 | return IsDatabaseCorruptionError(aValue) && !aName.IsVoid();auto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap(); | |||
861 | }),auto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap(); | |||
862 | // Fallback.auto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap(); | |||
863 | ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>))auto tryResult3079 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult3079.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 863, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult3079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult3079 .propagateErr(); } auto connection = tryResult3079.unwrap();; | |||
864 | ||||
865 | if (!connection) { | |||
866 | // XXX Shouldn't we also update quota usage? | |||
867 | ||||
868 | // Nuke the database file. | |||
869 | QM_TRY(MOZ_TO_RESULT(aDBFile.Remove(false))){auto tryResult3080 = (ToResult(aDBFile.Remove(false))); static_assert (std::is_empty_v<typename decltype(tryResult3080)::ok_type >); if ((__builtin_expect(!!(tryResult3080.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aDBFile.Remove(false))" , tryResult3080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 869, mozilla::dom::quota::Severity::Error); return tryResult3080 .propagateErr(); }}; | |||
870 | QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult3081 = (ExistsAsDirectory(aFMDirectory)); if (( __builtin_expect(!!(tryResult3081.isErr()), 0))) { mozilla::dom ::quota::HandleError("ExistsAsDirectory(aFMDirectory)", tryResult3081 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 871, mozilla::dom::quota::Severity::Error); return tryResult3081 .propagateErr(); } const bool& existsAsDirectory = tryResult3081 .inspect(); | |||
871 | ExistsAsDirectory(aFMDirectory))auto tryResult3081 = (ExistsAsDirectory(aFMDirectory)); if (( __builtin_expect(!!(tryResult3081.isErr()), 0))) { mozilla::dom ::quota::HandleError("ExistsAsDirectory(aFMDirectory)", tryResult3081 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 871, mozilla::dom::quota::Severity::Error); return tryResult3081 .propagateErr(); } const bool& existsAsDirectory = tryResult3081 .inspect();; | |||
872 | ||||
873 | if (existsAsDirectory) { | |||
874 | QM_TRY(MOZ_TO_RESULT(aFMDirectory.Remove(true))){auto tryResult3082 = (ToResult(aFMDirectory.Remove(true))); static_assert (std::is_empty_v<typename decltype(tryResult3082)::ok_type >); if ((__builtin_expect(!!(tryResult3082.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aFMDirectory.Remove(true))" , tryResult3082.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 874, mozilla::dom::quota::Severity::Error); return tryResult3082 .propagateErr(); }}; | |||
875 | } | |||
876 | ||||
877 | QM_TRY_UNWRAP(connection, OpenDatabaseAndHandleBusy(auto tryResult3083 = (OpenDatabaseAndHandleBusy( *storageService , *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult3083 .isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy( *storageService, *dbFileUrl, aTelemetryId)" , tryResult3083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 878, mozilla::dom::quota::Severity::Error); return tryResult3083 .propagateErr(); } connection = tryResult3083.unwrap(); | |||
878 | *storageService, *dbFileUrl, aTelemetryId))auto tryResult3083 = (OpenDatabaseAndHandleBusy( *storageService , *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult3083 .isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy( *storageService, *dbFileUrl, aTelemetryId)" , tryResult3083.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 878, mozilla::dom::quota::Severity::Error); return tryResult3083 .propagateErr(); } connection = tryResult3083.unwrap();; | |||
879 | } | |||
880 | ||||
881 | QM_TRY(MOZ_TO_RESULT(SetDefaultPragmas(*connection))){auto tryResult3084 = (ToResult(SetDefaultPragmas(*connection ))); static_assert(std::is_empty_v<typename decltype(tryResult3084 )::ok_type>); if ((__builtin_expect(!!(tryResult3084.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(SetDefaultPragmas(*connection))" , tryResult3084.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 881, mozilla::dom::quota::Severity::Error); return tryResult3084 .propagateErr(); }}; | |||
882 | QM_TRY(MOZ_TO_RESULT(connection->EnableModule("filesystem"_ns))){auto tryResult3085 = (ToResult(connection->EnableModule("filesystem"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult3085 )::ok_type>); if ((__builtin_expect(!!(tryResult3085.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->EnableModule(\"filesystem\"_ns))" , tryResult3085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 882, mozilla::dom::quota::Severity::Error); return tryResult3085 .propagateErr(); }}; | |||
883 | ||||
884 | // Check to make sure that the database schema is correct. | |||
885 | QM_TRY_INSPECT(const int32_t& schemaVersion,auto tryResult3086 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult3086 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)" , tryResult3086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 886, mozilla::dom::quota::Severity::Error); return tryResult3086 .propagateErr(); } const int32_t& schemaVersion = tryResult3086 .inspect(); | |||
886 | MOZ_TO_RESULT_INVOKE_MEMBER(connection, GetSchemaVersion))auto tryResult3086 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult3086 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)" , tryResult3086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 886, mozilla::dom::quota::Severity::Error); return tryResult3086 .propagateErr(); } const int32_t& schemaVersion = tryResult3086 .inspect();; | |||
887 | ||||
888 | // Unknown schema will fail origin initialization too. | |||
889 | QM_TRY(OkIf(schemaVersion || !aName.IsVoid()),{auto tryResult3087 = (OkIf(schemaVersion || !aName.IsVoid()) ); static_assert(std::is_empty_v<typename decltype(tryResult3087 )::ok_type>); if ((__builtin_expect(!!(tryResult3087.isErr ()), 0))) { auto tryTempError = tryResult3087.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 892, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 891, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 891); } while (0); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion || !aName.IsVoid())" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | |||
890 | Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR), [](const auto&) {{auto tryResult3087 = (OkIf(schemaVersion || !aName.IsVoid()) ); static_assert(std::is_empty_v<typename decltype(tryResult3087 )::ok_type>); if ((__builtin_expect(!!(tryResult3087.isErr ()), 0))) { auto tryTempError = tryResult3087.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 892, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 891, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 891); } while (0); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion || !aName.IsVoid())" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | |||
891 | IDB_WARNING("Unable to open IndexedDB database, schema is not set!");{auto tryResult3087 = (OkIf(schemaVersion || !aName.IsVoid()) ); static_assert(std::is_empty_v<typename decltype(tryResult3087 )::ok_type>); if ((__builtin_expect(!!(tryResult3087.isErr ()), 0))) { auto tryTempError = tryResult3087.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 892, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 891, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 891); } while (0); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion || !aName.IsVoid())" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | |||
892 | }){auto tryResult3087 = (OkIf(schemaVersion || !aName.IsVoid()) ); static_assert(std::is_empty_v<typename decltype(tryResult3087 )::ok_type>); if ((__builtin_expect(!!(tryResult3087.isErr ()), 0))) { auto tryTempError = tryResult3087.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 892, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 891, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 891); } while (0); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion || !aName.IsVoid())" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; | |||
893 | ||||
894 | QM_TRY({auto tryResult3088 = (OkIf(schemaVersion <= kSQLiteSchemaVersion )); static_assert(std::is_empty_v<typename decltype(tryResult3088 )::ok_type>); if ((__builtin_expect(!!(tryResult3088.isErr ()), 0))) { auto tryTempError = tryResult3088.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 898, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 897, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 897); } while (0); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | |||
895 | OkIf(schemaVersion <= kSQLiteSchemaVersion),{auto tryResult3088 = (OkIf(schemaVersion <= kSQLiteSchemaVersion )); static_assert(std::is_empty_v<typename decltype(tryResult3088 )::ok_type>); if ((__builtin_expect(!!(tryResult3088.isErr ()), 0))) { auto tryTempError = tryResult3088.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 898, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 897, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 897); } while (0); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | |||
896 | Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR), [](const auto&) {{auto tryResult3088 = (OkIf(schemaVersion <= kSQLiteSchemaVersion )); static_assert(std::is_empty_v<typename decltype(tryResult3088 )::ok_type>); if ((__builtin_expect(!!(tryResult3088.isErr ()), 0))) { auto tryTempError = tryResult3088.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 898, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 897, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 897); } while (0); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | |||
897 | IDB_WARNING("Unable to open IndexedDB database, schema is too high!");{auto tryResult3088 = (OkIf(schemaVersion <= kSQLiteSchemaVersion )); static_assert(std::is_empty_v<typename decltype(tryResult3088 )::ok_type>); if ((__builtin_expect(!!(tryResult3088.isErr ()), 0))) { auto tryTempError = tryResult3088.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 898, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 897, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 897); } while (0); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | |||
898 | }){auto tryResult3088 = (OkIf(schemaVersion <= kSQLiteSchemaVersion )); static_assert(std::is_empty_v<typename decltype(tryResult3088 )::ok_type>); if ((__builtin_expect(!!(tryResult3088.isErr ()), 0))) { auto tryTempError = tryResult3088.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 898, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 897, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 897); } while (0); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; | |||
899 | ||||
900 | bool journalModeSet = false; | |||
901 | ||||
902 | if (schemaVersion != kSQLiteSchemaVersion) { | |||
903 | const bool newDatabase = !schemaVersion; | |||
904 | ||||
905 | if (newDatabase) { | |||
906 | // Set the page size first. | |||
907 | const auto sqlitePageSizeOverride = | |||
908 | aMaybeKey ? 8192 : kSQLitePageSizeOverride; | |||
909 | if (sqlitePageSizeOverride) { | |||
910 | QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL(nsPrintfCString({auto tryResult3089 = (ToResult(connection->ExecuteSimpleSQL (nsPrintfCString( "PRAGMA page_size = %" "u" ";", sqlitePageSizeOverride )))); static_assert(std::is_empty_v<typename decltype(tryResult3089 )::ok_type>); if ((__builtin_expect(!!(tryResult3089.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", sqlitePageSizeOverride)))" , tryResult3089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 911, mozilla::dom::quota::Severity::Error); return tryResult3089 .propagateErr(); }} | |||
911 | "PRAGMA page_size = %" PRIu32 ";", sqlitePageSizeOverride)))){auto tryResult3089 = (ToResult(connection->ExecuteSimpleSQL (nsPrintfCString( "PRAGMA page_size = %" "u" ";", sqlitePageSizeOverride )))); static_assert(std::is_empty_v<typename decltype(tryResult3089 )::ok_type>); if ((__builtin_expect(!!(tryResult3089.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", sqlitePageSizeOverride)))" , tryResult3089.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 911, mozilla::dom::quota::Severity::Error); return tryResult3089 .propagateErr(); }}; | |||
912 | } | |||
913 | ||||
914 | // We have to set the auto_vacuum mode before opening a transaction. | |||
915 | QM_TRY((MOZ_TO_RESULT_INVOKE_MEMBER({auto tryResult3090 = ((::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError ))); static_assert(std::is_empty_v<typename decltype(tryResult3090 )::ok_type>); if ((__builtin_expect(!!(tryResult3090.isErr ()), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))" , tryResult3090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 926, mozilla::dom::quota::Severity::Error); return tryResult3090 .propagateErr(); }} | |||
916 | connection, ExecuteSimpleSQL,{auto tryResult3090 = ((::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError ))); static_assert(std::is_empty_v<typename decltype(tryResult3090 )::ok_type>); if ((__builtin_expect(!!(tryResult3090.isErr ()), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))" , tryResult3090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 926, mozilla::dom::quota::Severity::Error); return tryResult3090 .propagateErr(); }} | |||
917 | #ifdef IDB_MOBILE{auto tryResult3090 = ((::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError ))); static_assert(std::is_empty_v<typename decltype(tryResult3090 )::ok_type>); if ((__builtin_expect(!!(tryResult3090.isErr ()), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))" , tryResult3090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 926, mozilla::dom::quota::Severity::Error); return tryResult3090 .propagateErr(); }} | |||
918 | // Turn on full auto_vacuum mode to reclaim disk space on{auto tryResult3090 = ((::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError ))); static_assert(std::is_empty_v<typename decltype(tryResult3090 )::ok_type>); if ((__builtin_expect(!!(tryResult3090.isErr ()), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))" , tryResult3090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 926, mozilla::dom::quota::Severity::Error); return tryResult3090 .propagateErr(); }} | |||
919 | // mobile devices (at the cost of some COMMIT speed).{auto tryResult3090 = ((::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError ))); static_assert(std::is_empty_v<typename decltype(tryResult3090 )::ok_type>); if ((__builtin_expect(!!(tryResult3090.isErr ()), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))" , tryResult3090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 926, mozilla::dom::quota::Severity::Error); return tryResult3090 .propagateErr(); }} | |||
920 | "PRAGMA auto_vacuum = FULL;"_ns{auto tryResult3090 = ((::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError ))); static_assert(std::is_empty_v<typename decltype(tryResult3090 )::ok_type>); if ((__builtin_expect(!!(tryResult3090.isErr ()), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))" , tryResult3090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 926, mozilla::dom::quota::Severity::Error); return tryResult3090 .propagateErr(); }} | |||
921 | #else{auto tryResult3090 = ((::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError ))); static_assert(std::is_empty_v<typename decltype(tryResult3090 )::ok_type>); if ((__builtin_expect(!!(tryResult3090.isErr ()), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))" , tryResult3090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 926, mozilla::dom::quota::Severity::Error); return tryResult3090 .propagateErr(); }} | |||
922 | // Turn on incremental auto_vacuum mode on desktop builds.{auto tryResult3090 = ((::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError ))); static_assert(std::is_empty_v<typename decltype(tryResult3090 )::ok_type>); if ((__builtin_expect(!!(tryResult3090.isErr ()), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))" , tryResult3090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 926, mozilla::dom::quota::Severity::Error); return tryResult3090 .propagateErr(); }} | |||
923 | "PRAGMA auto_vacuum = INCREMENTAL;"_ns{auto tryResult3090 = ((::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError ))); static_assert(std::is_empty_v<typename decltype(tryResult3090 )::ok_type>); if ((__builtin_expect(!!(tryResult3090.isErr ()), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))" , tryResult3090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 926, mozilla::dom::quota::Severity::Error); return tryResult3090 .propagateErr(); }} | |||
924 | #endif{auto tryResult3090 = ((::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError ))); static_assert(std::is_empty_v<typename decltype(tryResult3090 )::ok_type>); if ((__builtin_expect(!!(tryResult3090.isErr ()), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))" , tryResult3090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 926, mozilla::dom::quota::Severity::Error); return tryResult3090 .propagateErr(); }} | |||
925 | ){auto tryResult3090 = ((::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError ))); static_assert(std::is_empty_v<typename decltype(tryResult3090 )::ok_type>); if ((__builtin_expect(!!(tryResult3090.isErr ()), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))" , tryResult3090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 926, mozilla::dom::quota::Severity::Error); return tryResult3090 .propagateErr(); }} | |||
926 | .mapErr(mapNoDeviceSpaceError))){auto tryResult3090 = ((::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError ))); static_assert(std::is_empty_v<typename decltype(tryResult3090 )::ok_type>); if ((__builtin_expect(!!(tryResult3090.isErr ()), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))" , tryResult3090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 926, mozilla::dom::quota::Severity::Error); return tryResult3090 .propagateErr(); }}; | |||
927 | ||||
928 | QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult3091 = (ToResult(SetJournalMode(*connection))) ; static_assert(std::is_empty_v<typename decltype(tryResult3091 )::ok_type>); if ((__builtin_expect(!!(tryResult3091.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))" , tryResult3091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 928, mozilla::dom::quota::Severity::Error); return tryResult3091 .propagateErr(); }}; | |||
929 | ||||
930 | journalModeSet = true; | |||
931 | } else { | |||
932 | #ifdef DEBUG1 | |||
933 | // Disable foreign key support while upgrading. This has to be done before | |||
934 | // starting a transaction. | |||
935 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 936); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" ")"); do { *((volatile int*)__null) = 936; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
936 | connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 936); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" ")"); do { *((volatile int*)__null) = 936; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
937 | #endif | |||
938 | } | |||
939 | ||||
940 | bool vacuumNeeded = false; | |||
941 | ||||
942 | mozStorageTransaction transaction( | |||
943 | connection.get(), false, mozIStorageConnection::TRANSACTION_IMMEDIATE); | |||
944 | ||||
945 | QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult3092 = (ToResult(transaction.Start())); static_assert (std::is_empty_v<typename decltype(tryResult3092)::ok_type >); if ((__builtin_expect(!!(tryResult3092.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(transaction.Start())" , tryResult3092.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 945, mozilla::dom::quota::Severity::Error); return tryResult3092 .propagateErr(); }}; | |||
946 | ||||
947 | if (newDatabase) { | |||
948 | QM_TRY(MOZ_TO_RESULT(CreateTables(*connection))){auto tryResult3093 = (ToResult(CreateTables(*connection))); static_assert (std::is_empty_v<typename decltype(tryResult3093)::ok_type >); if ((__builtin_expect(!!(tryResult3093.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(CreateTables(*connection))" , tryResult3093.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 948, mozilla::dom::quota::Severity::Error); return tryResult3093 .propagateErr(); }}; | |||
949 | ||||
950 | #ifdef DEBUG1 | |||
951 | { | |||
952 | QM_TRY_INSPECT(auto tryResult3094 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult3094 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3094.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 955, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 955); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 955; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & schemaVersion = tryResult3094.inspect(); | |||
953 | const int32_t& schemaVersion,auto tryResult3094 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult3094 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3094.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 955, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 955); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 955; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & schemaVersion = tryResult3094.inspect(); | |||
954 | MOZ_TO_RESULT_INVOKE_MEMBER(connection, GetSchemaVersion),auto tryResult3094 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult3094 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3094.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 955, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 955); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 955; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & schemaVersion = tryResult3094.inspect(); | |||
955 | QM_ASSERT_UNREACHABLE)auto tryResult3094 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult3094 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3094.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 955, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 955); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 955; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & schemaVersion = tryResult3094.inspect();; | |||
956 | MOZ_ASSERT(schemaVersion == kSQLiteSchemaVersion)do { static_assert( mozilla::detail::AssertionConditionType< decltype(schemaVersion == kSQLiteSchemaVersion)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(schemaVersion == kSQLiteSchemaVersion))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("schemaVersion == kSQLiteSchemaVersion" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "schemaVersion == kSQLiteSchemaVersion" ")"); do { *((volatile int*)__null) = 956; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
957 | } | |||
958 | #endif | |||
959 | ||||
960 | // The parameter names are not used, parameters are bound by index only | |||
961 | // locally in the same function. | |||
962 | QM_TRY_INSPECT(auto tryResult3095 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(connection)>::CreateStatement ), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns )); if ((__builtin_expect(!!(tryResult3095.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)" , tryResult3095.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 967, mozilla::dom::quota::Severity::Error); return tryResult3095 .propagateErr(); } const auto& stmt = tryResult3095.inspect (); | |||
963 | const auto& stmt,auto tryResult3095 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(connection)>::CreateStatement ), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns )); if ((__builtin_expect(!!(tryResult3095.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)" , tryResult3095.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 967, mozilla::dom::quota::Severity::Error); return tryResult3095 .propagateErr(); } const auto& stmt = tryResult3095.inspect (); | |||
964 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3095 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(connection)>::CreateStatement ), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns )); if ((__builtin_expect(!!(tryResult3095.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)" , tryResult3095.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 967, mozilla::dom::quota::Severity::Error); return tryResult3095 .propagateErr(); } const auto& stmt = tryResult3095.inspect (); | |||
965 | nsCOMPtr<mozIStorageStatement>, connection, CreateStatement,auto tryResult3095 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(connection)>::CreateStatement ), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns )); if ((__builtin_expect(!!(tryResult3095.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)" , tryResult3095.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 967, mozilla::dom::quota::Severity::Error); return tryResult3095 .propagateErr(); } const auto& stmt = tryResult3095.inspect (); | |||
966 | "INSERT INTO database (name, origin) "auto tryResult3095 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(connection)>::CreateStatement ), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns )); if ((__builtin_expect(!!(tryResult3095.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)" , tryResult3095.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 967, mozilla::dom::quota::Severity::Error); return tryResult3095 .propagateErr(); } const auto& stmt = tryResult3095.inspect (); | |||
967 | "VALUES (:name, :origin)"_ns))auto tryResult3095 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(connection)>::CreateStatement ), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns )); if ((__builtin_expect(!!(tryResult3095.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)" , tryResult3095.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 967, mozilla::dom::quota::Severity::Error); return tryResult3095 .propagateErr(); } const auto& stmt = tryResult3095.inspect ();; | |||
968 | ||||
969 | QM_TRY(MOZ_TO_RESULT(stmt->BindStringByIndex(0, aName))){auto tryResult3096 = (ToResult(stmt->BindStringByIndex(0, aName))); static_assert(std::is_empty_v<typename decltype (tryResult3096)::ok_type>); if ((__builtin_expect(!!(tryResult3096 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByIndex(0, aName))" , tryResult3096.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 969, mozilla::dom::quota::Severity::Error); return tryResult3096 .propagateErr(); }}; | |||
970 | QM_TRY(MOZ_TO_RESULT(stmt->BindUTF8StringByIndex(1, aOrigin))){auto tryResult3097 = (ToResult(stmt->BindUTF8StringByIndex (1, aOrigin))); static_assert(std::is_empty_v<typename decltype (tryResult3097)::ok_type>); if ((__builtin_expect(!!(tryResult3097 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindUTF8StringByIndex(1, aOrigin))" , tryResult3097.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 970, mozilla::dom::quota::Severity::Error); return tryResult3097 .propagateErr(); }}; | |||
971 | QM_TRY(MOZ_TO_RESULT(stmt->Execute())){auto tryResult3098 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3098)::ok_type >); if ((__builtin_expect(!!(tryResult3098.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3098.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 971, mozilla::dom::quota::Severity::Error); return tryResult3098 .propagateErr(); }}; | |||
972 | } else { | |||
973 | QM_TRY_UNWRAP(vacuumNeeded, MaybeUpgradeSchema(*connection, schemaVersion,auto tryResult3099 = (MaybeUpgradeSchema(*connection, schemaVersion , aFMDirectory, aOrigin)); if ((__builtin_expect(!!(tryResult3099 .isErr()), 0))) { mozilla::dom::quota::HandleError("MaybeUpgradeSchema(*connection, schemaVersion, aFMDirectory, aOrigin)" , tryResult3099.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 974, mozilla::dom::quota::Severity::Error); return tryResult3099 .propagateErr(); } vacuumNeeded = tryResult3099.unwrap(); | |||
974 | aFMDirectory, aOrigin))auto tryResult3099 = (MaybeUpgradeSchema(*connection, schemaVersion , aFMDirectory, aOrigin)); if ((__builtin_expect(!!(tryResult3099 .isErr()), 0))) { mozilla::dom::quota::HandleError("MaybeUpgradeSchema(*connection, schemaVersion, aFMDirectory, aOrigin)" , tryResult3099.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 974, mozilla::dom::quota::Severity::Error); return tryResult3099 .propagateErr(); } vacuumNeeded = tryResult3099.unwrap();; | |||
975 | } | |||
976 | ||||
977 | QM_TRY(MOZ_TO_RESULT_INVOKE_MEMBER(transaction, Commit){auto tryResult3100 = (::mozilla::ToResultInvokeMember( (transaction ), &::mozilla::detail::DerefedType<decltype(transaction )>::Commit) .mapErr(mapNoDeviceSpaceError)); static_assert (std::is_empty_v<typename decltype(tryResult3100)::ok_type >); if ((__builtin_expect(!!(tryResult3100.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (transaction), &::mozilla::detail::DerefedType<decltype(transaction)>::Commit) .mapErr(mapNoDeviceSpaceError)" , tryResult3100.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 978, mozilla::dom::quota::Severity::Error); return tryResult3100 .propagateErr(); }} | |||
978 | .mapErr(mapNoDeviceSpaceError)){auto tryResult3100 = (::mozilla::ToResultInvokeMember( (transaction ), &::mozilla::detail::DerefedType<decltype(transaction )>::Commit) .mapErr(mapNoDeviceSpaceError)); static_assert (std::is_empty_v<typename decltype(tryResult3100)::ok_type >); if ((__builtin_expect(!!(tryResult3100.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (transaction), &::mozilla::detail::DerefedType<decltype(transaction)>::Commit) .mapErr(mapNoDeviceSpaceError)" , tryResult3100.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 978, mozilla::dom::quota::Severity::Error); return tryResult3100 .propagateErr(); }}; | |||
979 | ||||
980 | #ifdef DEBUG1 | |||
981 | if (!newDatabase) { | |||
982 | // Re-enable foreign key support after doing a foreign key check. | |||
983 | QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult3101 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult3101.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3101.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 987, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 987); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 987; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const bool & foreignKeyError = tryResult3101.inspect(); | |||
984 | CreateAndExecuteSingleStepStatement<auto tryResult3101 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult3101.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3101.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 987, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 987); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 987; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const bool & foreignKeyError = tryResult3101.inspect(); | |||
985 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult3101 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult3101.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3101.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 987, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 987); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 987; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const bool & foreignKeyError = tryResult3101.inspect(); | |||
986 | *connection, "PRAGMA foreign_key_check;"_ns),auto tryResult3101 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult3101.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3101.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 987, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 987); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 987; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const bool & foreignKeyError = tryResult3101.inspect(); | |||
987 | QM_ASSERT_UNREACHABLE)auto tryResult3101 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult3101.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3101.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 987, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 987); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 987; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const bool & foreignKeyError = tryResult3101.inspect();; | |||
988 | ||||
989 | MOZ_ASSERT(!foreignKeyError, "Database has inconsisistent foreign keys!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(!foreignKeyError)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!foreignKeyError))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!foreignKeyError" " (" "Database has inconsisistent foreign keys!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 989); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!foreignKeyError" ") (" "Database has inconsisistent foreign keys!" ")"); do { *((volatile int*)__null) = 989; __attribute__((nomerge)) ::abort (); } while (false); } } while (false); | |||
990 | ||||
991 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 992); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" ")"); do { *((volatile int*)__null) = 992; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
992 | connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 992); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" ")"); do { *((volatile int*)__null) = 992; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
993 | } | |||
994 | #endif | |||
995 | ||||
996 | if (kSQLitePageSizeOverride && !newDatabase) { | |||
997 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3102 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult3102 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)" , tryResult3102.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 999, mozilla::dom::quota::Severity::Error); return tryResult3102 .propagateErr(); } const auto& stmt = tryResult3102.inspect (); | |||
998 | CreateAndExecuteSingleStepStatement(auto tryResult3102 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult3102 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)" , tryResult3102.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 999, mozilla::dom::quota::Severity::Error); return tryResult3102 .propagateErr(); } const auto& stmt = tryResult3102.inspect (); | |||
999 | *connection, "PRAGMA page_size;"_ns))auto tryResult3102 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult3102 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)" , tryResult3102.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 999, mozilla::dom::quota::Severity::Error); return tryResult3102 .propagateErr(); } const auto& stmt = tryResult3102.inspect ();; | |||
1000 | ||||
1001 | QM_TRY_INSPECT(const int32_t& pageSize,auto tryResult3103 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3103.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)" , tryResult3103.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1002, mozilla::dom::quota::Severity::Error); return tryResult3103 .propagateErr(); } const int32_t& pageSize = tryResult3103 .inspect(); | |||
1002 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult3103 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3103.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)" , tryResult3103.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1002, mozilla::dom::quota::Severity::Error); return tryResult3103 .propagateErr(); } const int32_t& pageSize = tryResult3103 .inspect();; | |||
1003 | MOZ_ASSERT(pageSize >= 512 && pageSize <= 65536)do { static_assert( mozilla::detail::AssertionConditionType< decltype(pageSize >= 512 && pageSize <= 65536)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(pageSize >= 512 && pageSize <= 65536)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("pageSize >= 512 && pageSize <= 65536" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1003); AnnotateMozCrashReason("MOZ_ASSERT" "(" "pageSize >= 512 && pageSize <= 65536" ")"); do { *((volatile int*)__null) = 1003; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1004 | ||||
1005 | if (kSQLitePageSizeOverride != uint32_t(pageSize)) { | |||
1006 | // We must not be in WAL journal mode to change the page size. | |||
1007 | QM_TRY(MOZ_TO_RESULT({auto tryResult3104 = (ToResult(connection->ExecuteSimpleSQL ("PRAGMA journal_mode = DELETE;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult3104)::ok_type>); if ((__builtin_expect (!!(tryResult3104.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA journal_mode = DELETE;\"_ns))" , tryResult3104.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1008, mozilla::dom::quota::Severity::Error); return tryResult3104 .propagateErr(); }} | |||
1008 | connection->ExecuteSimpleSQL("PRAGMA journal_mode = DELETE;"_ns))){auto tryResult3104 = (ToResult(connection->ExecuteSimpleSQL ("PRAGMA journal_mode = DELETE;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult3104)::ok_type>); if ((__builtin_expect (!!(tryResult3104.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA journal_mode = DELETE;\"_ns))" , tryResult3104.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1008, mozilla::dom::quota::Severity::Error); return tryResult3104 .propagateErr(); }}; | |||
1009 | ||||
1010 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3105 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult3105 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)" , tryResult3105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1012, mozilla::dom::quota::Severity::Error); return tryResult3105 .propagateErr(); } const auto& stmt = tryResult3105.inspect (); | |||
1011 | CreateAndExecuteSingleStepStatement(auto tryResult3105 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult3105 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)" , tryResult3105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1012, mozilla::dom::quota::Severity::Error); return tryResult3105 .propagateErr(); } const auto& stmt = tryResult3105.inspect (); | |||
1012 | *connection, "PRAGMA journal_mode;"_ns))auto tryResult3105 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult3105 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)" , tryResult3105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1012, mozilla::dom::quota::Severity::Error); return tryResult3105 .propagateErr(); } const auto& stmt = tryResult3105.inspect ();; | |||
1013 | ||||
1014 | QM_TRY_INSPECT(const auto& journalMode,auto tryResult3106 = (::mozilla::ToResultInvoke< nsCString >( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult3106.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult3106.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1016, mozilla::dom::quota::Severity::Error); return tryResult3106 .propagateErr(); } const auto& journalMode = tryResult3106 .inspect(); | |||
1015 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCString, *stmt,auto tryResult3106 = (::mozilla::ToResultInvoke< nsCString >( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult3106.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult3106.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1016, mozilla::dom::quota::Severity::Error); return tryResult3106 .propagateErr(); } const auto& journalMode = tryResult3106 .inspect(); | |||
1016 | GetUTF8String, 0))auto tryResult3106 = (::mozilla::ToResultInvoke< nsCString >( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult3106.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult3106.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1016, mozilla::dom::quota::Severity::Error); return tryResult3106 .propagateErr(); } const auto& journalMode = tryResult3106 .inspect();; | |||
1017 | ||||
1018 | if (journalMode.EqualsLiteral("delete")) { | |||
1019 | // Successfully set to rollback journal mode so changing the page size | |||
1020 | // is possible with a VACUUM. | |||
1021 | QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL(nsPrintfCString({auto tryResult3107 = (ToResult(connection->ExecuteSimpleSQL (nsPrintfCString( "PRAGMA page_size = %" "u" ";", kSQLitePageSizeOverride )))); static_assert(std::is_empty_v<typename decltype(tryResult3107 )::ok_type>); if ((__builtin_expect(!!(tryResult3107.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", kSQLitePageSizeOverride)))" , tryResult3107.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1022, mozilla::dom::quota::Severity::Error); return tryResult3107 .propagateErr(); }} | |||
1022 | "PRAGMA page_size = %" PRIu32 ";", kSQLitePageSizeOverride)))){auto tryResult3107 = (ToResult(connection->ExecuteSimpleSQL (nsPrintfCString( "PRAGMA page_size = %" "u" ";", kSQLitePageSizeOverride )))); static_assert(std::is_empty_v<typename decltype(tryResult3107 )::ok_type>); if ((__builtin_expect(!!(tryResult3107.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", kSQLitePageSizeOverride)))" , tryResult3107.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1022, mozilla::dom::quota::Severity::Error); return tryResult3107 .propagateErr(); }}; | |||
1023 | ||||
1024 | // We will need to VACUUM in order to change the page size. | |||
1025 | vacuumNeeded = true; | |||
1026 | } else { | |||
1027 | NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to " "change the page size!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1029) | |||
1028 | "Failed to set journal_mode for database, unable to "NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to " "change the page size!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1029) | |||
1029 | "change the page size!")NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to " "change the page size!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1029); | |||
1030 | } | |||
1031 | } | |||
1032 | } | |||
1033 | ||||
1034 | if (vacuumNeeded) { | |||
1035 | QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL("VACUUM;"_ns))){auto tryResult3108 = (ToResult(connection->ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3108)::ok_type>); if ((__builtin_expect(!!(tryResult3108 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3108.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1035, mozilla::dom::quota::Severity::Error); return tryResult3108 .propagateErr(); }}; | |||
1036 | } | |||
1037 | ||||
1038 | if (newDatabase || vacuumNeeded) { | |||
1039 | if (journalModeSet) { | |||
1040 | // Make sure we checkpoint to get an accurate file size. | |||
1041 | QM_TRY(MOZ_TO_RESULT({auto tryResult3109 = (ToResult(connection->ExecuteSimpleSQL ("PRAGMA wal_checkpoint(FULL);"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult3109)::ok_type>); if ((__builtin_expect (!!(tryResult3109.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA wal_checkpoint(FULL);\"_ns))" , tryResult3109.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1042, mozilla::dom::quota::Severity::Error); return tryResult3109 .propagateErr(); }} | |||
1042 | connection->ExecuteSimpleSQL("PRAGMA wal_checkpoint(FULL);"_ns))){auto tryResult3109 = (ToResult(connection->ExecuteSimpleSQL ("PRAGMA wal_checkpoint(FULL);"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult3109)::ok_type>); if ((__builtin_expect (!!(tryResult3109.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA wal_checkpoint(FULL);\"_ns))" , tryResult3109.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1042, mozilla::dom::quota::Severity::Error); return tryResult3109 .propagateErr(); }}; | |||
1043 | } | |||
1044 | ||||
1045 | QM_TRY_INSPECT(const int64_t& fileSize,auto tryResult3110 = (::mozilla::ToResultInvokeMember( (aDBFile ), &::mozilla::detail::DerefedType<decltype(aDBFile)> ::GetFileSize)); if ((__builtin_expect(!!(tryResult3110.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDBFile), &::mozilla::detail::DerefedType<decltype(aDBFile)>::GetFileSize)" , tryResult3110.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1046, mozilla::dom::quota::Severity::Error); return tryResult3110 .propagateErr(); } const int64_t& fileSize = tryResult3110 .inspect(); | |||
1046 | MOZ_TO_RESULT_INVOKE_MEMBER(aDBFile, GetFileSize))auto tryResult3110 = (::mozilla::ToResultInvokeMember( (aDBFile ), &::mozilla::detail::DerefedType<decltype(aDBFile)> ::GetFileSize)); if ((__builtin_expect(!!(tryResult3110.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDBFile), &::mozilla::detail::DerefedType<decltype(aDBFile)>::GetFileSize)" , tryResult3110.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1046, mozilla::dom::quota::Severity::Error); return tryResult3110 .propagateErr(); } const int64_t& fileSize = tryResult3110 .inspect();; | |||
1047 | MOZ_ASSERT(fileSize > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 1047; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1048 | ||||
1049 | PRTime vacuumTime = PR_Now(); | |||
1050 | MOZ_ASSERT(vacuumTime)do { static_assert( mozilla::detail::AssertionConditionType< decltype(vacuumTime)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1050); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime" ")"); do { *((volatile int*)__null) = 1050; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1051 | ||||
1052 | // The parameter names are not used, parameters are bound by index only | |||
1053 | // locally in the same function. | |||
1054 | QM_TRY_INSPECT(auto tryResult3111 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(connection)>::CreateStatement ), (connection), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!! (tryResult3111.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3111.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1060, mozilla::dom::quota::Severity::Error); return tryResult3111 .propagateErr(); } const auto& vacuumTimeStmt = tryResult3111 .inspect(); | |||
1055 | const auto& vacuumTimeStmt,auto tryResult3111 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(connection)>::CreateStatement ), (connection), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!! (tryResult3111.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3111.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1060, mozilla::dom::quota::Severity::Error); return tryResult3111 .propagateErr(); } const auto& vacuumTimeStmt = tryResult3111 .inspect(); | |||
1056 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCOMPtr<mozIStorageStatement>,auto tryResult3111 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(connection)>::CreateStatement ), (connection), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!! (tryResult3111.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3111.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1060, mozilla::dom::quota::Severity::Error); return tryResult3111 .propagateErr(); } const auto& vacuumTimeStmt = tryResult3111 .inspect(); | |||
1057 | connection, CreateStatement,auto tryResult3111 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(connection)>::CreateStatement ), (connection), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!! (tryResult3111.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3111.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1060, mozilla::dom::quota::Severity::Error); return tryResult3111 .propagateErr(); } const auto& vacuumTimeStmt = tryResult3111 .inspect(); | |||
1058 | "UPDATE database "auto tryResult3111 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(connection)>::CreateStatement ), (connection), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!! (tryResult3111.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3111.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1060, mozilla::dom::quota::Severity::Error); return tryResult3111 .propagateErr(); } const auto& vacuumTimeStmt = tryResult3111 .inspect(); | |||
1059 | "SET last_vacuum_time = :time"auto tryResult3111 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(connection)>::CreateStatement ), (connection), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!! (tryResult3111.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3111.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1060, mozilla::dom::quota::Severity::Error); return tryResult3111 .propagateErr(); } const auto& vacuumTimeStmt = tryResult3111 .inspect(); | |||
1060 | ", last_vacuum_size = :size;"_ns))auto tryResult3111 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(connection)>::CreateStatement ), (connection), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!! (tryResult3111.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3111.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1060, mozilla::dom::quota::Severity::Error); return tryResult3111 .propagateErr(); } const auto& vacuumTimeStmt = tryResult3111 .inspect();; | |||
1061 | ||||
1062 | QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->BindInt64ByIndex(0, vacuumTime))){auto tryResult3112 = (ToResult(vacuumTimeStmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3112)::ok_type>); if ((__builtin_expect(!!(tryResult3112 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3112.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1062, mozilla::dom::quota::Severity::Error); return tryResult3112 .propagateErr(); }}; | |||
1063 | QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->BindInt64ByIndex(1, fileSize))){auto tryResult3113 = (ToResult(vacuumTimeStmt->BindInt64ByIndex (1, fileSize))); static_assert(std::is_empty_v<typename decltype (tryResult3113)::ok_type>); if ((__builtin_expect(!!(tryResult3113 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->BindInt64ByIndex(1, fileSize))" , tryResult3113.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1063, mozilla::dom::quota::Severity::Error); return tryResult3113 .propagateErr(); }}; | |||
1064 | QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->Execute())){auto tryResult3114 = (ToResult(vacuumTimeStmt->Execute()) ); static_assert(std::is_empty_v<typename decltype(tryResult3114 )::ok_type>); if ((__builtin_expect(!!(tryResult3114.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->Execute())" , tryResult3114.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1064, mozilla::dom::quota::Severity::Error); return tryResult3114 .propagateErr(); }}; | |||
1065 | } | |||
1066 | } | |||
1067 | ||||
1068 | if (!journalModeSet) { | |||
1069 | QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult3115 = (ToResult(SetJournalMode(*connection))) ; static_assert(std::is_empty_v<typename decltype(tryResult3115 )::ok_type>); if ((__builtin_expect(!!(tryResult3115.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))" , tryResult3115.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1069, mozilla::dom::quota::Severity::Error); return tryResult3115 .propagateErr(); }}; | |||
1070 | } | |||
1071 | ||||
1072 | return WrapMovingNotNullUnchecked(std::move(connection)); | |||
1073 | } | |||
1074 | ||||
1075 | nsCOMPtr<nsIFile> GetFileForPath(const nsAString& aPath) { | |||
1076 | MOZ_ASSERT(!aPath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aPath.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aPath.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aPath.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1076); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aPath.IsEmpty()" ")"); do { *((volatile int*)__null) = 1076; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1077 | ||||
1078 | QM_TRY_RETURN(QM_NewLocalFile(aPath), nullptr){auto tryResult3116 = (QM_NewLocalFile(aPath)); if ((__builtin_expect (!!(tryResult3116.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3116.unwrapErr(); mozilla::dom::quota ::HandleError("QM_NewLocalFile(aPath)", tryResult3116.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1078, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "QM_NewLocalFile(aPath)" , tryTempError, nullptr); } return tryResult3116.unwrap();}; | |||
1079 | } | |||
1080 | ||||
1081 | Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> | |||
1082 | GetStorageConnection(nsIFile& aDatabaseFile, const int64_t aDirectoryLockId, | |||
1083 | const uint32_t aTelemetryId, | |||
1084 | const Maybe<CipherKey>& aMaybeKey) { | |||
1085 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1085); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 1085; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1086 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1086); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 1086; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1087 | MOZ_ASSERT(aDirectoryLockId >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectoryLockId >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1087); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= 0" ")"); do { *((volatile int*)__null) = 1087; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1088 | ||||
1089 | AUTO_PROFILER_LABEL("GetStorageConnection", DOM)mozilla::AutoProfilerLabel raiiObject1089( "GetStorageConnection" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
1090 | ||||
1091 | QM_TRY_INSPECT(const bool& exists,auto tryResult3117 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::Exists)); if ((__builtin_expect(!!(tryResult3117.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::Exists)" , tryResult3117.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1092, mozilla::dom::quota::Severity::Error); return tryResult3117 .propagateErr(); } const bool& exists = tryResult3117.inspect (); | |||
1092 | MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, Exists))auto tryResult3117 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::Exists)); if ((__builtin_expect(!!(tryResult3117.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::Exists)" , tryResult3117.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1092, mozilla::dom::quota::Severity::Error); return tryResult3117 .propagateErr(); } const bool& exists = tryResult3117.inspect ();; | |||
1093 | ||||
1094 | QM_TRY(OkIf(exists), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult3118 = (OkIf(exists)); static_assert(std::is_empty_v <typename decltype(tryResult3118)::ok_type>); if ((__builtin_expect (!!(tryResult3118.isErr()), 0))) { auto tryTempError = tryResult3118 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(exists)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1095, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1095, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(exists)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | |||
1095 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult3118 = (OkIf(exists)); static_assert(std::is_empty_v <typename decltype(tryResult3118)::ok_type>); if ((__builtin_expect (!!(tryResult3118.isErr()), 0))) { auto tryTempError = tryResult3118 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(exists)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1095, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1095, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(exists)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; | |||
1096 | ||||
1097 | QM_TRY_INSPECT(auto tryResult3119 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId , aMaybeKey)); if ((__builtin_expect(!!(tryResult3119.isErr() ), 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)" , tryResult3119.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1099, mozilla::dom::quota::Severity::Error); return tryResult3119 .propagateErr(); } const auto& dbFileUrl = tryResult3119. inspect(); | |||
1098 | const auto& dbFileUrl,auto tryResult3119 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId , aMaybeKey)); if ((__builtin_expect(!!(tryResult3119.isErr() ), 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)" , tryResult3119.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1099, mozilla::dom::quota::Severity::Error); return tryResult3119 .propagateErr(); } const auto& dbFileUrl = tryResult3119. inspect(); | |||
1099 | GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey))auto tryResult3119 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId , aMaybeKey)); if ((__builtin_expect(!!(tryResult3119.isErr() ), 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)" , tryResult3119.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1099, mozilla::dom::quota::Severity::Error); return tryResult3119 .propagateErr(); } const auto& dbFileUrl = tryResult3119. inspect();; | |||
1100 | ||||
1101 | QM_TRY_INSPECT(const auto& storageService,auto tryResult3120 = (::mozilla::ToResultGet< nsCOMPtr< mozIStorageService> >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype (aArgs)>(aArgs)...); }, "@mozilla.org/storage" "/service;1" )); if ((__builtin_expect(!!(tryResult3120.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage\" \"/service;1\")" , tryResult3120.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1104, mozilla::dom::quota::Severity::Error); return tryResult3120 .propagateErr(); } const auto& storageService = tryResult3120 .inspect(); | |||
1102 | MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<mozIStorageService>,auto tryResult3120 = (::mozilla::ToResultGet< nsCOMPtr< mozIStorageService> >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype (aArgs)>(aArgs)...); }, "@mozilla.org/storage" "/service;1" )); if ((__builtin_expect(!!(tryResult3120.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage\" \"/service;1\")" , tryResult3120.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1104, mozilla::dom::quota::Severity::Error); return tryResult3120 .propagateErr(); } const auto& storageService = tryResult3120 .inspect(); | |||
1103 | MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult3120 = (::mozilla::ToResultGet< nsCOMPtr< mozIStorageService> >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype (aArgs)>(aArgs)...); }, "@mozilla.org/storage" "/service;1" )); if ((__builtin_expect(!!(tryResult3120.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage\" \"/service;1\")" , tryResult3120.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1104, mozilla::dom::quota::Severity::Error); return tryResult3120 .propagateErr(); } const auto& storageService = tryResult3120 .inspect(); | |||
1104 | MOZ_STORAGE_SERVICE_CONTRACTID))auto tryResult3120 = (::mozilla::ToResultGet< nsCOMPtr< mozIStorageService> >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype (aArgs)>(aArgs)...); }, "@mozilla.org/storage" "/service;1" )); if ((__builtin_expect(!!(tryResult3120.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage\" \"/service;1\")" , tryResult3120.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1104, mozilla::dom::quota::Severity::Error); return tryResult3120 .propagateErr(); } const auto& storageService = tryResult3120 .inspect();; | |||
1105 | ||||
1106 | QM_TRY_UNWRAP(auto tryResult3121 = (OpenDatabaseAndHandleBusy(*storageService , *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult3121 .isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)" , tryResult3121.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1108, mozilla::dom::quota::Severity::Error); return tryResult3121 .propagateErr(); } nsCOMPtr<mozIStorageConnection> connection = tryResult3121.unwrap(); | |||
1107 | nsCOMPtr<mozIStorageConnection> connection,auto tryResult3121 = (OpenDatabaseAndHandleBusy(*storageService , *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult3121 .isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)" , tryResult3121.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1108, mozilla::dom::quota::Severity::Error); return tryResult3121 .propagateErr(); } nsCOMPtr<mozIStorageConnection> connection = tryResult3121.unwrap(); | |||
1108 | OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId))auto tryResult3121 = (OpenDatabaseAndHandleBusy(*storageService , *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult3121 .isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)" , tryResult3121.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1108, mozilla::dom::quota::Severity::Error); return tryResult3121 .propagateErr(); } nsCOMPtr<mozIStorageConnection> connection = tryResult3121.unwrap();; | |||
1109 | ||||
1110 | QM_TRY(MOZ_TO_RESULT(SetDefaultPragmas(*connection))){auto tryResult3122 = (ToResult(SetDefaultPragmas(*connection ))); static_assert(std::is_empty_v<typename decltype(tryResult3122 )::ok_type>); if ((__builtin_expect(!!(tryResult3122.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(SetDefaultPragmas(*connection))" , tryResult3122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1110, mozilla::dom::quota::Severity::Error); return tryResult3122 .propagateErr(); }}; | |||
1111 | ||||
1112 | QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult3123 = (ToResult(SetJournalMode(*connection))) ; static_assert(std::is_empty_v<typename decltype(tryResult3123 )::ok_type>); if ((__builtin_expect(!!(tryResult3123.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))" , tryResult3123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1112, mozilla::dom::quota::Severity::Error); return tryResult3123 .propagateErr(); }}; | |||
1113 | ||||
1114 | return WrapMovingNotNullUnchecked(std::move(connection)); | |||
1115 | } | |||
1116 | ||||
1117 | Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> | |||
1118 | GetStorageConnection(const nsAString& aDatabaseFilePath, | |||
1119 | const int64_t aDirectoryLockId, | |||
1120 | const uint32_t aTelemetryId, | |||
1121 | const Maybe<CipherKey>& aMaybeKey) { | |||
1122 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1122); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 1122; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1123 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1123); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 1123; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1124 | MOZ_ASSERT(!aDatabaseFilePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseFilePath.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseFilePath.IsEmpty() ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!aDatabaseFilePath.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1124); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseFilePath.IsEmpty()" ")"); do { *((volatile int*)__null) = 1124; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1125 | MOZ_ASSERT(StringEndsWith(aDatabaseFilePath, kSQLiteSuffix))do { static_assert( mozilla::detail::AssertionConditionType< decltype(StringEndsWith(aDatabaseFilePath, kSQLiteSuffix))> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1125); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)" ")"); do { *((volatile int*)__null) = 1125; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1126 | MOZ_ASSERT(aDirectoryLockId >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectoryLockId >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1126); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= 0" ")"); do { *((volatile int*)__null) = 1126; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1127 | ||||
1128 | nsCOMPtr<nsIFile> dbFile = GetFileForPath(aDatabaseFilePath); | |||
1129 | ||||
1130 | QM_TRY(OkIf(dbFile), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult3124 = (OkIf(dbFile)); static_assert(std::is_empty_v <typename decltype(tryResult3124)::ok_type>); if ((__builtin_expect (!!(tryResult3124.isErr()), 0))) { auto tryTempError = tryResult3124 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(dbFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1131, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1131, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(dbFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | |||
1131 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult3124 = (OkIf(dbFile)); static_assert(std::is_empty_v <typename decltype(tryResult3124)::ok_type>); if ((__builtin_expect (!!(tryResult3124.isErr()), 0))) { auto tryTempError = tryResult3124 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(dbFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1131, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1131, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(dbFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; | |||
1132 | ||||
1133 | return GetStorageConnection(*dbFile, aDirectoryLockId, aTelemetryId, | |||
1134 | aMaybeKey); | |||
1135 | } | |||
1136 | ||||
1137 | /******************************************************************************* | |||
1138 | * ConnectionPool declarations | |||
1139 | ******************************************************************************/ | |||
1140 | ||||
1141 | class DatabaseConnection final : public CachingDatabaseConnection { | |||
1142 | friend class ConnectionPool; | |||
1143 | ||||
1144 | enum class CheckpointMode { Full, Restart, Truncate }; | |||
1145 | ||||
1146 | public: | |||
1147 | class AutoSavepoint; | |||
1148 | class UpdateRefcountFunction; | |||
1149 | ||||
1150 | private: | |||
1151 | InitializedOnce<const NotNull<SafeRefPtr<DatabaseFileManager>>> mFileManager; | |||
1152 | RefPtr<UpdateRefcountFunction> mUpdateRefcountFunction; | |||
1153 | RefPtr<QuotaObject> mQuotaObject; | |||
1154 | RefPtr<QuotaObject> mJournalQuotaObject; | |||
1155 | IDBTransaction::Durability mLastDurability; | |||
1156 | bool mInReadTransaction; | |||
1157 | bool mInWriteTransaction; | |||
1158 | ||||
1159 | #ifdef DEBUG1 | |||
1160 | uint32_t mDEBUGSavepointCount; | |||
1161 | #endif | |||
1162 | ||||
1163 | public: | |||
1164 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(DatabaseConnection)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<DatabaseConnection>, "Reference-counted class " "DatabaseConnection" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1164); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 1164; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this ), (count), ("DatabaseConnection"), (uint32_t)(sizeof(*this)) ); return (nsrefcnt)count; } MozExternalRefCountType Release( void) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1164); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 1164 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("DatabaseConnection")); if (count == 0) { delete (this ); return 0; } return count; } using HasThreadSafeRefCnt = std ::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt ; public: | |||
1165 | ||||
1166 | UpdateRefcountFunction* GetUpdateRefcountFunction() const { | |||
1167 | AssertIsOnConnectionThread(); | |||
1168 | ||||
1169 | return mUpdateRefcountFunction; | |||
1170 | } | |||
1171 | ||||
1172 | nsresult BeginWriteTransaction(const IDBTransaction::Durability aDurability); | |||
1173 | ||||
1174 | nsresult CommitWriteTransaction(); | |||
1175 | ||||
1176 | void RollbackWriteTransaction(); | |||
1177 | ||||
1178 | void FinishWriteTransaction(); | |||
1179 | ||||
1180 | nsresult StartSavepoint(); | |||
1181 | ||||
1182 | nsresult ReleaseSavepoint(); | |||
1183 | ||||
1184 | nsresult RollbackSavepoint(); | |||
1185 | ||||
1186 | nsresult Checkpoint() { | |||
1187 | AssertIsOnConnectionThread(); | |||
1188 | ||||
1189 | return CheckpointInternal(CheckpointMode::Full); | |||
1190 | } | |||
1191 | ||||
1192 | void DoIdleProcessing(bool aNeedsCheckpoint, | |||
1193 | const Atomic<bool>& aInterrupted); | |||
1194 | ||||
1195 | void Close(); | |||
1196 | ||||
1197 | nsresult DisableQuotaChecks(); | |||
1198 | ||||
1199 | void EnableQuotaChecks(); | |||
1200 | ||||
1201 | private: | |||
1202 | DatabaseConnection( | |||
1203 | MovingNotNull<nsCOMPtr<mozIStorageConnection>> aStorageConnection, | |||
1204 | MovingNotNull<SafeRefPtr<DatabaseFileManager>> aFileManager); | |||
1205 | ||||
1206 | ~DatabaseConnection(); | |||
1207 | ||||
1208 | nsresult Init(); | |||
1209 | ||||
1210 | nsresult CheckpointInternal(CheckpointMode aMode); | |||
1211 | ||||
1212 | Result<uint32_t, nsresult> GetFreelistCount( | |||
1213 | CachedStatement& aCachedStatement); | |||
1214 | ||||
1215 | /** | |||
1216 | * On success, returns whether some pages were freed. | |||
1217 | */ | |||
1218 | Result<bool, nsresult> ReclaimFreePagesWhileIdle( | |||
1219 | CachedStatement& aFreelistStatement, CachedStatement& aRollbackStatement, | |||
1220 | uint32_t aFreelistCount, bool aNeedsCheckpoint, | |||
1221 | const Atomic<bool>& aInterrupted); | |||
1222 | ||||
1223 | Result<int64_t, nsresult> GetFileSize(const nsAString& aPath); | |||
1224 | }; | |||
1225 | ||||
1226 | class MOZ_STACK_CLASS DatabaseConnection::AutoSavepoint final { | |||
1227 | DatabaseConnection* mConnection; | |||
1228 | #ifdef DEBUG1 | |||
1229 | const TransactionBase* mDEBUGTransaction; | |||
1230 | #endif | |||
1231 | ||||
1232 | public: | |||
1233 | AutoSavepoint(); | |||
1234 | ~AutoSavepoint(); | |||
1235 | ||||
1236 | nsresult Start(const TransactionBase& aTransaction); | |||
1237 | ||||
1238 | nsresult Commit(); | |||
1239 | }; | |||
1240 | ||||
1241 | class DatabaseConnection::UpdateRefcountFunction final | |||
1242 | : public mozIStorageFunction { | |||
1243 | class FileInfoEntry; | |||
1244 | ||||
1245 | enum class UpdateType { Increment, Decrement }; | |||
1246 | ||||
1247 | DatabaseConnection* const mConnection; | |||
1248 | DatabaseFileManager& mFileManager; | |||
1249 | nsClassHashtable<nsUint64HashKey, FileInfoEntry> mFileInfoEntries; | |||
1250 | nsTHashMap<nsUint64HashKey, NotNull<FileInfoEntry*>> mSavepointEntriesIndex; | |||
1251 | ||||
1252 | nsTArray<int64_t> mJournalsToCreateBeforeCommit; | |||
1253 | nsTArray<int64_t> mJournalsToRemoveAfterCommit; | |||
1254 | nsTArray<int64_t> mJournalsToRemoveAfterAbort; | |||
1255 | ||||
1256 | bool mInSavepoint; | |||
1257 | ||||
1258 | public: | |||
1259 | NS_DECL_ISUPPORTS_ONEVENTTARGETpublic: virtual nsresult QueryInterface(const nsIID& aIID , void** aInstancePtr) override; virtual MozExternalRefCountType AddRef(void) override; virtual MozExternalRefCountType Release (void) override; using HasThreadSafeRefCnt = std::false_type; protected: nsAutoRefCnt mRefCnt; nsAutoOwningEventTarget _mOwningThread ; public: | |||
1260 | NS_DECL_MOZISTORAGEFUNCTIONvirtual nsresult OnFunctionCall(mozIStorageValueArray *aFunctionArguments , nsIVariant **_retval) override; | |||
1261 | ||||
1262 | UpdateRefcountFunction(DatabaseConnection* aConnection, | |||
1263 | DatabaseFileManager& aFileManager); | |||
1264 | ||||
1265 | nsresult WillCommit(); | |||
1266 | ||||
1267 | void DidCommit(); | |||
1268 | ||||
1269 | void DidAbort(); | |||
1270 | ||||
1271 | void StartSavepoint(); | |||
1272 | ||||
1273 | void ReleaseSavepoint(); | |||
1274 | ||||
1275 | void RollbackSavepoint(); | |||
1276 | ||||
1277 | void Reset(); | |||
1278 | ||||
1279 | private: | |||
1280 | ~UpdateRefcountFunction() = default; | |||
1281 | ||||
1282 | nsresult ProcessValue(mozIStorageValueArray* aValues, int32_t aIndex, | |||
1283 | UpdateType aUpdateType); | |||
1284 | ||||
1285 | nsresult CreateJournals(); | |||
1286 | ||||
1287 | nsresult RemoveJournals(const nsTArray<int64_t>& aJournals); | |||
1288 | }; | |||
1289 | ||||
1290 | class DatabaseConnection::UpdateRefcountFunction::FileInfoEntry final { | |||
1291 | SafeRefPtr<DatabaseFileInfo> mFileInfo; | |||
1292 | int32_t mDelta; | |||
1293 | int32_t mSavepointDelta; | |||
1294 | ||||
1295 | public: | |||
1296 | explicit FileInfoEntry(SafeRefPtr<DatabaseFileInfo> aFileInfo) | |||
1297 | : mFileInfo(std::move(aFileInfo)), mDelta(0), mSavepointDelta(0) { | |||
1298 | MOZ_COUNT_CTOR(DatabaseConnection::UpdateRefcountFunction::FileInfoEntry)do { static_assert(std::is_class_v<DatabaseConnection::UpdateRefcountFunction ::FileInfoEntry>, "Token '" "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry" "' is not a class type."); static_assert(!std::is_base_of< nsISupports, DatabaseConnection::UpdateRefcountFunction::FileInfoEntry >::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry" , sizeof(*this)); } while (0); | |||
1299 | } | |||
1300 | ||||
1301 | void IncDeltas(bool aUpdateSavepointDelta) { | |||
1302 | ++mDelta; | |||
1303 | if (aUpdateSavepointDelta) { | |||
1304 | ++mSavepointDelta; | |||
1305 | } | |||
1306 | } | |||
1307 | void DecDeltas(bool aUpdateSavepointDelta) { | |||
1308 | --mDelta; | |||
1309 | if (aUpdateSavepointDelta) { | |||
1310 | --mSavepointDelta; | |||
1311 | } | |||
1312 | } | |||
1313 | void DecBySavepointDelta() { mDelta -= mSavepointDelta; } | |||
1314 | SafeRefPtr<DatabaseFileInfo> ReleaseFileInfo() { | |||
1315 | return std::move(mFileInfo); | |||
1316 | } | |||
1317 | void MaybeUpdateDBRefs() { | |||
1318 | if (mDelta) { | |||
1319 | mFileInfo->UpdateDBRefs(mDelta); | |||
1320 | } | |||
1321 | } | |||
1322 | ||||
1323 | int32_t Delta() const { return mDelta; } | |||
1324 | int32_t SavepointDelta() const { return mSavepointDelta; } | |||
1325 | ||||
1326 | ~FileInfoEntry() { | |||
1327 | MOZ_COUNT_DTOR(DatabaseConnection::UpdateRefcountFunction::FileInfoEntry)do { static_assert(std::is_class_v<DatabaseConnection::UpdateRefcountFunction ::FileInfoEntry>, "Token '" "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry" "' is not a class type."); static_assert(!std::is_base_of< nsISupports, DatabaseConnection::UpdateRefcountFunction::FileInfoEntry >::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry" , sizeof(*this)); } while (0); | |||
1328 | } | |||
1329 | }; | |||
1330 | ||||
1331 | class ConnectionPool final { | |||
1332 | public: | |||
1333 | class FinishCallback; | |||
1334 | ||||
1335 | private: | |||
1336 | class ConnectionRunnable; | |||
1337 | class CloseConnectionRunnable; | |||
1338 | struct DatabaseInfo; | |||
1339 | struct DatabaseCompleteCallback; | |||
1340 | class FinishCallbackWrapper; | |||
1341 | class IdleConnectionRunnable; | |||
1342 | ||||
1343 | #ifdef DEBUG1 | |||
1344 | class TransactionRunnable; | |||
1345 | #endif | |||
1346 | class TransactionInfo; | |||
1347 | struct TransactionInfoPair; | |||
1348 | ||||
1349 | struct IdleResource { | |||
1350 | TimeStamp mIdleTime; | |||
1351 | ||||
1352 | IdleResource(const IdleResource& aOther) = delete; | |||
1353 | IdleResource(IdleResource&& aOther) noexcept | |||
1354 | : IdleResource(aOther.mIdleTime) {} | |||
1355 | IdleResource& operator=(const IdleResource& aOther) = delete; | |||
1356 | IdleResource& operator=(IdleResource&& aOther) = delete; | |||
1357 | ||||
1358 | protected: | |||
1359 | explicit IdleResource(const TimeStamp& aIdleTime); | |||
1360 | ||||
1361 | ~IdleResource(); | |||
1362 | }; | |||
1363 | ||||
1364 | struct IdleDatabaseInfo final : public IdleResource { | |||
1365 | InitializedOnce<const NotNull<DatabaseInfo*>> mDatabaseInfo; | |||
1366 | ||||
1367 | public: | |||
1368 | explicit IdleDatabaseInfo(DatabaseInfo& aDatabaseInfo); | |||
1369 | ||||
1370 | IdleDatabaseInfo(const IdleDatabaseInfo& aOther) = delete; | |||
1371 | IdleDatabaseInfo(IdleDatabaseInfo&& aOther) noexcept | |||
1372 | : IdleResource(std::move(aOther)), | |||
1373 | mDatabaseInfo{std::move(aOther.mDatabaseInfo)} { | |||
1374 | MOZ_ASSERT(mDatabaseInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabaseInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabaseInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseInfo", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1374); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo" ")"); do { *((volatile int*)__null) = 1374; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1375 | ||||
1376 | MOZ_COUNT_CTOR(ConnectionPool::IdleDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::IdleDatabaseInfo >, "Token '" "ConnectionPool::IdleDatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, ConnectionPool ::IdleDatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::IdleDatabaseInfo" , sizeof(*this)); } while (0); | |||
1377 | } | |||
1378 | IdleDatabaseInfo& operator=(const IdleDatabaseInfo& aOther) = delete; | |||
1379 | IdleDatabaseInfo& operator=(IdleDatabaseInfo&& aOther) = delete; | |||
1380 | ||||
1381 | ~IdleDatabaseInfo(); | |||
1382 | ||||
1383 | bool operator==(const IdleDatabaseInfo& aOther) const { | |||
1384 | return *mDatabaseInfo == *aOther.mDatabaseInfo; | |||
1385 | } | |||
1386 | ||||
1387 | bool operator==(const DatabaseInfo* aDatabaseInfo) const { | |||
1388 | return *mDatabaseInfo == aDatabaseInfo; | |||
1389 | } | |||
1390 | ||||
1391 | bool operator<(const IdleDatabaseInfo& aOther) const { | |||
1392 | return mIdleTime < aOther.mIdleTime; | |||
1393 | } | |||
1394 | }; | |||
1395 | ||||
1396 | struct PerformingIdleMaintenanceDatabaseInfo { | |||
1397 | const NotNull<DatabaseInfo*> mDatabaseInfo; | |||
1398 | RefPtr<IdleConnectionRunnable> mIdleConnectionRunnable; | |||
1399 | ||||
1400 | PerformingIdleMaintenanceDatabaseInfo( | |||
1401 | DatabaseInfo& aDatabaseInfo, | |||
1402 | RefPtr<IdleConnectionRunnable> aIdleConnectionRunnable); | |||
1403 | ||||
1404 | PerformingIdleMaintenanceDatabaseInfo( | |||
1405 | const PerformingIdleMaintenanceDatabaseInfo& aOther) = delete; | |||
1406 | PerformingIdleMaintenanceDatabaseInfo( | |||
1407 | PerformingIdleMaintenanceDatabaseInfo&& aOther) noexcept | |||
1408 | : mDatabaseInfo{aOther.mDatabaseInfo}, | |||
1409 | mIdleConnectionRunnable{std::move(aOther.mIdleConnectionRunnable)} { | |||
1410 | MOZ_COUNT_CTOR(ConnectionPool::PerformingIdleMaintenanceDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::PerformingIdleMaintenanceDatabaseInfo >, "Token '" "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo" "' is not a class type."); static_assert(!std::is_base_of< nsISupports, ConnectionPool::PerformingIdleMaintenanceDatabaseInfo >::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo" , sizeof(*this)); } while (0); | |||
1411 | } | |||
1412 | PerformingIdleMaintenanceDatabaseInfo& operator=( | |||
1413 | const PerformingIdleMaintenanceDatabaseInfo& aOther) = delete; | |||
1414 | PerformingIdleMaintenanceDatabaseInfo& operator=( | |||
1415 | PerformingIdleMaintenanceDatabaseInfo&& aOther) = delete; | |||
1416 | ||||
1417 | ~PerformingIdleMaintenanceDatabaseInfo(); | |||
1418 | ||||
1419 | bool operator==(const DatabaseInfo* aDatabaseInfo) const { | |||
1420 | return mDatabaseInfo == aDatabaseInfo; | |||
1421 | } | |||
1422 | }; | |||
1423 | ||||
1424 | // This mutex guards mDatabases, see below. | |||
1425 | Mutex mDatabasesMutex MOZ_UNANNOTATED; | |||
1426 | ||||
1427 | nsCOMPtr<nsIThreadPool> mIOTarget; | |||
1428 | nsTArray<IdleDatabaseInfo> mIdleDatabases; | |||
1429 | nsTArray<PerformingIdleMaintenanceDatabaseInfo> | |||
1430 | mDatabasesPerformingIdleMaintenance; | |||
1431 | nsCOMPtr<nsITimer> mIdleTimer; | |||
1432 | TimeStamp mTargetIdleTime; | |||
1433 | ||||
1434 | // Only modifed on the owning thread, but read on multiple threads. Therefore | |||
1435 | // all modifications and all reads off the owning thread must be protected by | |||
1436 | // mDatabasesMutex. | |||
1437 | nsClassHashtable<nsCStringHashKey, DatabaseInfo> mDatabases; | |||
1438 | ||||
1439 | nsClassHashtable<nsUint64HashKey, TransactionInfo> mTransactions; | |||
1440 | nsTArray<NotNull<TransactionInfo*>> mQueuedTransactions; | |||
1441 | ||||
1442 | nsTArray<UniquePtr<DatabaseCompleteCallback>> mCompleteCallbacks; | |||
1443 | ||||
1444 | uint64_t mNextTransactionId; | |||
1445 | FlippedOnce<false> mShutdownRequested; | |||
1446 | FlippedOnce<false> mShutdownComplete; | |||
1447 | ||||
1448 | public: | |||
1449 | ConnectionPool(); | |||
1450 | ||||
1451 | void AssertIsOnOwningThread() const { | |||
1452 | NS_ASSERT_OWNINGTHREAD(ConnectionPool)_mOwningThread.AssertOwnership("ConnectionPool" " not thread-safe" ); | |||
1453 | } | |||
1454 | ||||
1455 | Result<RefPtr<DatabaseConnection>, nsresult> GetOrCreateConnection( | |||
1456 | const Database& aDatabase); | |||
1457 | ||||
1458 | uint64_t Start(const nsID& aBackgroundChildLoggingId, | |||
1459 | const nsACString& aDatabaseId, int64_t aLoggingSerialNumber, | |||
1460 | const nsTArray<nsString>& aObjectStoreNames, | |||
1461 | bool aIsWriteTransaction, | |||
1462 | TransactionDatabaseOperationBase* aTransactionOp); | |||
1463 | ||||
1464 | void Dispatch(uint64_t aTransactionId, nsIRunnable* aRunnable); | |||
1465 | ||||
1466 | void Finish(uint64_t aTransactionId, FinishCallback* aCallback); | |||
1467 | ||||
1468 | void CloseDatabaseWhenIdle(const nsACString& aDatabaseId) { | |||
1469 | Unused << CloseDatabaseWhenIdleInternal(aDatabaseId); | |||
1470 | } | |||
1471 | ||||
1472 | void WaitForDatabaseToComplete(const nsCString& aDatabaseId, | |||
1473 | nsIRunnable* aCallback); | |||
1474 | ||||
1475 | void Shutdown(); | |||
1476 | ||||
1477 | NS_INLINE_DECL_REFCOUNTING(ConnectionPool)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<ConnectionPool>, "Reference-counted class " "ConnectionPool" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1477); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 1477; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); _mOwningThread.AssertOwnership("ConnectionPool" " not thread-safe"); ++mRefCnt; NS_LogAddRef((this), (mRefCnt ), ("ConnectionPool"), (uint32_t)(sizeof(*this))); return mRefCnt ; } MozExternalRefCountType Release(void) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1477); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 1477 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); _mOwningThread.AssertOwnership("ConnectionPool" " not thread-safe" ); --mRefCnt; NS_LogRelease((this), (mRefCnt), ("ConnectionPool" )); if (mRefCnt == 0) { mRefCnt = 1; delete (this); return 0; } return mRefCnt; } using HasThreadSafeRefCnt = std::false_type ; protected: nsAutoRefCnt mRefCnt; nsAutoOwningThread _mOwningThread ; public: | |||
1478 | ||||
1479 | private: | |||
1480 | ~ConnectionPool(); | |||
1481 | ||||
1482 | static void IdleTimerCallback(nsITimer* aTimer, void* aClosure); | |||
1483 | ||||
1484 | static uint32_t SerialNumber() { return ++sSerialNumber; } | |||
1485 | ||||
1486 | static uint32_t sSerialNumber; | |||
1487 | ||||
1488 | void Cleanup(); | |||
1489 | ||||
1490 | void AdjustIdleTimer(); | |||
1491 | ||||
1492 | void CancelIdleTimer(); | |||
1493 | ||||
1494 | void CloseIdleDatabases(); | |||
1495 | ||||
1496 | bool ScheduleTransaction(TransactionInfo& aTransactionInfo, | |||
1497 | bool aFromQueuedTransactions); | |||
1498 | ||||
1499 | void NoteFinishedTransaction(uint64_t aTransactionId); | |||
1500 | ||||
1501 | void ScheduleQueuedTransactions(); | |||
1502 | ||||
1503 | void NoteIdleDatabase(DatabaseInfo& aDatabaseInfo); | |||
1504 | ||||
1505 | void NoteClosedDatabase(DatabaseInfo& aDatabaseInfo); | |||
1506 | ||||
1507 | bool MaybeFireCallback(DatabaseCompleteCallback* aCallback); | |||
1508 | ||||
1509 | void PerformIdleDatabaseMaintenance(DatabaseInfo& aDatabaseInfo); | |||
1510 | ||||
1511 | void CloseDatabase(DatabaseInfo& aDatabaseInfo) const; | |||
1512 | ||||
1513 | bool CloseDatabaseWhenIdleInternal(const nsACString& aDatabaseId); | |||
1514 | }; | |||
1515 | ||||
1516 | class ConnectionPool::ConnectionRunnable : public Runnable { | |||
1517 | protected: | |||
1518 | DatabaseInfo& mDatabaseInfo; | |||
1519 | nsCOMPtr<nsIEventTarget> mOwningEventTarget; | |||
1520 | ||||
1521 | explicit ConnectionRunnable(DatabaseInfo& aDatabaseInfo); | |||
1522 | ||||
1523 | ~ConnectionRunnable() override = default; | |||
1524 | }; | |||
1525 | ||||
1526 | class ConnectionPool::IdleConnectionRunnable final : public ConnectionRunnable { | |||
1527 | const bool mNeedsCheckpoint; | |||
1528 | Atomic<bool> mInterrupted; | |||
1529 | ||||
1530 | public: | |||
1531 | IdleConnectionRunnable(DatabaseInfo& aDatabaseInfo, bool aNeedsCheckpoint) | |||
1532 | : ConnectionRunnable(aDatabaseInfo), mNeedsCheckpoint(aNeedsCheckpoint) {} | |||
1533 | ||||
1534 | NS_INLINE_DECL_REFCOUNTING_INHERITED(IdleConnectionRunnable,virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<IdleConnectionRunnable>, "Reference-counted class " "IdleConnectionRunnable" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = ConnectionRunnable ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <IdleConnectionRunnable>) { NS_LogAddRef((this), (r), ( "IdleConnectionRunnable"), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = ConnectionRunnable::Release(); if constexpr (::mozilla:: detail::ShouldLogInheritedRefcnt<IdleConnectionRunnable> ) { NS_LogRelease((this), (r), ("IdleConnectionRunnable")); } return r; } | |||
1535 | ConnectionRunnable)virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<IdleConnectionRunnable>, "Reference-counted class " "IdleConnectionRunnable" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = ConnectionRunnable ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <IdleConnectionRunnable>) { NS_LogAddRef((this), (r), ( "IdleConnectionRunnable"), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = ConnectionRunnable::Release(); if constexpr (::mozilla:: detail::ShouldLogInheritedRefcnt<IdleConnectionRunnable> ) { NS_LogRelease((this), (r), ("IdleConnectionRunnable")); } return r; } | |||
1536 | ||||
1537 | void Interrupt() { mInterrupted = true; } | |||
1538 | ||||
1539 | private: | |||
1540 | ~IdleConnectionRunnable() override = default; | |||
1541 | ||||
1542 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | |||
1543 | }; | |||
1544 | ||||
1545 | class ConnectionPool::CloseConnectionRunnable final | |||
1546 | : public ConnectionRunnable { | |||
1547 | public: | |||
1548 | explicit CloseConnectionRunnable(DatabaseInfo& aDatabaseInfo) | |||
1549 | : ConnectionRunnable(aDatabaseInfo) {} | |||
1550 | ||||
1551 | NS_INLINE_DECL_REFCOUNTING_INHERITED(CloseConnectionRunnable,virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<CloseConnectionRunnable>, "Reference-counted class " "CloseConnectionRunnable" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = ConnectionRunnable ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <CloseConnectionRunnable>) { NS_LogAddRef((this), (r), ( "CloseConnectionRunnable"), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = ConnectionRunnable::Release(); if constexpr (::mozilla:: detail::ShouldLogInheritedRefcnt<CloseConnectionRunnable> ) { NS_LogRelease((this), (r), ("CloseConnectionRunnable")); } return r; } | |||
1552 | ConnectionRunnable)virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<CloseConnectionRunnable>, "Reference-counted class " "CloseConnectionRunnable" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = ConnectionRunnable ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <CloseConnectionRunnable>) { NS_LogAddRef((this), (r), ( "CloseConnectionRunnable"), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = ConnectionRunnable::Release(); if constexpr (::mozilla:: detail::ShouldLogInheritedRefcnt<CloseConnectionRunnable> ) { NS_LogRelease((this), (r), ("CloseConnectionRunnable")); } return r; } | |||
1553 | ||||
1554 | private: | |||
1555 | ~CloseConnectionRunnable() override = default; | |||
1556 | ||||
1557 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | |||
1558 | }; | |||
1559 | ||||
1560 | struct ConnectionPool::DatabaseInfo final { | |||
1561 | friend class mozilla::DefaultDelete<DatabaseInfo>; | |||
1562 | ||||
1563 | RefPtr<ConnectionPool> mConnectionPool; | |||
1564 | const nsCString mDatabaseId; | |||
1565 | RefPtr<DatabaseConnection> mConnection; | |||
1566 | nsClassHashtable<nsStringHashKey, TransactionInfoPair> mBlockingTransactions; | |||
1567 | nsTArray<NotNull<TransactionInfo*>> mTransactionsScheduledDuringClose; | |||
1568 | nsTArray<NotNull<TransactionInfo*>> mScheduledWriteTransactions; | |||
1569 | Maybe<TransactionInfo&> mRunningWriteTransaction; | |||
1570 | RefPtr<TaskQueue> mEventTarget; | |||
1571 | uint32_t mReadTransactionCount; | |||
1572 | uint32_t mWriteTransactionCount; | |||
1573 | bool mNeedsCheckpoint; | |||
1574 | bool mIdle; | |||
1575 | FlippedOnce<false> mCloseOnIdle; | |||
1576 | bool mClosing; | |||
1577 | ||||
1578 | #ifdef DEBUG1 | |||
1579 | nsISerialEventTarget* mDEBUGConnectionEventTarget; | |||
1580 | #endif | |||
1581 | ||||
1582 | DatabaseInfo(ConnectionPool* aConnectionPool, const nsACString& aDatabaseId); | |||
1583 | ||||
1584 | void AssertIsOnConnectionThread() const { | |||
1585 | MOZ_ASSERT(mDEBUGConnectionEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGConnectionEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGConnectionEventTarget) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGConnectionEventTarget" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1585); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGConnectionEventTarget" ")"); do { *((volatile int*)__null) = 1585; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1586 | MOZ_ASSERT(GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1586); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget" ")"); do { *((volatile int*)__null) = 1586; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1587 | } | |||
1588 | ||||
1589 | uint64_t TotalTransactionCount() const { | |||
1590 | return mReadTransactionCount + mWriteTransactionCount; | |||
1591 | } | |||
1592 | ||||
1593 | nsresult Dispatch(already_AddRefed<nsIRunnable> aRunnable); | |||
1594 | ||||
1595 | private: | |||
1596 | ~DatabaseInfo(); | |||
1597 | ||||
1598 | DatabaseInfo(const DatabaseInfo&) = delete; | |||
1599 | DatabaseInfo& operator=(const DatabaseInfo&) = delete; | |||
1600 | }; | |||
1601 | ||||
1602 | struct ConnectionPool::DatabaseCompleteCallback final { | |||
1603 | friend class DefaultDelete<DatabaseCompleteCallback>; | |||
1604 | ||||
1605 | nsCString mDatabaseId; | |||
1606 | nsCOMPtr<nsIRunnable> mCallback; | |||
1607 | ||||
1608 | DatabaseCompleteCallback(const nsCString& aDatabaseIds, | |||
1609 | nsIRunnable* aCallback); | |||
1610 | ||||
1611 | private: | |||
1612 | ~DatabaseCompleteCallback(); | |||
1613 | }; | |||
1614 | ||||
1615 | class NS_NO_VTABLE ConnectionPool::FinishCallback : public nsIRunnable { | |||
1616 | public: | |||
1617 | // Called on the owning thread before any additional transactions are | |||
1618 | // unblocked. | |||
1619 | virtual void TransactionFinishedBeforeUnblock() = 0; | |||
1620 | ||||
1621 | // Called on the owning thread after additional transactions may have been | |||
1622 | // unblocked. | |||
1623 | virtual void TransactionFinishedAfterUnblock() = 0; | |||
1624 | ||||
1625 | protected: | |||
1626 | FinishCallback() = default; | |||
1627 | ||||
1628 | virtual ~FinishCallback() = default; | |||
1629 | }; | |||
1630 | ||||
1631 | class ConnectionPool::FinishCallbackWrapper final : public Runnable { | |||
1632 | RefPtr<ConnectionPool> mConnectionPool; | |||
1633 | RefPtr<FinishCallback> mCallback; | |||
1634 | nsCOMPtr<nsIEventTarget> mOwningEventTarget; | |||
1635 | uint64_t mTransactionId; | |||
1636 | bool mHasRunOnce; | |||
1637 | ||||
1638 | public: | |||
1639 | FinishCallbackWrapper(ConnectionPool* aConnectionPool, | |||
1640 | uint64_t aTransactionId, FinishCallback* aCallback); | |||
1641 | ||||
1642 | NS_INLINE_DECL_REFCOUNTING_INHERITED(FinishCallbackWrapper, Runnable)virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<FinishCallbackWrapper>, "Reference-counted class " "FinishCallbackWrapper" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = Runnable ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <FinishCallbackWrapper>) { NS_LogAddRef((this), (r), ("FinishCallbackWrapper" ), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = Runnable::Release(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt<FinishCallbackWrapper >) { NS_LogRelease((this), (r), ("FinishCallbackWrapper")) ; } return r; } | |||
1643 | ||||
1644 | private: | |||
1645 | ~FinishCallbackWrapper() override; | |||
1646 | ||||
1647 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | |||
1648 | }; | |||
1649 | ||||
1650 | #ifdef DEBUG1 | |||
1651 | ||||
1652 | class ConnectionPool::TransactionRunnable final : public Runnable { | |||
1653 | public: | |||
1654 | explicit TransactionRunnable(nsCOMPtr<nsIRunnable> aRunnable); | |||
1655 | ||||
1656 | private: | |||
1657 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | |||
1658 | ||||
1659 | nsCOMPtr<nsIRunnable> mRunnable; | |||
1660 | }; | |||
1661 | ||||
1662 | #endif | |||
1663 | ||||
1664 | class ConnectionPool::TransactionInfo final { | |||
1665 | friend class mozilla::DefaultDelete<TransactionInfo>; | |||
1666 | ||||
1667 | nsTHashSet<TransactionInfo*> mBlocking; | |||
1668 | nsTArray<NotNull<TransactionInfo*>> mBlockingOrdered; | |||
1669 | ||||
1670 | public: | |||
1671 | DatabaseInfo& mDatabaseInfo; | |||
1672 | const nsID mBackgroundChildLoggingId; | |||
1673 | const nsCString mDatabaseId; | |||
1674 | const uint64_t mTransactionId; | |||
1675 | const int64_t mLoggingSerialNumber; | |||
1676 | const nsTArray<nsString> mObjectStoreNames; | |||
1677 | nsTHashSet<TransactionInfo*> mBlockedOn; | |||
1678 | nsTArray<nsCOMPtr<nsIRunnable>> mQueuedRunnables; | |||
1679 | const bool mIsWriteTransaction; | |||
1680 | bool mRunning; | |||
1681 | ||||
1682 | #ifdef DEBUG1 | |||
1683 | FlippedOnce<false> mFinished; | |||
1684 | #endif | |||
1685 | ||||
1686 | TransactionInfo(DatabaseInfo& aDatabaseInfo, | |||
1687 | const nsID& aBackgroundChildLoggingId, | |||
1688 | const nsACString& aDatabaseId, uint64_t aTransactionId, | |||
1689 | int64_t aLoggingSerialNumber, | |||
1690 | const nsTArray<nsString>& aObjectStoreNames, | |||
1691 | bool aIsWriteTransaction, | |||
1692 | TransactionDatabaseOperationBase* aTransactionOp); | |||
1693 | ||||
1694 | void AddBlockingTransaction(TransactionInfo& aTransactionInfo); | |||
1695 | ||||
1696 | void RemoveBlockingTransactions(); | |||
1697 | ||||
1698 | private: | |||
1699 | ~TransactionInfo(); | |||
1700 | ||||
1701 | void MaybeUnblock(TransactionInfo& aTransactionInfo); | |||
1702 | }; | |||
1703 | ||||
1704 | struct ConnectionPool::TransactionInfoPair final { | |||
1705 | // Multiple reading transactions can block future writes. | |||
1706 | nsTArray<NotNull<TransactionInfo*>> mLastBlockingWrites; | |||
1707 | // But only a single writing transaction can block future reads. | |||
1708 | Maybe<TransactionInfo&> mLastBlockingReads; | |||
1709 | ||||
1710 | #if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1) | |||
1711 | TransactionInfoPair(); | |||
1712 | ~TransactionInfoPair(); | |||
1713 | #endif | |||
1714 | }; | |||
1715 | ||||
1716 | /******************************************************************************* | |||
1717 | * Actor class declarations | |||
1718 | ******************************************************************************/ | |||
1719 | ||||
1720 | template <IDBCursorType CursorType> | |||
1721 | class CommonOpenOpHelper; | |||
1722 | template <IDBCursorType CursorType> | |||
1723 | class IndexOpenOpHelper; | |||
1724 | template <IDBCursorType CursorType> | |||
1725 | class ObjectStoreOpenOpHelper; | |||
1726 | template <IDBCursorType CursorType> | |||
1727 | class OpenOpHelper; | |||
1728 | ||||
1729 | class DatabaseOperationBase : public Runnable, | |||
1730 | public mozIStorageProgressHandler { | |||
1731 | template <IDBCursorType CursorType> | |||
1732 | friend class OpenOpHelper; | |||
1733 | ||||
1734 | protected: | |||
1735 | class AutoSetProgressHandler; | |||
1736 | ||||
1737 | using UniqueIndexTable = nsTHashMap<nsUint64HashKey, bool>; | |||
1738 | ||||
1739 | const nsCOMPtr<nsIEventTarget> mOwningEventTarget; | |||
1740 | const nsID mBackgroundChildLoggingId; | |||
1741 | const uint64_t mLoggingSerialNumber; | |||
1742 | ||||
1743 | private: | |||
1744 | nsresult mResultCode = NS_OK; | |||
1745 | Atomic<bool> mOperationMayProceed; | |||
1746 | FlippedOnce<false> mActorDestroyed; | |||
1747 | ||||
1748 | public: | |||
1749 | NS_DECL_ISUPPORTS_INHERITEDpublic: virtual nsresult QueryInterface(const nsIID& aIID , void** aInstancePtr) override; virtual MozExternalRefCountType AddRef(void) override; virtual MozExternalRefCountType Release (void) override; | |||
1750 | ||||
1751 | bool IsOnOwningThread() const { | |||
1752 | MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOwningEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1752); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget" ")"); do { *((volatile int*)__null) = 1752; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1753 | ||||
1754 | bool current; | |||
1755 | return NS_SUCCEEDED(mOwningEventTarget->IsOnCurrentThread(¤t))((bool)(__builtin_expect(!!(!NS_FAILED_impl(mOwningEventTarget ->IsOnCurrentThread(¤t))), 1))) && | |||
1756 | current; | |||
1757 | } | |||
1758 | ||||
1759 | void AssertIsOnOwningThread() const { | |||
1760 | MOZ_ASSERT(IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1760); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 1760; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1761 | MOZ_ASSERT(IsOnOwningThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(IsOnOwningThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(IsOnOwningThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("IsOnOwningThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1761); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnOwningThread()" ")"); do { *((volatile int*)__null) = 1761; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1762 | } | |||
1763 | ||||
1764 | void NoteActorDestroyed() { | |||
1765 | AssertIsOnOwningThread(); | |||
1766 | ||||
1767 | mActorDestroyed.EnsureFlipped(); | |||
1768 | mOperationMayProceed = false; | |||
1769 | } | |||
1770 | ||||
1771 | bool IsActorDestroyed() const { | |||
1772 | AssertIsOnOwningThread(); | |||
1773 | ||||
1774 | return mActorDestroyed; | |||
1775 | } | |||
1776 | ||||
1777 | // May be called on any thread, but you should call IsActorDestroyed() if | |||
1778 | // you know you're on the background thread because it is slightly faster. | |||
1779 | bool OperationMayProceed() const { return mOperationMayProceed; } | |||
1780 | ||||
1781 | const nsID& BackgroundChildLoggingId() const { | |||
1782 | return mBackgroundChildLoggingId; | |||
1783 | } | |||
1784 | ||||
1785 | uint64_t LoggingSerialNumber() const { return mLoggingSerialNumber; } | |||
1786 | ||||
1787 | nsresult ResultCode() const { return mResultCode; } | |||
1788 | ||||
1789 | void SetFailureCode(nsresult aFailureCode) { | |||
1790 | MOZ_ASSERT(NS_SUCCEEDED(mResultCode))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode )), 1))))>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mResultCode)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1790); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)))" ")"); do { *((volatile int*)__null) = 1790; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1791 | OverrideFailureCode(aFailureCode); | |||
1792 | } | |||
1793 | ||||
1794 | void SetFailureCodeIfUnset(nsresult aFailureCode) { | |||
1795 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | |||
1796 | OverrideFailureCode(aFailureCode); | |||
1797 | } | |||
1798 | } | |||
1799 | ||||
1800 | bool HasFailed() const { return NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)) ); } | |||
1801 | ||||
1802 | protected: | |||
1803 | DatabaseOperationBase(const nsID& aBackgroundChildLoggingId, | |||
1804 | uint64_t aLoggingSerialNumber) | |||
1805 | : Runnable("dom::indexedDB::DatabaseOperationBase"), | |||
1806 | mOwningEventTarget(GetCurrentSerialEventTarget()), | |||
1807 | mBackgroundChildLoggingId(aBackgroundChildLoggingId), | |||
1808 | mLoggingSerialNumber(aLoggingSerialNumber), | |||
1809 | mOperationMayProceed(true) { | |||
1810 | AssertIsOnOwningThread(); | |||
1811 | } | |||
1812 | ||||
1813 | ~DatabaseOperationBase() override { MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mActorDestroyed" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1813); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")"); do { *((volatile int*)__null) = 1813; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | |||
1814 | ||||
1815 | void OverrideFailureCode(nsresult aFailureCode) { | |||
1816 | MOZ_ASSERT(NS_FAILED(aFailureCode))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode )), 0))))>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl (aFailureCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode)), 0)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 1816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode)), 0)))" ")"); do { *((volatile int*)__null) = 1816; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
1817 | ||||
1818 | mResultCode = aFailureCode; | |||
1819 | } | |||
1820 | ||||
1821 | static nsAutoCString MaybeGetBindingClauseForKeyRange( | |||
1822 | const Maybe<SerializedKeyRange>& aOptionalKeyRange, | |||
1823 | const nsACString& aKeyColumnName); | |||
1824 | ||||
1825 | static nsAutoCString GetBindingClauseForKeyRange( | |||
1826 | const SerializedKeyRange& aKeyRange, const nsACString& aKeyColumnName); | |||
1827 | ||||
1828 | static uint64_t ReinterpretDoubleAsUInt64(double aDouble); | |||
1829 | ||||
1830 | static nsresult BindKeyRangeToStatement(const SerializedKeyRange& aKeyRange, | |||
1831 | mozIStorageStatement* aStatement); | |||
1832 | ||||
1833 | static nsresult BindKeyRangeToStatement(const SerializedKeyRange& aKeyRange, | |||
1834 | mozIStorageStatement* aStatement, | |||
1835 | const nsCString& aLocale); | |||
1836 | ||||
1837 | static Result<IndexDataValuesAutoArray, nsresult> | |||
1838 | IndexDataValuesFromUpdateInfos(const nsTArray<IndexUpdateInfo>& aUpdateInfos, | |||
1839 | const UniqueIndexTable& aUniqueIndexTable); | |||
1840 | ||||
1841 | static nsresult InsertIndexTableRows( | |||
1842 | DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId, | |||
1843 | const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues); | |||
1844 | ||||
1845 | static nsresult DeleteIndexDataTableRows( | |||
1846 | DatabaseConnection* aConnection, const Key& aObjectStoreKey, | |||
1847 | const nsTArray<IndexDataValue>& aIndexValues); | |||
1848 | ||||
1849 | static nsresult DeleteObjectStoreDataTableRowsWithIndexes( | |||
1850 | DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId, | |||
1851 | const Maybe<SerializedKeyRange>& aKeyRange); | |||
1852 | ||||
1853 | static nsresult UpdateIndexValues( | |||
1854 | DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId, | |||
1855 | const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues); | |||
1856 | ||||
1857 | static Result<bool, nsresult> ObjectStoreHasIndexes( | |||
1858 | DatabaseConnection& aConnection, IndexOrObjectStoreId aObjectStoreId); | |||
1859 | ||||
1860 | private: | |||
1861 | template <typename KeyTransformation> | |||
1862 | static nsresult MaybeBindKeyToStatement( | |||
1863 | const Key& aKey, mozIStorageStatement* aStatement, | |||
1864 | const nsACString& aParameterName, | |||
1865 | const KeyTransformation& aKeyTransformation); | |||
1866 | ||||
1867 | template <typename KeyTransformation> | |||
1868 | static nsresult BindTransformedKeyRangeToStatement( | |||
1869 | const SerializedKeyRange& aKeyRange, mozIStorageStatement* aStatement, | |||
1870 | const KeyTransformation& aKeyTransformation); | |||
1871 | ||||
1872 | // Not to be overridden by subclasses. | |||
1873 | NS_DECL_MOZISTORAGEPROGRESSHANDLERvirtual nsresult OnProgress(mozIStorageConnection *aConnection , bool *_retval) override; | |||
1874 | }; | |||
1875 | ||||
1876 | class MOZ_STACK_CLASS DatabaseOperationBase::AutoSetProgressHandler final { | |||
1877 | Maybe<mozIStorageConnection&> mConnection; | |||
1878 | #ifdef DEBUG1 | |||
1879 | DatabaseOperationBase* mDEBUGDatabaseOp; | |||
1880 | #endif | |||
1881 | ||||
1882 | public: | |||
1883 | AutoSetProgressHandler(); | |||
1884 | ||||
1885 | ~AutoSetProgressHandler(); | |||
1886 | ||||
1887 | nsresult Register(mozIStorageConnection& aConnection, | |||
1888 | DatabaseOperationBase* aDatabaseOp); | |||
1889 | ||||
1890 | void Unregister(); | |||
1891 | }; | |||
1892 | ||||
1893 | class TransactionDatabaseOperationBase : public DatabaseOperationBase { | |||
1894 | enum class InternalState { | |||
1895 | Initial, | |||
1896 | DatabaseWork, | |||
1897 | SendingPreprocess, | |||
1898 | WaitingForContinue, | |||
1899 | SendingResults, | |||
1900 | Completed | |||
1901 | }; | |||
1902 | ||||
1903 | InitializedOnce<const NotNull<SafeRefPtr<TransactionBase>>> mTransaction; | |||
1904 | // Unique request id within the context of the transaction, allocated by the | |||
1905 | // transaction in the content process starting from 0. Values less than 0 are | |||
1906 | // impossible and forbidden. Used to support the explicit commit() request. | |||
1907 | const int64_t mRequestId; | |||
1908 | InternalState mInternalState = InternalState::Initial; | |||
1909 | bool mWaitingForContinue = false; | |||
1910 | const bool mTransactionIsAborted; | |||
1911 | ||||
1912 | protected: | |||
1913 | const int64_t mTransactionLoggingSerialNumber; | |||
1914 | ||||
1915 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED1 | |||
1916 | protected: | |||
1917 | // A check only enables when the diagnostic assert turns on. It assumes the | |||
1918 | // mUpdateRefcountFunction is a nullptr because the previous | |||
1919 | // StartTransactionOp failed on the connection thread and the next write | |||
1920 | // operation (e.g. ObjectstoreAddOrPutRequestOp) doesn't have enough time to | |||
1921 | // catch up the failure information. | |||
1922 | bool mAssumingPreviousOperationFail = false; | |||
1923 | #endif | |||
1924 | ||||
1925 | public: | |||
1926 | void AssertIsOnConnectionThread() const | |||
1927 | #ifdef DEBUG1 | |||
1928 | ; | |||
1929 | #else | |||
1930 | { | |||
1931 | } | |||
1932 | #endif | |||
1933 | ||||
1934 | uint64_t StartOnConnectionPool(const nsID& aBackgroundChildLoggingId, | |||
1935 | const nsACString& aDatabaseId, | |||
1936 | int64_t aLoggingSerialNumber, | |||
1937 | const nsTArray<nsString>& aObjectStoreNames, | |||
1938 | bool aIsWriteTransaction); | |||
1939 | ||||
1940 | void DispatchToConnectionPool(); | |||
1941 | ||||
1942 | TransactionBase& Transaction() { return **mTransaction; } | |||
1943 | ||||
1944 | const TransactionBase& Transaction() const { return **mTransaction; } | |||
1945 | ||||
1946 | bool IsWaitingForContinue() const { | |||
1947 | AssertIsOnOwningThread(); | |||
1948 | ||||
1949 | return mWaitingForContinue; | |||
1950 | } | |||
1951 | ||||
1952 | void NoteContinueReceived(); | |||
1953 | ||||
1954 | int64_t TransactionLoggingSerialNumber() const { | |||
1955 | return mTransactionLoggingSerialNumber; | |||
1956 | } | |||
1957 | ||||
1958 | // May be overridden by subclasses if they need to perform work on the | |||
1959 | // background thread before being dispatched. Returning false will kill the | |||
1960 | // child actors and prevent dispatch. | |||
1961 | virtual bool Init(TransactionBase& aTransaction); | |||
1962 | ||||
1963 | // This callback will be called on the background thread before releasing the | |||
1964 | // final reference to this request object. Subclasses may perform any | |||
1965 | // additional cleanup here but must always call the base class implementation. | |||
1966 | virtual void Cleanup(); | |||
1967 | ||||
1968 | protected: | |||
1969 | TransactionDatabaseOperationBase(SafeRefPtr<TransactionBase> aTransaction, | |||
1970 | int64_t aRequestId); | |||
1971 | ||||
1972 | TransactionDatabaseOperationBase(SafeRefPtr<TransactionBase> aTransaction, | |||
1973 | const int64_t aRequestId, | |||
1974 | uint64_t aLoggingSerialNumber); | |||
1975 | ||||
1976 | ~TransactionDatabaseOperationBase() override; | |||
1977 | ||||
1978 | virtual void RunOnConnectionThread(); | |||
1979 | ||||
1980 | // Must be overridden in subclasses. Called on the target thread to allow the | |||
1981 | // subclass to perform necessary database or file operations. A successful | |||
1982 | // return value will trigger a SendSuccessResult callback on the background | |||
1983 | // thread while a failure value will trigger a SendFailureResult callback. | |||
1984 | virtual nsresult DoDatabaseWork(DatabaseConnection* aConnection) = 0; | |||
1985 | ||||
1986 | // May be overriden in subclasses. Called on the background thread to decide | |||
1987 | // if the subclass needs to send any preprocess info to the child actor. | |||
1988 | virtual bool HasPreprocessInfo(); | |||
1989 | ||||
1990 | // May be overriden in subclasses. Called on the background thread to allow | |||
1991 | // the subclass to serialize its preprocess info and send it to the child | |||
1992 | // actor. A successful return value will trigger a wait for a | |||
1993 | // NoteContinueReceived callback on the background thread while a failure | |||
1994 | // value will trigger a SendFailureResult callback. | |||
1995 | virtual nsresult SendPreprocessInfo(); | |||
1996 | ||||
1997 | // Must be overridden in subclasses. Called on the background thread to allow | |||
1998 | // the subclass to serialize its results and send them to the child actor. A | |||
1999 | // failed return value will trigger a SendFailureResult callback. | |||
2000 | virtual nsresult SendSuccessResult() = 0; | |||
2001 | ||||
2002 | // Must be overridden in subclasses. Called on the background thread to allow | |||
2003 | // the subclass to send its failure code. Returning false will cause the | |||
2004 | // transaction to be aborted with aResultCode. Returning true will not cause | |||
2005 | // the transaction to be aborted. | |||
2006 | virtual bool SendFailureResult(nsresult aResultCode) = 0; | |||
2007 | ||||
2008 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED1 | |||
2009 | auto MakeAutoSavepointCleanupHandler(DatabaseConnection& aConnection) { | |||
2010 | return [this, &aConnection](const auto) { | |||
2011 | if (!aConnection.GetUpdateRefcountFunction()) { | |||
2012 | mAssumingPreviousOperationFail = true; | |||
2013 | } | |||
2014 | }; | |||
2015 | } | |||
2016 | #endif | |||
2017 | ||||
2018 | private: | |||
2019 | void SendToConnectionPool(); | |||
2020 | ||||
2021 | void SendPreprocess(); | |||
2022 | ||||
2023 | void SendResults(); | |||
2024 | ||||
2025 | void SendPreprocessInfoOrResults(bool aSendPreprocessInfo); | |||
2026 | ||||
2027 | // Not to be overridden by subclasses. | |||
2028 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | |||
2029 | }; | |||
2030 | ||||
2031 | class Factory final : public PBackgroundIDBFactoryParent, | |||
2032 | public AtomicSafeRefCounted<Factory> { | |||
2033 | nsCString mSystemLocale; | |||
2034 | RefPtr<DatabaseLoggingInfo> mLoggingInfo; | |||
2035 | ||||
2036 | #ifdef DEBUG1 | |||
2037 | bool mActorDestroyed; | |||
2038 | #endif | |||
2039 | ||||
2040 | // Reference counted. | |||
2041 | ~Factory() override; | |||
2042 | ||||
2043 | public: | |||
2044 | [[nodiscard]] static SafeRefPtr<Factory> Create( | |||
2045 | const LoggingInfo& aLoggingInfo, const nsACString& aSystemLocale); | |||
2046 | ||||
2047 | DatabaseLoggingInfo* GetLoggingInfo() const { | |||
2048 | AssertIsOnBackgroundThread(); | |||
2049 | MOZ_ASSERT(mLoggingInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLoggingInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLoggingInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mLoggingInfo", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2049); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo" ")"); do { *((volatile int*)__null) = 2049; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2050 | ||||
2051 | return mLoggingInfo; | |||
2052 | } | |||
2053 | ||||
2054 | const nsCString& GetSystemLocale() const { return mSystemLocale; } | |||
2055 | ||||
2056 | MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::Factory)const char* typeName() const { return "mozilla::dom::indexedDB::Factory" ; } size_t typeSize() const { return sizeof(*this); } | |||
2057 | MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED(Factory, AtomicSafeRefCounted)template <typename T, ::mozilla::detail::RefCountAtomicity Atomicity> friend class ::mozilla::detail::SafeRefCounted ; virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<Factory>, "Reference-counted class " "Factory" " should not have a public destructor. " "Make this class's destructor non-public" ); nsrefcnt r = AtomicSafeRefCounted::AddRef(); if constexpr ( ::mozilla::detail::ShouldLogInheritedRefcnt<Factory>) { NS_LogAddRef((this), (r), ("Factory"), (uint32_t)(sizeof(*this ))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = AtomicSafeRefCounted::Release(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt<Factory>) { NS_LogRelease((this), (r), ("Factory")); } return r; } | |||
| ||||
2058 | ||||
2059 | // Only constructed in Create(). | |||
2060 | Factory(RefPtr<DatabaseLoggingInfo> aLoggingInfo, | |||
2061 | const nsACString& aSystemLocale); | |||
2062 | ||||
2063 | // IPDL methods are only called by IPDL. | |||
2064 | void ActorDestroy(ActorDestroyReason aWhy) override; | |||
2065 | ||||
2066 | mozilla::ipc::IPCResult RecvDeleteMe() override; | |||
2067 | ||||
2068 | PBackgroundIDBFactoryRequestParent* AllocPBackgroundIDBFactoryRequestParent( | |||
2069 | const FactoryRequestParams& aParams) override; | |||
2070 | ||||
2071 | mozilla::ipc::IPCResult RecvPBackgroundIDBFactoryRequestConstructor( | |||
2072 | PBackgroundIDBFactoryRequestParent* aActor, | |||
2073 | const FactoryRequestParams& aParams) override; | |||
2074 | ||||
2075 | bool DeallocPBackgroundIDBFactoryRequestParent( | |||
2076 | PBackgroundIDBFactoryRequestParent* aActor) override; | |||
2077 | ||||
2078 | mozilla::ipc::IPCResult RecvGetDatabases( | |||
2079 | const PersistenceType& aPersistenceType, | |||
2080 | const PrincipalInfo& aPrincipalInfo, | |||
2081 | GetDatabasesResolver&& aResolve) override; | |||
2082 | ||||
2083 | private: | |||
2084 | Maybe<ContentParentId> GetContentParentId() const; | |||
2085 | }; | |||
2086 | ||||
2087 | class WaitForTransactionsHelper final : public Runnable { | |||
2088 | const nsCString mDatabaseId; | |||
2089 | nsCOMPtr<nsIRunnable> mCallback; | |||
2090 | ||||
2091 | enum class State { Initial = 0, WaitingForTransactions, Complete } mState; | |||
2092 | ||||
2093 | public: | |||
2094 | WaitForTransactionsHelper(const nsACString& aDatabaseId, | |||
2095 | nsIRunnable* aCallback) | |||
2096 | : Runnable("dom::indexedDB::WaitForTransactionsHelper"), | |||
2097 | mDatabaseId(aDatabaseId), | |||
2098 | mCallback(aCallback), | |||
2099 | mState(State::Initial) { | |||
2100 | AssertIsOnBackgroundThread(); | |||
2101 | MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2101); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()" ")"); do { *((volatile int*)__null) = 2101; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2102 | MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aCallback", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2102); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")" ); do { *((volatile int*)__null) = 2102; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2103 | } | |||
2104 | ||||
2105 | void WaitForTransactions(); | |||
2106 | ||||
2107 | NS_INLINE_DECL_REFCOUNTING_INHERITED(WaitForTransactionsHelper, Runnable)virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<WaitForTransactionsHelper>, "Reference-counted class " "WaitForTransactionsHelper" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = Runnable ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <WaitForTransactionsHelper>) { NS_LogAddRef((this), (r) , ("WaitForTransactionsHelper"), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = Runnable::Release(); if constexpr (::mozilla:: detail::ShouldLogInheritedRefcnt<WaitForTransactionsHelper >) { NS_LogRelease((this), (r), ("WaitForTransactionsHelper" )); } return r; } | |||
2108 | ||||
2109 | private: | |||
2110 | ~WaitForTransactionsHelper() override { | |||
2111 | MOZ_ASSERT(!mCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mCallback", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2111); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCallback" ")"); do { *((volatile int*)__null) = 2111; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2112 | MOZ_ASSERT(mState == State::Complete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Complete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Complete))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Complete" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2112); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Complete" ")"); do { *((volatile int*)__null) = 2112; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2113 | } | |||
2114 | ||||
2115 | void MaybeWaitForTransactions(); | |||
2116 | ||||
2117 | void CallCallback(); | |||
2118 | ||||
2119 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | |||
2120 | }; | |||
2121 | ||||
2122 | class Database final | |||
2123 | : public PBackgroundIDBDatabaseParent, | |||
2124 | public SupportsCheckedUnsafePtr<CheckIf<DiagnosticAssertEnabled>>, | |||
2125 | public AtomicSafeRefCounted<Database> { | |||
2126 | friend class VersionChangeTransaction; | |||
2127 | ||||
2128 | class StartTransactionOp; | |||
2129 | class UnmapBlobCallback; | |||
2130 | ||||
2131 | private: | |||
2132 | SafeRefPtr<Factory> mFactory; | |||
2133 | SafeRefPtr<FullDatabaseMetadata> mMetadata; | |||
2134 | SafeRefPtr<DatabaseFileManager> mFileManager; | |||
2135 | RefPtr<DirectoryLock> mDirectoryLock; | |||
2136 | nsTHashSet<TransactionBase*> mTransactions; | |||
2137 | nsTHashMap<nsIDHashKey, SafeRefPtr<DatabaseFileInfo>> mMappedBlobs; | |||
2138 | RefPtr<DatabaseConnection> mConnection; | |||
2139 | const PrincipalInfo mPrincipalInfo; | |||
2140 | const Maybe<ContentParentId> mOptionalContentParentId; | |||
2141 | // XXX Consider changing this to ClientMetadata. | |||
2142 | const quota::OriginMetadata mOriginMetadata; | |||
2143 | const nsCString mId; | |||
2144 | const nsString mFilePath; | |||
2145 | const Maybe<const CipherKey> mKey; | |||
2146 | int64_t mDirectoryLockId; | |||
2147 | const uint32_t mTelemetryId; | |||
2148 | const PersistenceType mPersistenceType; | |||
2149 | const bool mInPrivateBrowsing; | |||
2150 | FlippedOnce<false> mClosed; | |||
2151 | FlippedOnce<false> mInvalidated; | |||
2152 | FlippedOnce<false> mActorWasAlive; | |||
2153 | FlippedOnce<false> mActorDestroyed; | |||
2154 | nsCOMPtr<nsIEventTarget> mBackgroundThread; | |||
2155 | #ifdef DEBUG1 | |||
2156 | bool mAllBlobsUnmapped; | |||
2157 | #endif | |||
2158 | ||||
2159 | public: | |||
2160 | // Created by OpenDatabaseOp. | |||
2161 | Database(SafeRefPtr<Factory> aFactory, const PrincipalInfo& aPrincipalInfo, | |||
2162 | const Maybe<ContentParentId>& aOptionalContentParentId, | |||
2163 | const quota::OriginMetadata& aOriginMetadata, uint32_t aTelemetryId, | |||
2164 | SafeRefPtr<FullDatabaseMetadata> aMetadata, | |||
2165 | SafeRefPtr<DatabaseFileManager> aFileManager, | |||
2166 | RefPtr<DirectoryLock> aDirectoryLock, bool aInPrivateBrowsing, | |||
2167 | const Maybe<const CipherKey>& aMaybeKey); | |||
2168 | ||||
2169 | void AssertIsOnConnectionThread() const { | |||
2170 | #ifdef DEBUG1 | |||
2171 | if (mConnection) { | |||
2172 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2172); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { *((volatile int*)__null) = 2172; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2173 | mConnection->AssertIsOnConnectionThread(); | |||
2174 | } else { | |||
2175 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 2175; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2176 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2176); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 2176; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2177 | MOZ_ASSERT(mInvalidated)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInvalidated)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInvalidated))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInvalidated", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2177); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated" ")"); do { *((volatile int*)__null) = 2177; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2178 | } | |||
2179 | #endif | |||
2180 | } | |||
2181 | ||||
2182 | NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType AddRef() override { | |||
2183 | return AtomicSafeRefCounted<Database>::AddRef(); | |||
2184 | } | |||
2185 | NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType Release() override { | |||
2186 | return AtomicSafeRefCounted<Database>::Release(); | |||
2187 | } | |||
2188 | ||||
2189 | MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::Database)const char* typeName() const { return "mozilla::dom::indexedDB::Database" ; } size_t typeSize() const { return sizeof(*this); } | |||
2190 | ||||
2191 | void Invalidate(); | |||
2192 | ||||
2193 | bool IsOwnedByProcess(ContentParentId aContentParentId) const { | |||
2194 | return mOptionalContentParentId && | |||
2195 | mOptionalContentParentId.value() == aContentParentId; | |||
2196 | } | |||
2197 | ||||
2198 | const quota::OriginMetadata& OriginMetadata() const { | |||
2199 | return mOriginMetadata; | |||
2200 | } | |||
2201 | ||||
2202 | const nsCString& Id() const { return mId; } | |||
2203 | ||||
2204 | Maybe<DirectoryLock&> MaybeDirectoryLockRef() const { | |||
2205 | AssertIsOnBackgroundThread(); | |||
2206 | ||||
2207 | return ToMaybeRef(mDirectoryLock.get()); | |||
2208 | } | |||
2209 | ||||
2210 | int64_t DirectoryLockId() const { return mDirectoryLockId; } | |||
2211 | ||||
2212 | uint32_t TelemetryId() const { return mTelemetryId; } | |||
2213 | ||||
2214 | PersistenceType Type() const { return mPersistenceType; } | |||
2215 | ||||
2216 | const nsString& FilePath() const { return mFilePath; } | |||
2217 | ||||
2218 | DatabaseFileManager& GetFileManager() const { return *mFileManager; } | |||
2219 | ||||
2220 | MovingNotNull<SafeRefPtr<DatabaseFileManager>> GetFileManagerPtr() const { | |||
2221 | return WrapMovingNotNull(mFileManager.clonePtr()); | |||
2222 | } | |||
2223 | ||||
2224 | const FullDatabaseMetadata& Metadata() const { | |||
2225 | MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2225); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")" ); do { *((volatile int*)__null) = 2225; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2226 | return *mMetadata; | |||
2227 | } | |||
2228 | ||||
2229 | SafeRefPtr<FullDatabaseMetadata> MetadataPtr() const { | |||
2230 | MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")" ); do { *((volatile int*)__null) = 2230; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2231 | return mMetadata.clonePtr(); | |||
2232 | } | |||
2233 | ||||
2234 | PBackgroundParent* GetBackgroundParent() const { | |||
2235 | AssertIsOnBackgroundThread(); | |||
2236 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2236); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { *((volatile int*)__null) = 2236; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2237 | ||||
2238 | return Manager()->Manager(); | |||
2239 | } | |||
2240 | ||||
2241 | DatabaseLoggingInfo* GetLoggingInfo() const { | |||
2242 | AssertIsOnBackgroundThread(); | |||
2243 | MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFactory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFactory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2243); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")" ); do { *((volatile int*)__null) = 2243; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2244 | ||||
2245 | return mFactory->GetLoggingInfo(); | |||
2246 | } | |||
2247 | ||||
2248 | bool RegisterTransaction(TransactionBase& aTransaction); | |||
2249 | ||||
2250 | void UnregisterTransaction(TransactionBase& aTransaction); | |||
2251 | ||||
2252 | void SetActorAlive(); | |||
2253 | ||||
2254 | void MapBlob(const IPCBlob& aIPCBlob, SafeRefPtr<DatabaseFileInfo> aFileInfo); | |||
2255 | ||||
2256 | bool IsActorAlive() const { | |||
2257 | AssertIsOnBackgroundThread(); | |||
2258 | ||||
2259 | return mActorWasAlive && !mActorDestroyed; | |||
2260 | } | |||
2261 | ||||
2262 | bool IsActorDestroyed() const { | |||
2263 | AssertIsOnBackgroundThread(); | |||
2264 | ||||
2265 | return mActorWasAlive && mActorDestroyed; | |||
2266 | } | |||
2267 | ||||
2268 | bool IsClosed() const { | |||
2269 | AssertIsOnBackgroundThread(); | |||
2270 | ||||
2271 | return mClosed; | |||
2272 | } | |||
2273 | ||||
2274 | bool IsInvalidated() const { | |||
2275 | AssertIsOnBackgroundThread(); | |||
2276 | ||||
2277 | return mInvalidated; | |||
2278 | } | |||
2279 | ||||
2280 | nsresult EnsureConnection(); | |||
2281 | ||||
2282 | DatabaseConnection* GetConnection() const { | |||
2283 | #ifdef DEBUG1 | |||
2284 | if (mConnection) { | |||
2285 | mConnection->AssertIsOnConnectionThread(); | |||
2286 | } | |||
2287 | #endif | |||
2288 | ||||
2289 | return mConnection; | |||
2290 | } | |||
2291 | ||||
2292 | void Stringify(nsACString& aResult) const; | |||
2293 | ||||
2294 | bool IsInPrivateBrowsing() const { | |||
2295 | AssertIsOnBackgroundThread(); | |||
2296 | return mInPrivateBrowsing; | |||
2297 | } | |||
2298 | ||||
2299 | const Maybe<const CipherKey>& MaybeKeyRef() const { | |||
2300 | // This can be called on any thread, as it is const. | |||
2301 | MOZ_ASSERT(mKey.isSome() == mInPrivateBrowsing)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mKey.isSome() == mInPrivateBrowsing)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mKey.isSome() == mInPrivateBrowsing ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mKey.isSome() == mInPrivateBrowsing", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKey.isSome() == mInPrivateBrowsing" ")"); do { *((volatile int*)__null) = 2301; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2302 | return mKey; | |||
2303 | } | |||
2304 | ||||
2305 | ~Database() override { | |||
2306 | MOZ_ASSERT(mClosed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mClosed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mClosed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mClosed", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2306); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mClosed" ")" ); do { *((volatile int*)__null) = 2306; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2307 | MOZ_ASSERT_IF(mActorWasAlive, mActorDestroyed)do { if (mActorWasAlive) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(mActorDestroyed)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mActorDestroyed", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2307); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")"); do { *((volatile int*)__null) = 2307; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
2308 | ||||
2309 | NS_ProxyRelease("ReleaseIDBFactory", mBackgroundThread.get(), | |||
2310 | mFactory.forget()); | |||
2311 | } | |||
2312 | ||||
2313 | private: | |||
2314 | [[nodiscard]] SafeRefPtr<DatabaseFileInfo> GetBlob(const IPCBlob& aIPCBlob); | |||
2315 | ||||
2316 | void UnmapBlob(const nsID& aID); | |||
2317 | ||||
2318 | void UnmapAllBlobs(); | |||
2319 | ||||
2320 | bool CloseInternal(); | |||
2321 | ||||
2322 | void MaybeCloseConnection(); | |||
2323 | ||||
2324 | void ConnectionClosedCallback(); | |||
2325 | ||||
2326 | void CleanupMetadata(); | |||
2327 | ||||
2328 | // IPDL methods are only called by IPDL. | |||
2329 | void ActorDestroy(ActorDestroyReason aWhy) override; | |||
2330 | ||||
2331 | PBackgroundIDBDatabaseFileParent* AllocPBackgroundIDBDatabaseFileParent( | |||
2332 | const IPCBlob& aIPCBlob) override; | |||
2333 | ||||
2334 | bool DeallocPBackgroundIDBDatabaseFileParent( | |||
2335 | PBackgroundIDBDatabaseFileParent* aActor) override; | |||
2336 | ||||
2337 | already_AddRefed<PBackgroundIDBTransactionParent> | |||
2338 | AllocPBackgroundIDBTransactionParent( | |||
2339 | const nsTArray<nsString>& aObjectStoreNames, const Mode& aMode, | |||
2340 | const Durability& aDurability) override; | |||
2341 | ||||
2342 | mozilla::ipc::IPCResult RecvPBackgroundIDBTransactionConstructor( | |||
2343 | PBackgroundIDBTransactionParent* aActor, | |||
2344 | nsTArray<nsString>&& aObjectStoreNames, const Mode& aMode, | |||
2345 | const Durability& aDurability) override; | |||
2346 | ||||
2347 | mozilla::ipc::IPCResult RecvDeleteMe() override; | |||
2348 | ||||
2349 | mozilla::ipc::IPCResult RecvBlocked() override; | |||
2350 | ||||
2351 | mozilla::ipc::IPCResult RecvClose() override; | |||
2352 | ||||
2353 | template <typename T> | |||
2354 | static bool InvalidateAll(const nsTBaseHashSet<nsPtrHashKey<T>>& aTable); | |||
2355 | }; | |||
2356 | ||||
2357 | class Database::StartTransactionOp final | |||
2358 | : public TransactionDatabaseOperationBase { | |||
2359 | friend class Database; | |||
2360 | ||||
2361 | private: | |||
2362 | explicit StartTransactionOp(SafeRefPtr<TransactionBase> aTransaction) | |||
2363 | : TransactionDatabaseOperationBase(std::move(aTransaction), | |||
2364 | /* aRequestId */ 0, | |||
2365 | /* aLoggingSerialNumber */ 0) {} | |||
2366 | ||||
2367 | ~StartTransactionOp() override = default; | |||
2368 | ||||
2369 | void RunOnConnectionThread() override; | |||
2370 | ||||
2371 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
2372 | ||||
2373 | nsresult SendSuccessResult() override; | |||
2374 | ||||
2375 | bool SendFailureResult(nsresult aResultCode) override; | |||
2376 | ||||
2377 | void Cleanup() override; | |||
2378 | }; | |||
2379 | ||||
2380 | class Database::UnmapBlobCallback final | |||
2381 | : public RemoteLazyInputStreamParentCallback { | |||
2382 | SafeRefPtr<Database> mDatabase; | |||
2383 | nsCOMPtr<nsISerialEventTarget> mBackgroundThread; | |||
2384 | ||||
2385 | public: | |||
2386 | explicit UnmapBlobCallback(SafeRefPtr<Database> aDatabase) | |||
2387 | : mDatabase(std::move(aDatabase)), | |||
2388 | mBackgroundThread(GetCurrentSerialEventTarget()) { | |||
2389 | AssertIsOnBackgroundThread(); | |||
2390 | } | |||
2391 | ||||
2392 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(Database::UnmapBlobCallback, override)public: MozExternalRefCountType AddRef(void) override { static_assert (!std::is_destructible_v<Database::UnmapBlobCallback>, "Reference-counted class " "Database::UnmapBlobCallback" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2392); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 2392; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this ), (count), ("Database::UnmapBlobCallback"), (uint32_t)(sizeof (*this))); return (nsrefcnt)count; } MozExternalRefCountType Release (void) override { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2392); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 2392 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("Database::UnmapBlobCallback")); if (count == 0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt = std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; public: | |||
2393 | ||||
2394 | void ActorDestroyed(const nsID& aID) override { | |||
2395 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2395); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { *((volatile int*)__null) = 2395; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2396 | mBackgroundThread->Dispatch(NS_NewRunnableFunction( | |||
2397 | "UnmapBlobCallback", [aID, database = std::move(mDatabase)] { | |||
2398 | AssertIsOnBackgroundThread(); | |||
2399 | database->UnmapBlob(aID); | |||
2400 | })); | |||
2401 | } | |||
2402 | ||||
2403 | private: | |||
2404 | ~UnmapBlobCallback() = default; | |||
2405 | }; | |||
2406 | ||||
2407 | /** | |||
2408 | * In coordination with IDBDatabase's mFileActors weak-map on the child side, a | |||
2409 | * long-lived mapping from a child process's live Blobs to their corresponding | |||
2410 | * DatabaseFileInfo in our owning database. Assists in avoiding redundant IPC | |||
2411 | * traffic and disk storage. This includes both: | |||
2412 | * - Blobs retrieved from this database and sent to the child that do not need | |||
2413 | * to be written to disk because they already exist on disk in this database's | |||
2414 | * files directory. | |||
2415 | * - Blobs retrieved from other databases or from anywhere else that will need | |||
2416 | * to be written to this database's files directory. In this case we will | |||
2417 | * hold a reference to its BlobImpl in mBlobImpl until we have successfully | |||
2418 | * written the Blob to disk. | |||
2419 | * | |||
2420 | * Relevant Blob context: Blobs sent from the parent process to child processes | |||
2421 | * are automatically linked back to their source BlobImpl when the child process | |||
2422 | * references the Blob via IPC. This is done using the internal IPCBlob | |||
2423 | * inputStream actor ID to DatabaseFileInfo mapping. However, when getting an | |||
2424 | * actor in the child process for sending an in-child-created Blob to the | |||
2425 | * parent process, there is (currently) no Blob machinery to automatically | |||
2426 | * establish and reuse a long-lived Actor. As a result, without IDB's weak-map | |||
2427 | * cleverness, a memory-backed Blob repeatedly sent from the child to the parent | |||
2428 | * would appear as a different Blob each time, requiring the Blob data to be | |||
2429 | * sent over IPC each time as well as potentially needing to be written to disk | |||
2430 | * each time. | |||
2431 | * | |||
2432 | * This object remains alive as long as there is an active child actor or an | |||
2433 | * ObjectStoreAddOrPutRequestOp::StoredFileInfo for a queued or active add/put | |||
2434 | * op is holding a reference to us. | |||
2435 | */ | |||
2436 | class DatabaseFile final : public PBackgroundIDBDatabaseFileParent { | |||
2437 | // mBlobImpl's ownership lifecycle: | |||
2438 | // - Initialized on the background thread at creation time. Then | |||
2439 | // responsibility is handed off to the connection thread. | |||
2440 | // - Checked and used by the connection thread to generate a stream to write | |||
2441 | // the blob to disk by an add/put operation. | |||
2442 | // - Cleared on the connection thread once the file has successfully been | |||
2443 | // written to disk. | |||
2444 | InitializedOnce<const RefPtr<BlobImpl>> mBlobImpl; | |||
2445 | const SafeRefPtr<DatabaseFileInfo> mFileInfo; | |||
2446 | ||||
2447 | public: | |||
2448 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::DatabaseFile)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<mozilla::dom::indexedDB::DatabaseFile >, "Reference-counted class " "mozilla::dom::indexedDB::DatabaseFile" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2448); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 2448; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this ), (count), ("mozilla::dom::indexedDB::DatabaseFile"), (uint32_t )(sizeof(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release(void) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2448); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 2448 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("mozilla::dom::indexedDB::DatabaseFile")); if (count == 0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt = std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; public:; | |||
2449 | ||||
2450 | const DatabaseFileInfo& GetFileInfo() const { | |||
2451 | AssertIsOnBackgroundThread(); | |||
2452 | ||||
2453 | return *mFileInfo; | |||
2454 | } | |||
2455 | ||||
2456 | SafeRefPtr<DatabaseFileInfo> GetFileInfoPtr() const { | |||
2457 | AssertIsOnBackgroundThread(); | |||
2458 | ||||
2459 | return mFileInfo.clonePtr(); | |||
2460 | } | |||
2461 | ||||
2462 | /** | |||
2463 | * If mBlobImpl is non-null (implying the contents of this file have not yet | |||
2464 | * been written to disk), then return an input stream. Otherwise, if mBlobImpl | |||
2465 | * is null (because the contents have been written to disk), returns null. | |||
2466 | */ | |||
2467 | [[nodiscard]] nsCOMPtr<nsIInputStream> GetInputStream(ErrorResult& rv) const; | |||
2468 | ||||
2469 | /** | |||
2470 | * To be called upon successful copying of the stream GetInputStream() | |||
2471 | * returned so that we won't try and redundantly write the file to disk in the | |||
2472 | * future. This is a separate step from GetInputStream() because | |||
2473 | * the write could fail due to quota errors that happen now but that might | |||
2474 | * not happen in a future attempt. | |||
2475 | */ | |||
2476 | void WriteSucceededClearBlobImpl() { | |||
2477 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2477); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 2477; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2478 | ||||
2479 | MOZ_ASSERT(*mBlobImpl)do { static_assert( mozilla::detail::AssertionConditionType< decltype(*mBlobImpl)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(*mBlobImpl))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("*mBlobImpl", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2479); AnnotateMozCrashReason("MOZ_ASSERT" "(" "*mBlobImpl" ")"); do { *((volatile int*)__null) = 2479; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2480 | mBlobImpl.destroy(); | |||
2481 | } | |||
2482 | ||||
2483 | public: | |||
2484 | // Called when sending to the child. | |||
2485 | explicit DatabaseFile(SafeRefPtr<DatabaseFileInfo> aFileInfo) | |||
2486 | : mBlobImpl{nullptr}, mFileInfo(std::move(aFileInfo)) { | |||
2487 | AssertIsOnBackgroundThread(); | |||
2488 | MOZ_ASSERT(mFileInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileInfo", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileInfo" ")" ); do { *((volatile int*)__null) = 2488; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2489 | } | |||
2490 | ||||
2491 | // Called when receiving from the child. | |||
2492 | DatabaseFile(RefPtr<BlobImpl> aBlobImpl, | |||
2493 | SafeRefPtr<DatabaseFileInfo> aFileInfo) | |||
2494 | : mBlobImpl(std::move(aBlobImpl)), mFileInfo(std::move(aFileInfo)) { | |||
2495 | AssertIsOnBackgroundThread(); | |||
2496 | MOZ_ASSERT(*mBlobImpl)do { static_assert( mozilla::detail::AssertionConditionType< decltype(*mBlobImpl)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(*mBlobImpl))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("*mBlobImpl", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2496); AnnotateMozCrashReason("MOZ_ASSERT" "(" "*mBlobImpl" ")"); do { *((volatile int*)__null) = 2496; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2497 | MOZ_ASSERT(mFileInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileInfo", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileInfo" ")" ); do { *((volatile int*)__null) = 2497; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2498 | } | |||
2499 | ||||
2500 | private: | |||
2501 | ~DatabaseFile() override = default; | |||
2502 | ||||
2503 | void ActorDestroy(ActorDestroyReason aWhy) override { | |||
2504 | AssertIsOnBackgroundThread(); | |||
2505 | } | |||
2506 | }; | |||
2507 | ||||
2508 | nsCOMPtr<nsIInputStream> DatabaseFile::GetInputStream(ErrorResult& rv) const { | |||
2509 | // We should only be called from our DB connection thread, not the background | |||
2510 | // thread. | |||
2511 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2511); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 2511; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2512 | ||||
2513 | // If we were constructed without a BlobImpl, or WriteSucceededClearBlobImpl | |||
2514 | // was already called, return nullptr. | |||
2515 | if (!mBlobImpl || !*mBlobImpl) { | |||
2516 | return nullptr; | |||
2517 | } | |||
2518 | ||||
2519 | nsCOMPtr<nsIInputStream> inputStream; | |||
2520 | (*mBlobImpl)->CreateInputStream(getter_AddRefs(inputStream), rv); | |||
2521 | if (rv.Failed()) { | |||
2522 | return nullptr; | |||
2523 | } | |||
2524 | ||||
2525 | return inputStream; | |||
2526 | } | |||
2527 | ||||
2528 | class TransactionBase : public AtomicSafeRefCounted<TransactionBase> { | |||
2529 | friend class CursorBase; | |||
2530 | ||||
2531 | template <IDBCursorType CursorType> | |||
2532 | friend class Cursor; | |||
2533 | ||||
2534 | class CommitOp; | |||
2535 | ||||
2536 | protected: | |||
2537 | using Mode = IDBTransaction::Mode; | |||
2538 | using Durability = IDBTransaction::Durability; | |||
2539 | ||||
2540 | private: | |||
2541 | const SafeRefPtr<Database> mDatabase; | |||
2542 | nsTArray<SafeRefPtr<FullObjectStoreMetadata>> | |||
2543 | mModifiedAutoIncrementObjectStoreMetadataArray; | |||
2544 | LazyInitializedOnceNotNull<const uint64_t> mTransactionId; | |||
2545 | const nsCString mDatabaseId; | |||
2546 | const int64_t mLoggingSerialNumber; | |||
2547 | uint64_t mActiveRequestCount; | |||
2548 | Atomic<bool> mInvalidatedOnAnyThread; | |||
2549 | const Mode mMode; | |||
2550 | const Durability mDurability; | |||
2551 | FlippedOnce<false> mInitialized; | |||
2552 | FlippedOnce<false> mHasBeenActiveOnConnectionThread; | |||
2553 | FlippedOnce<false> mActorDestroyed; | |||
2554 | FlippedOnce<false> mInvalidated; | |||
2555 | ||||
2556 | protected: | |||
2557 | nsresult mResultCode; | |||
2558 | FlippedOnce<false> mCommitOrAbortReceived; | |||
2559 | FlippedOnce<false> mCommittedOrAborted; | |||
2560 | FlippedOnce<false> mForceAborted; | |||
2561 | LazyInitializedOnce<const Maybe<int64_t>> mLastRequestBeforeCommit; | |||
2562 | Maybe<int64_t> mLastFailedRequest; | |||
2563 | ||||
2564 | public: | |||
2565 | void AssertIsOnConnectionThread() const { | |||
2566 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2566); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { *((volatile int*)__null) = 2566; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2567 | mDatabase->AssertIsOnConnectionThread(); | |||
2568 | } | |||
2569 | ||||
2570 | bool IsActorDestroyed() const { | |||
2571 | AssertIsOnBackgroundThread(); | |||
2572 | ||||
2573 | return mActorDestroyed; | |||
2574 | } | |||
2575 | ||||
2576 | // Must be called on the background thread. | |||
2577 | bool IsInvalidated() const { | |||
2578 | MOZ_ASSERT(IsOnBackgroundThread(), "Use IsInvalidatedOnAnyThread()")do { static_assert( mozilla::detail::AssertionConditionType< decltype(IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("IsOnBackgroundThread()" " (" "Use IsInvalidatedOnAnyThread()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2578); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnBackgroundThread()" ") (" "Use IsInvalidatedOnAnyThread()" ")"); do { *((volatile int*)__null) = 2578; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); | |||
2579 | MOZ_ASSERT_IF(mInvalidated, NS_FAILED(mResultCode))do { if (mInvalidated) { do { static_assert( mozilla::detail:: AssertionConditionType<decltype(((bool)(__builtin_expect(! !(NS_FAILED_impl(mResultCode)), 0))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( NS_FAILED_impl(mResultCode)), 0)))))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2579); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)))" ")"); do { *((volatile int*)__null) = 2579; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
2580 | ||||
2581 | return mInvalidated; | |||
2582 | } | |||
2583 | ||||
2584 | // May be called on any thread, but is more expensive than IsInvalidated(). | |||
2585 | bool IsInvalidatedOnAnyThread() const { return mInvalidatedOnAnyThread; } | |||
2586 | ||||
2587 | void Init(const uint64_t aTransactionId) { | |||
2588 | AssertIsOnBackgroundThread(); | |||
2589 | MOZ_ASSERT(aTransactionId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aTransactionId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aTransactionId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aTransactionId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2589); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransactionId" ")"); do { *((volatile int*)__null) = 2589; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2590 | ||||
2591 | mTransactionId.init(aTransactionId); | |||
2592 | mInitialized.Flip(); | |||
2593 | } | |||
2594 | ||||
2595 | void SetActiveOnConnectionThread() { | |||
2596 | AssertIsOnConnectionThread(); | |||
2597 | mHasBeenActiveOnConnectionThread.Flip(); | |||
2598 | } | |||
2599 | ||||
2600 | MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::TransactionBase)const char* typeName() const { return "mozilla::dom::indexedDB::TransactionBase" ; } size_t typeSize() const { return sizeof(*this); } | |||
2601 | ||||
2602 | void Abort(nsresult aResultCode, bool aForce); | |||
2603 | ||||
2604 | uint64_t TransactionId() const { return *mTransactionId; } | |||
2605 | ||||
2606 | const nsACString& DatabaseId() const { return mDatabaseId; } | |||
2607 | ||||
2608 | Mode GetMode() const { return mMode; } | |||
2609 | ||||
2610 | Durability GetDurability() const { return mDurability; } | |||
2611 | ||||
2612 | const Database& GetDatabase() const { | |||
2613 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2613); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { *((volatile int*)__null) = 2613; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2614 | ||||
2615 | return *mDatabase; | |||
2616 | } | |||
2617 | ||||
2618 | Database& GetMutableDatabase() const { | |||
2619 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2619); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { *((volatile int*)__null) = 2619; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2620 | ||||
2621 | return *mDatabase; | |||
2622 | } | |||
2623 | ||||
2624 | SafeRefPtr<Database> GetDatabasePtr() const { | |||
2625 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2625); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { *((volatile int*)__null) = 2625; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2626 | ||||
2627 | return mDatabase.clonePtr(); | |||
2628 | } | |||
2629 | ||||
2630 | DatabaseLoggingInfo* GetLoggingInfo() const { | |||
2631 | AssertIsOnBackgroundThread(); | |||
2632 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2632); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { *((volatile int*)__null) = 2632; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2633 | ||||
2634 | return mDatabase->GetLoggingInfo(); | |||
2635 | } | |||
2636 | ||||
2637 | int64_t LoggingSerialNumber() const { return mLoggingSerialNumber; } | |||
2638 | ||||
2639 | bool IsAborted() const { | |||
2640 | AssertIsOnBackgroundThread(); | |||
2641 | ||||
2642 | return NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)) ); | |||
2643 | } | |||
2644 | ||||
2645 | [[nodiscard]] SafeRefPtr<FullObjectStoreMetadata> GetMetadataForObjectStoreId( | |||
2646 | IndexOrObjectStoreId aObjectStoreId) const; | |||
2647 | ||||
2648 | [[nodiscard]] SafeRefPtr<FullIndexMetadata> GetMetadataForIndexId( | |||
2649 | FullObjectStoreMetadata& aObjectStoreMetadata, | |||
2650 | IndexOrObjectStoreId aIndexId) const; | |||
2651 | ||||
2652 | PBackgroundParent* GetBackgroundParent() const { | |||
2653 | AssertIsOnBackgroundThread(); | |||
2654 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2654); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { *((volatile int*)__null) = 2654; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2655 | ||||
2656 | return GetDatabase().GetBackgroundParent(); | |||
2657 | } | |||
2658 | ||||
2659 | void NoteModifiedAutoIncrementObjectStore( | |||
2660 | const SafeRefPtr<FullObjectStoreMetadata>& aMetadata); | |||
2661 | ||||
2662 | void ForgetModifiedAutoIncrementObjectStore( | |||
2663 | FullObjectStoreMetadata& aMetadata); | |||
2664 | ||||
2665 | void NoteActiveRequest(); | |||
2666 | ||||
2667 | void NoteFinishedRequest(int64_t aRequestId, nsresult aResultCode); | |||
2668 | ||||
2669 | void Invalidate(); | |||
2670 | ||||
2671 | virtual ~TransactionBase(); | |||
2672 | ||||
2673 | protected: | |||
2674 | TransactionBase(SafeRefPtr<Database> aDatabase, Mode aMode, | |||
2675 | Durability aDurability); | |||
2676 | ||||
2677 | void NoteActorDestroyed() { | |||
2678 | AssertIsOnBackgroundThread(); | |||
2679 | ||||
2680 | mActorDestroyed.Flip(); | |||
2681 | } | |||
2682 | ||||
2683 | #ifdef DEBUG1 | |||
2684 | // Only called by VersionChangeTransaction. | |||
2685 | void FakeActorDestroyed() { mActorDestroyed.EnsureFlipped(); } | |||
2686 | #endif | |||
2687 | ||||
2688 | mozilla::ipc::IPCResult RecvCommit(IProtocol* aActor, | |||
2689 | const Maybe<int64_t> aLastRequest); | |||
2690 | ||||
2691 | mozilla::ipc::IPCResult RecvAbort(IProtocol* aActor, nsresult aResultCode); | |||
2692 | ||||
2693 | void MaybeCommitOrAbort() { | |||
2694 | AssertIsOnBackgroundThread(); | |||
2695 | ||||
2696 | // If we've already committed or aborted then there's nothing else to do. | |||
2697 | if (mCommittedOrAborted) { | |||
2698 | return; | |||
2699 | } | |||
2700 | ||||
2701 | // If there are active requests then we have to wait for those requests to | |||
2702 | // complete (see NoteFinishedRequest). | |||
2703 | if (mActiveRequestCount) { | |||
2704 | return; | |||
2705 | } | |||
2706 | ||||
2707 | // If we haven't yet received a commit or abort message then there could be | |||
2708 | // additional requests coming so we should wait unless we're being forced to | |||
2709 | // abort. | |||
2710 | if (!mCommitOrAbortReceived && !mForceAborted) { | |||
2711 | return; | |||
2712 | } | |||
2713 | ||||
2714 | CommitOrAbort(); | |||
2715 | } | |||
2716 | ||||
2717 | PBackgroundIDBRequestParent* AllocRequest(const int64_t aRequestId, | |||
2718 | RequestParams&& aParams, | |||
2719 | bool aTrustParams); | |||
2720 | ||||
2721 | bool StartRequest(PBackgroundIDBRequestParent* aActor); | |||
2722 | ||||
2723 | bool DeallocRequest(PBackgroundIDBRequestParent* aActor); | |||
2724 | ||||
2725 | already_AddRefed<PBackgroundIDBCursorParent> AllocCursor( | |||
2726 | const OpenCursorParams& aParams, bool aTrustParams); | |||
2727 | ||||
2728 | bool StartCursor(PBackgroundIDBCursorParent* aActor, const int64_t aRequestId, | |||
2729 | const OpenCursorParams& aParams); | |||
2730 | ||||
2731 | virtual void UpdateMetadata(nsresult aResult) {} | |||
2732 | ||||
2733 | virtual void SendCompleteNotification(nsresult aResult) = 0; | |||
2734 | ||||
2735 | private: | |||
2736 | bool VerifyRequestParams(const RequestParams& aParams) const; | |||
2737 | ||||
2738 | bool VerifyRequestParams(const SerializedKeyRange& aParams) const; | |||
2739 | ||||
2740 | bool VerifyRequestParams(const ObjectStoreAddPutParams& aParams) const; | |||
2741 | ||||
2742 | bool VerifyRequestParams(const Maybe<SerializedKeyRange>& aParams) const; | |||
2743 | ||||
2744 | void CommitOrAbort(); | |||
2745 | }; | |||
2746 | ||||
2747 | class TransactionBase::CommitOp final : public DatabaseOperationBase, | |||
2748 | public ConnectionPool::FinishCallback { | |||
2749 | friend class TransactionBase; | |||
2750 | ||||
2751 | SafeRefPtr<TransactionBase> mTransaction; | |||
2752 | nsresult mResultCode; ///< TODO: There is also a mResultCode in | |||
2753 | ///< DatabaseOperationBase. Is there a reason not to | |||
2754 | ///< use that? At least a more specific name should be | |||
2755 | ///< given to this one. | |||
2756 | ||||
2757 | private: | |||
2758 | CommitOp(SafeRefPtr<TransactionBase> aTransaction, nsresult aResultCode); | |||
2759 | ||||
2760 | ~CommitOp() override = default; | |||
2761 | ||||
2762 | // Writes new autoIncrement counts to database. | |||
2763 | nsresult WriteAutoIncrementCounts(); | |||
2764 | ||||
2765 | // Updates counts after a database activity has finished. | |||
2766 | void CommitOrRollbackAutoIncrementCounts(); | |||
2767 | ||||
2768 | void AssertForeignKeyConsistency(DatabaseConnection* aConnection) | |||
2769 | #ifdef DEBUG1 | |||
2770 | ; | |||
2771 | #else | |||
2772 | { | |||
2773 | } | |||
2774 | #endif | |||
2775 | ||||
2776 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | |||
2777 | ||||
2778 | void TransactionFinishedBeforeUnblock() override; | |||
2779 | ||||
2780 | void TransactionFinishedAfterUnblock() override; | |||
2781 | ||||
2782 | public: | |||
2783 | // We need to declare all of nsISupports, because FinishCallback has | |||
2784 | // a pure-virtual nsISupports declaration. | |||
2785 | NS_DECL_ISUPPORTS_INHERITEDpublic: virtual nsresult QueryInterface(const nsIID& aIID , void** aInstancePtr) override; virtual MozExternalRefCountType AddRef(void) override; virtual MozExternalRefCountType Release (void) override; | |||
2786 | }; | |||
2787 | ||||
2788 | class NormalTransaction final : public TransactionBase, | |||
2789 | public PBackgroundIDBTransactionParent { | |||
2790 | nsTArray<SafeRefPtr<FullObjectStoreMetadata>> mObjectStores; | |||
2791 | ||||
2792 | // Reference counted. | |||
2793 | ~NormalTransaction() override = default; | |||
2794 | ||||
2795 | bool IsSameProcessActor(); | |||
2796 | ||||
2797 | // Only called by TransactionBase. | |||
2798 | void SendCompleteNotification(nsresult aResult) override; | |||
2799 | ||||
2800 | // IPDL methods are only called by IPDL. | |||
2801 | void ActorDestroy(ActorDestroyReason aWhy) override; | |||
2802 | ||||
2803 | mozilla::ipc::IPCResult RecvDeleteMe() override; | |||
2804 | ||||
2805 | mozilla::ipc::IPCResult RecvCommit( | |||
2806 | const Maybe<int64_t>& aLastRequest) override; | |||
2807 | ||||
2808 | mozilla::ipc::IPCResult RecvAbort(const nsresult& aResultCode) override; | |||
2809 | ||||
2810 | PBackgroundIDBRequestParent* AllocPBackgroundIDBRequestParent( | |||
2811 | const int64_t& aRequestId, const RequestParams& aParams) override; | |||
2812 | ||||
2813 | mozilla::ipc::IPCResult RecvPBackgroundIDBRequestConstructor( | |||
2814 | PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId, | |||
2815 | const RequestParams& aParams) override; | |||
2816 | ||||
2817 | bool DeallocPBackgroundIDBRequestParent( | |||
2818 | PBackgroundIDBRequestParent* aActor) override; | |||
2819 | ||||
2820 | already_AddRefed<PBackgroundIDBCursorParent> AllocPBackgroundIDBCursorParent( | |||
2821 | const int64_t& aRequestId, const OpenCursorParams& aParams) override; | |||
2822 | ||||
2823 | mozilla::ipc::IPCResult RecvPBackgroundIDBCursorConstructor( | |||
2824 | PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId, | |||
2825 | const OpenCursorParams& aParams) override; | |||
2826 | ||||
2827 | public: | |||
2828 | // This constructor is only called by Database. | |||
2829 | NormalTransaction( | |||
2830 | SafeRefPtr<Database> aDatabase, TransactionBase::Mode aMode, | |||
2831 | TransactionBase::Durability aDurability, | |||
2832 | nsTArray<SafeRefPtr<FullObjectStoreMetadata>>&& aObjectStores); | |||
2833 | ||||
2834 | MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED(NormalTransaction, TransactionBase)template <typename T, ::mozilla::detail::RefCountAtomicity Atomicity> friend class ::mozilla::detail::SafeRefCounted ; virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<NormalTransaction>, "Reference-counted class " "NormalTransaction" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = TransactionBase ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <NormalTransaction>) { NS_LogAddRef((this), (r), ("NormalTransaction" ), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = TransactionBase::Release() ; if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt< NormalTransaction>) { NS_LogRelease((this), (r), ("NormalTransaction" )); } return r; } | |||
2835 | }; | |||
2836 | ||||
2837 | class VersionChangeTransaction final | |||
2838 | : public TransactionBase, | |||
2839 | public PBackgroundIDBVersionChangeTransactionParent { | |||
2840 | friend class OpenDatabaseOp; | |||
2841 | ||||
2842 | RefPtr<OpenDatabaseOp> mOpenDatabaseOp; | |||
2843 | SafeRefPtr<FullDatabaseMetadata> mOldMetadata; | |||
2844 | ||||
2845 | FlippedOnce<false> mActorWasAlive; | |||
2846 | ||||
2847 | public: | |||
2848 | // Only called by OpenDatabaseOp. | |||
2849 | explicit VersionChangeTransaction(OpenDatabaseOp* aOpenDatabaseOp); | |||
2850 | ||||
2851 | MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED(VersionChangeTransaction,template <typename T, ::mozilla::detail::RefCountAtomicity Atomicity> friend class ::mozilla::detail::SafeRefCounted ; virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<VersionChangeTransaction>, "Reference-counted class " "VersionChangeTransaction" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = TransactionBase ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <VersionChangeTransaction>) { NS_LogAddRef((this), (r), ("VersionChangeTransaction"), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = TransactionBase::Release(); if constexpr (::mozilla::detail ::ShouldLogInheritedRefcnt<VersionChangeTransaction>) { NS_LogRelease((this), (r), ("VersionChangeTransaction")); } return r; } | |||
2852 | TransactionBase)template <typename T, ::mozilla::detail::RefCountAtomicity Atomicity> friend class ::mozilla::detail::SafeRefCounted ; virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<VersionChangeTransaction>, "Reference-counted class " "VersionChangeTransaction" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = TransactionBase ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <VersionChangeTransaction>) { NS_LogAddRef((this), (r), ("VersionChangeTransaction"), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = TransactionBase::Release(); if constexpr (::mozilla::detail ::ShouldLogInheritedRefcnt<VersionChangeTransaction>) { NS_LogRelease((this), (r), ("VersionChangeTransaction")); } return r; } | |||
2853 | ||||
2854 | private: | |||
2855 | // Reference counted. | |||
2856 | ~VersionChangeTransaction() override; | |||
2857 | ||||
2858 | bool IsSameProcessActor(); | |||
2859 | ||||
2860 | // Only called by OpenDatabaseOp. | |||
2861 | bool CopyDatabaseMetadata(); | |||
2862 | ||||
2863 | void SetActorAlive(); | |||
2864 | ||||
2865 | // Only called by TransactionBase. | |||
2866 | void UpdateMetadata(nsresult aResult) override; | |||
2867 | ||||
2868 | // Only called by TransactionBase. | |||
2869 | void SendCompleteNotification(nsresult aResult) override; | |||
2870 | ||||
2871 | // IPDL methods are only called by IPDL. | |||
2872 | void ActorDestroy(ActorDestroyReason aWhy) override; | |||
2873 | ||||
2874 | mozilla::ipc::IPCResult RecvDeleteMe() override; | |||
2875 | ||||
2876 | mozilla::ipc::IPCResult RecvCommit( | |||
2877 | const Maybe<int64_t>& aLastRequest) override; | |||
2878 | ||||
2879 | mozilla::ipc::IPCResult RecvAbort(const nsresult& aResultCode) override; | |||
2880 | ||||
2881 | mozilla::ipc::IPCResult RecvCreateObjectStore( | |||
2882 | const ObjectStoreMetadata& aMetadata) override; | |||
2883 | ||||
2884 | mozilla::ipc::IPCResult RecvDeleteObjectStore( | |||
2885 | const IndexOrObjectStoreId& aObjectStoreId) override; | |||
2886 | ||||
2887 | mozilla::ipc::IPCResult RecvRenameObjectStore( | |||
2888 | const IndexOrObjectStoreId& aObjectStoreId, | |||
2889 | const nsAString& aName) override; | |||
2890 | ||||
2891 | mozilla::ipc::IPCResult RecvCreateIndex( | |||
2892 | const IndexOrObjectStoreId& aObjectStoreId, | |||
2893 | const IndexMetadata& aMetadata) override; | |||
2894 | ||||
2895 | mozilla::ipc::IPCResult RecvDeleteIndex( | |||
2896 | const IndexOrObjectStoreId& aObjectStoreId, | |||
2897 | const IndexOrObjectStoreId& aIndexId) override; | |||
2898 | ||||
2899 | mozilla::ipc::IPCResult RecvRenameIndex( | |||
2900 | const IndexOrObjectStoreId& aObjectStoreId, | |||
2901 | const IndexOrObjectStoreId& aIndexId, const nsAString& aName) override; | |||
2902 | ||||
2903 | PBackgroundIDBRequestParent* AllocPBackgroundIDBRequestParent( | |||
2904 | const int64_t& aRequestId, const RequestParams& aParams) override; | |||
2905 | ||||
2906 | mozilla::ipc::IPCResult RecvPBackgroundIDBRequestConstructor( | |||
2907 | PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId, | |||
2908 | const RequestParams& aParams) override; | |||
2909 | ||||
2910 | bool DeallocPBackgroundIDBRequestParent( | |||
2911 | PBackgroundIDBRequestParent* aActor) override; | |||
2912 | ||||
2913 | already_AddRefed<PBackgroundIDBCursorParent> AllocPBackgroundIDBCursorParent( | |||
2914 | const int64_t& aRequestId, const OpenCursorParams& aParams) override; | |||
2915 | ||||
2916 | mozilla::ipc::IPCResult RecvPBackgroundIDBCursorConstructor( | |||
2917 | PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId, | |||
2918 | const OpenCursorParams& aParams) override; | |||
2919 | }; | |||
2920 | ||||
2921 | class FactoryOp | |||
2922 | : public DatabaseOperationBase, | |||
2923 | public SupportsCheckedUnsafePtr<CheckIf<DiagnosticAssertEnabled>> { | |||
2924 | public: | |||
2925 | struct MaybeBlockedDatabaseInfo final { | |||
2926 | SafeRefPtr<Database> mDatabase; | |||
2927 | bool mBlocked; | |||
2928 | ||||
2929 | MaybeBlockedDatabaseInfo(MaybeBlockedDatabaseInfo&&) = default; | |||
2930 | MaybeBlockedDatabaseInfo& operator=(MaybeBlockedDatabaseInfo&&) = default; | |||
2931 | ||||
2932 | MOZ_IMPLICIT MaybeBlockedDatabaseInfo(SafeRefPtr<Database> aDatabase) | |||
2933 | : mDatabase(std::move(aDatabase)), mBlocked(false) { | |||
2934 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 2934); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { *((volatile int*)__null) = 2934; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
2935 | ||||
2936 | MOZ_COUNT_CTOR(FactoryOp::MaybeBlockedDatabaseInfo)do { static_assert(std::is_class_v<FactoryOp::MaybeBlockedDatabaseInfo >, "Token '" "FactoryOp::MaybeBlockedDatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, FactoryOp:: MaybeBlockedDatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "FactoryOp::MaybeBlockedDatabaseInfo" , sizeof(*this)); } while (0); | |||
2937 | } | |||
2938 | ||||
2939 | ~MaybeBlockedDatabaseInfo() { | |||
2940 | MOZ_COUNT_DTOR(FactoryOp::MaybeBlockedDatabaseInfo)do { static_assert(std::is_class_v<FactoryOp::MaybeBlockedDatabaseInfo >, "Token '" "FactoryOp::MaybeBlockedDatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, FactoryOp:: MaybeBlockedDatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "FactoryOp::MaybeBlockedDatabaseInfo" , sizeof(*this)); } while (0); | |||
2941 | } | |||
2942 | ||||
2943 | bool operator==(const Database* aOther) const { | |||
2944 | return mDatabase == aOther; | |||
2945 | } | |||
2946 | ||||
2947 | Database* operator->() const& MOZ_NO_ADDREF_RELEASE_ON_RETURN { | |||
2948 | return mDatabase.unsafeGetRawPtr(); | |||
2949 | } | |||
2950 | }; | |||
2951 | ||||
2952 | protected: | |||
2953 | enum class State { | |||
2954 | // Just created on the PBackground thread, dispatched to the current thread. | |||
2955 | // Next step is either SendingResults if opening initialization failed, or | |||
2956 | // DirectoryOpenPending if the opening initialization succeeded. | |||
2957 | Initial, | |||
2958 | ||||
2959 | // Waiting for directory open allowed on the PBackground thread. The next | |||
2960 | // step is either SendingResults if directory lock failed to acquire, or | |||
2961 | // DirectoryWorkOpen if the factory operation is not tied up to a specific | |||
2962 | // database, or DatabaseOpenPending otherwise. | |||
2963 | DirectoryOpenPending, | |||
2964 | ||||
2965 | // Waiting to do/doing directory work on the QuotaManager IO thread. Its | |||
2966 | // next step is DirectoryWorkDone if directory work was successful or | |||
2967 | // SendingResults if directory work failed. | |||
2968 | DirectoryWorkOpen, | |||
2969 | ||||
2970 | // Checking if database work can be started. If the database is not blocked | |||
2971 | // by other factory operations then the next step is DatabaseWorkOpen. | |||
2972 | // Otherwise the next step is DatabaseOpenPending. | |||
2973 | DirectoryWorkDone, | |||
2974 | ||||
2975 | // Waiting for database open allowed on the PBackground thread. The next | |||
2976 | // step is DatabaseWorkOpen. | |||
2977 | DatabaseOpenPending, | |||
2978 | ||||
2979 | // Waiting to do/doing work on the QuotaManager IO thread. Its next step is | |||
2980 | // either BeginVersionChange if the requested version doesn't match the | |||
2981 | // existing database version or SendingResults if the versions match. | |||
2982 | DatabaseWorkOpen, | |||
2983 | ||||
2984 | // Starting a version change transaction or deleting a database on the | |||
2985 | // PBackground thread. We need to notify other databases that a version | |||
2986 | // change is about to happen, and maybe tell the request that a version | |||
2987 | // change has been blocked. If databases are notified then the next step is | |||
2988 | // WaitingForOtherDatabasesToClose. Otherwise the next step is | |||
2989 | // WaitingForTransactionsToComplete. | |||
2990 | BeginVersionChange, | |||
2991 | ||||
2992 | // Waiting for other databases to close on the PBackground thread. This | |||
2993 | // state may persist until all databases are closed. The next state is | |||
2994 | // WaitingForTransactionsToComplete. | |||
2995 | WaitingForOtherDatabasesToClose, | |||
2996 | ||||
2997 | // Waiting for all transactions that could interfere with this operation to | |||
2998 | // complete on the PBackground thread. Next state is | |||
2999 | // DatabaseWorkVersionChange. | |||
3000 | WaitingForTransactionsToComplete, | |||
3001 | ||||
3002 | // Waiting to do/doing work on the "work thread". This involves waiting for | |||
3003 | // the VersionChangeOp (OpenDatabaseOp and DeleteDatabaseOp each have a | |||
3004 | // different implementation) to do its work. Eventually the state will | |||
3005 | // transition to SendingResults. | |||
3006 | DatabaseWorkVersionChange, | |||
3007 | ||||
3008 | // Waiting to send/sending results on the PBackground thread. Next step is | |||
3009 | // Completed. | |||
3010 | SendingResults, | |||
3011 | ||||
3012 | // All done. | |||
3013 | Completed | |||
3014 | }; | |||
3015 | ||||
3016 | // Must be released on the background thread! | |||
3017 | SafeRefPtr<Factory> mFactory; | |||
3018 | ||||
3019 | Maybe<ContentParentId> mContentParentId; | |||
3020 | ||||
3021 | // Must be released on the main thread! | |||
3022 | RefPtr<DirectoryLock> mDirectoryLock; | |||
3023 | ||||
3024 | nsTArray<NotNull<RefPtr<FactoryOp>>> mBlocking; | |||
3025 | nsTArray<NotNull<RefPtr<FactoryOp>>> mBlockedOn; | |||
3026 | ||||
3027 | nsTArray<MaybeBlockedDatabaseInfo> mMaybeBlockedDatabases; | |||
3028 | ||||
3029 | const PrincipalInfo mPrincipalInfo; | |||
3030 | OriginMetadata mOriginMetadata; | |||
3031 | Maybe<nsString> mDatabaseName; | |||
3032 | Maybe<nsCString> mDatabaseId; | |||
3033 | Maybe<nsString> mDatabaseFilePath; | |||
3034 | int64_t mDirectoryLockId; | |||
3035 | const PersistenceType mPersistenceType; | |||
3036 | State mState; | |||
3037 | bool mWaitingForPermissionRetry; | |||
3038 | bool mEnforcingQuota; | |||
3039 | const bool mDeleting; | |||
3040 | FlippedOnce<false> mInPrivateBrowsing; | |||
3041 | ||||
3042 | public: | |||
3043 | const nsACString& Origin() const { | |||
3044 | AssertIsOnOwningThread(); | |||
3045 | ||||
3046 | return mOriginMetadata.mOrigin; | |||
3047 | } | |||
3048 | ||||
3049 | const Maybe<nsString>& DatabaseNameRef() const { | |||
3050 | AssertIsOnOwningThread(); | |||
3051 | ||||
3052 | return mDatabaseName; | |||
3053 | } | |||
3054 | ||||
3055 | bool DatabaseFilePathIsKnown() const { | |||
3056 | AssertIsOnOwningThread(); | |||
3057 | ||||
3058 | return mDatabaseFilePath.isSome(); | |||
3059 | } | |||
3060 | ||||
3061 | const nsAString& DatabaseFilePath() const { | |||
3062 | AssertIsOnOwningThread(); | |||
3063 | MOZ_ASSERT(mDatabaseFilePath)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabaseFilePath)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabaseFilePath))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseFilePath" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3063); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseFilePath" ")"); do { *((volatile int*)__null) = 3063; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
3064 | ||||
3065 | return mDatabaseFilePath.ref(); | |||
3066 | } | |||
3067 | ||||
3068 | nsresult DispatchThisAfterProcessingCurrentEvent( | |||
3069 | nsCOMPtr<nsIEventTarget> aEventTarget); | |||
3070 | ||||
3071 | void NoteDatabaseBlocked(Database* aDatabase); | |||
3072 | ||||
3073 | void NoteDatabaseClosed(Database* aDatabase); | |||
3074 | ||||
3075 | #ifdef DEBUG1 | |||
3076 | bool HasBlockedDatabases() const { return !mMaybeBlockedDatabases.IsEmpty(); } | |||
3077 | #endif | |||
3078 | ||||
3079 | void StringifyState(nsACString& aResult) const; | |||
3080 | ||||
3081 | void Stringify(nsACString& aResult) const; | |||
3082 | ||||
3083 | protected: | |||
3084 | FactoryOp(SafeRefPtr<Factory> aFactory, | |||
3085 | const Maybe<ContentParentId>& aContentParentId, | |||
3086 | const PersistenceType aPersistenceType, | |||
3087 | const PrincipalInfo& aPrincipalInfo, | |||
3088 | const Maybe<nsString>& aDatabaseName, bool aDeleting); | |||
3089 | ||||
3090 | ~FactoryOp() override { | |||
3091 | // Normally this would be out-of-line since it is a virtual function but | |||
3092 | // MSVC 2010 fails to link for some reason if it is not inlined here... | |||
3093 | MOZ_ASSERT_IF(OperationMayProceed(),do { if (OperationMayProceed()) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(mState == State:: Initial || mState == State::Completed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Initial || mState == State::Completed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mState == State::Initial || mState == State::Completed", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3094); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::Completed" ")"); do { *((volatile int*)__null) = 3094; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
3094 | mState == State::Initial || mState == State::Completed)do { if (OperationMayProceed()) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(mState == State:: Initial || mState == State::Completed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Initial || mState == State::Completed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mState == State::Initial || mState == State::Completed", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3094); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::Completed" ")"); do { *((volatile int*)__null) = 3094; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
3095 | } | |||
3096 | ||||
3097 | nsresult Open(); | |||
3098 | ||||
3099 | nsresult DirectoryOpen(); | |||
3100 | ||||
3101 | nsresult DirectoryWorkDone(); | |||
3102 | ||||
3103 | nsresult SendToIOThread(); | |||
3104 | ||||
3105 | void WaitForTransactions(); | |||
3106 | ||||
3107 | void CleanupMetadata(); | |||
3108 | ||||
3109 | void FinishSendResults(); | |||
3110 | ||||
3111 | nsresult SendVersionChangeMessages(DatabaseActorInfo* aDatabaseActorInfo, | |||
3112 | Maybe<Database&> aOpeningDatabase, | |||
3113 | uint64_t aOldVersion, | |||
3114 | const Maybe<uint64_t>& aNewVersion); | |||
3115 | ||||
3116 | // Methods that subclasses must implement. | |||
3117 | virtual nsresult DoDirectoryWork() = 0; | |||
3118 | ||||
3119 | virtual nsresult DatabaseOpen() = 0; | |||
3120 | ||||
3121 | virtual nsresult DoDatabaseWork() = 0; | |||
3122 | ||||
3123 | virtual nsresult BeginVersionChange() = 0; | |||
3124 | ||||
3125 | virtual bool AreActorsAlive() = 0; | |||
3126 | ||||
3127 | virtual nsresult DispatchToWorkThread() = 0; | |||
3128 | ||||
3129 | // Should only be called by Run(). | |||
3130 | virtual void SendResults() = 0; | |||
3131 | ||||
3132 | // Common nsIRunnable implementation that subclasses may not override. | |||
3133 | NS_IMETHODvirtual nsresult | |||
3134 | Run() final; | |||
3135 | ||||
3136 | void DirectoryLockAcquired(DirectoryLock* aLock); | |||
3137 | ||||
3138 | void DirectoryLockFailed(); | |||
3139 | ||||
3140 | virtual void SendBlockedNotification() = 0; | |||
3141 | ||||
3142 | private: | |||
3143 | // Test whether this FactoryOp needs to wait for the given op. | |||
3144 | bool MustWaitFor(const FactoryOp& aExistingOp); | |||
3145 | ||||
3146 | void AddBlockingOp(FactoryOp& aOp) { | |||
3147 | AssertIsOnOwningThread(); | |||
3148 | ||||
3149 | mBlocking.AppendElement(WrapNotNull(&aOp)); | |||
3150 | } | |||
3151 | ||||
3152 | void AddBlockedOnOp(FactoryOp& aOp) { | |||
3153 | AssertIsOnOwningThread(); | |||
3154 | ||||
3155 | mBlockedOn.AppendElement(WrapNotNull(&aOp)); | |||
3156 | } | |||
3157 | ||||
3158 | void MaybeUnblock(FactoryOp& aOp) { | |||
3159 | AssertIsOnOwningThread(); | |||
3160 | ||||
3161 | mBlockedOn.RemoveElement(&aOp); | |||
3162 | if (mBlockedOn.IsEmpty()) { | |||
3163 | MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(this))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (NS_DispatchToCurrentThread(this))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(this))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3163); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(this))" ")"); do { *((volatile int*)__null) = 3163; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
3164 | } | |||
3165 | } | |||
3166 | }; | |||
3167 | ||||
3168 | class FactoryRequestOp : public FactoryOp, | |||
3169 | public PBackgroundIDBFactoryRequestParent { | |||
3170 | protected: | |||
3171 | const CommonFactoryRequestParams mCommonParams; | |||
3172 | ||||
3173 | FactoryRequestOp(SafeRefPtr<Factory> aFactory, | |||
3174 | const Maybe<ContentParentId>& aContentParentId, | |||
3175 | const CommonFactoryRequestParams& aCommonParams, | |||
3176 | bool aDeleting) | |||
3177 | : FactoryOp(std::move(aFactory), aContentParentId, | |||
3178 | aCommonParams.metadata().persistenceType(), | |||
3179 | aCommonParams.principalInfo(), | |||
3180 | Some(aCommonParams.metadata().name()), aDeleting), | |||
3181 | mCommonParams(aCommonParams) {} | |||
3182 | ||||
3183 | nsresult DoDirectoryWork() override; | |||
3184 | ||||
3185 | // IPDL methods. | |||
3186 | void ActorDestroy(ActorDestroyReason aWhy) override; | |||
3187 | }; | |||
3188 | ||||
3189 | class OpenDatabaseOp final : public FactoryRequestOp { | |||
3190 | friend class Database; | |||
3191 | friend class VersionChangeTransaction; | |||
3192 | ||||
3193 | class VersionChangeOp; | |||
3194 | ||||
3195 | SafeRefPtr<FullDatabaseMetadata> mMetadata; | |||
3196 | ||||
3197 | uint64_t mRequestedVersion; | |||
3198 | SafeRefPtr<DatabaseFileManager> mFileManager; | |||
3199 | ||||
3200 | SafeRefPtr<Database> mDatabase; | |||
3201 | SafeRefPtr<VersionChangeTransaction> mVersionChangeTransaction; | |||
3202 | ||||
3203 | // This is only set while a VersionChangeOp is live. It holds a strong | |||
3204 | // reference to its OpenDatabaseOp object so this is a weak pointer to avoid | |||
3205 | // cycles. | |||
3206 | VersionChangeOp* mVersionChangeOp; | |||
3207 | ||||
3208 | uint32_t mTelemetryId; | |||
3209 | ||||
3210 | public: | |||
3211 | OpenDatabaseOp(SafeRefPtr<Factory> aFactory, | |||
3212 | const Maybe<ContentParentId>& aContentParentId, | |||
3213 | const CommonFactoryRequestParams& aParams); | |||
3214 | ||||
3215 | private: | |||
3216 | ~OpenDatabaseOp() override { MOZ_ASSERT(!mVersionChangeOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mVersionChangeOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mVersionChangeOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mVersionChangeOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3216); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeOp" ")"); do { *((volatile int*)__null) = 3216; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | |||
3217 | ||||
3218 | nsresult LoadDatabaseInformation(mozIStorageConnection& aConnection); | |||
3219 | ||||
3220 | nsresult SendUpgradeNeeded(); | |||
3221 | ||||
3222 | void EnsureDatabaseActor(); | |||
3223 | ||||
3224 | nsresult EnsureDatabaseActorIsAlive(); | |||
3225 | ||||
3226 | mozilla::Result<DatabaseSpec, nsresult> MetadataToSpec() const; | |||
3227 | ||||
3228 | void AssertMetadataConsistency(const FullDatabaseMetadata& aMetadata) | |||
3229 | #ifdef DEBUG1 | |||
3230 | ; | |||
3231 | #else | |||
3232 | { | |||
3233 | } | |||
3234 | #endif | |||
3235 | ||||
3236 | void ConnectionClosedCallback(); | |||
3237 | ||||
3238 | void ActorDestroy(ActorDestroyReason aWhy) override; | |||
3239 | ||||
3240 | nsresult DatabaseOpen() override; | |||
3241 | ||||
3242 | nsresult DoDatabaseWork() override; | |||
3243 | ||||
3244 | nsresult BeginVersionChange() override; | |||
3245 | ||||
3246 | bool AreActorsAlive() override; | |||
3247 | ||||
3248 | void SendBlockedNotification() override; | |||
3249 | ||||
3250 | nsresult DispatchToWorkThread() override; | |||
3251 | ||||
3252 | void SendResults() override; | |||
3253 | ||||
3254 | static nsresult UpdateLocaleAwareIndex(mozIStorageConnection& aConnection, | |||
3255 | const IndexMetadata& aIndexMetadata, | |||
3256 | const nsCString& aLocale); | |||
3257 | }; | |||
3258 | ||||
3259 | class OpenDatabaseOp::VersionChangeOp final | |||
3260 | : public TransactionDatabaseOperationBase { | |||
3261 | friend class OpenDatabaseOp; | |||
3262 | ||||
3263 | RefPtr<OpenDatabaseOp> mOpenDatabaseOp; | |||
3264 | const uint64_t mRequestedVersion; | |||
3265 | uint64_t mPreviousVersion; | |||
3266 | ||||
3267 | private: | |||
3268 | explicit VersionChangeOp(OpenDatabaseOp* aOpenDatabaseOp) | |||
3269 | : TransactionDatabaseOperationBase( | |||
3270 | aOpenDatabaseOp->mVersionChangeTransaction.clonePtr(), | |||
3271 | /* aRequestId */ 0, aOpenDatabaseOp->LoggingSerialNumber()), | |||
3272 | mOpenDatabaseOp(aOpenDatabaseOp), | |||
3273 | mRequestedVersion(aOpenDatabaseOp->mRequestedVersion), | |||
3274 | mPreviousVersion( | |||
3275 | aOpenDatabaseOp->mMetadata->mCommonMetadata.version()) { | |||
3276 | MOZ_ASSERT(aOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aOpenDatabaseOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3276); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpenDatabaseOp" ")"); do { *((volatile int*)__null) = 3276; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
3277 | MOZ_ASSERT(mRequestedVersion)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mRequestedVersion)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mRequestedVersion))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mRequestedVersion" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3277); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRequestedVersion" ")"); do { *((volatile int*)__null) = 3277; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
3278 | } | |||
3279 | ||||
3280 | ~VersionChangeOp() override { MOZ_ASSERT(!mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mOpenDatabaseOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3280); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp" ")"); do { *((volatile int*)__null) = 3280; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | |||
3281 | ||||
3282 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
3283 | ||||
3284 | nsresult SendSuccessResult() override; | |||
3285 | ||||
3286 | bool SendFailureResult(nsresult aResultCode) override; | |||
3287 | ||||
3288 | void Cleanup() override; | |||
3289 | }; | |||
3290 | ||||
3291 | class DeleteDatabaseOp final : public FactoryRequestOp { | |||
3292 | class VersionChangeOp; | |||
3293 | ||||
3294 | nsString mDatabaseDirectoryPath; | |||
3295 | nsString mDatabaseFilenameBase; | |||
3296 | uint64_t mPreviousVersion; | |||
3297 | ||||
3298 | public: | |||
3299 | DeleteDatabaseOp(SafeRefPtr<Factory> aFactory, | |||
3300 | const Maybe<ContentParentId>& aContentParentId, | |||
3301 | const CommonFactoryRequestParams& aParams) | |||
3302 | : FactoryRequestOp(std::move(aFactory), aContentParentId, aParams, | |||
3303 | /* aDeleting */ true), | |||
3304 | mPreviousVersion(0) {} | |||
3305 | ||||
3306 | private: | |||
3307 | ~DeleteDatabaseOp() override = default; | |||
3308 | ||||
3309 | void LoadPreviousVersion(nsIFile& aDatabaseFile); | |||
3310 | ||||
3311 | nsresult DatabaseOpen() override; | |||
3312 | ||||
3313 | nsresult DoDatabaseWork() override; | |||
3314 | ||||
3315 | nsresult BeginVersionChange() override; | |||
3316 | ||||
3317 | bool AreActorsAlive() override; | |||
3318 | ||||
3319 | void SendBlockedNotification() override; | |||
3320 | ||||
3321 | nsresult DispatchToWorkThread() override; | |||
3322 | ||||
3323 | void SendResults() override; | |||
3324 | }; | |||
3325 | ||||
3326 | class DeleteDatabaseOp::VersionChangeOp final : public DatabaseOperationBase { | |||
3327 | friend class DeleteDatabaseOp; | |||
3328 | ||||
3329 | RefPtr<DeleteDatabaseOp> mDeleteDatabaseOp; | |||
3330 | ||||
3331 | private: | |||
3332 | explicit VersionChangeOp(DeleteDatabaseOp* aDeleteDatabaseOp) | |||
3333 | : DatabaseOperationBase(aDeleteDatabaseOp->BackgroundChildLoggingId(), | |||
3334 | aDeleteDatabaseOp->LoggingSerialNumber()), | |||
3335 | mDeleteDatabaseOp(aDeleteDatabaseOp) { | |||
3336 | MOZ_ASSERT(aDeleteDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDeleteDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDeleteDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDeleteDatabaseOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3336); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDeleteDatabaseOp" ")"); do { *((volatile int*)__null) = 3336; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
3337 | MOZ_ASSERT(!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3337); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty()" ")"); do { *((volatile int*)__null) = 3337; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
3338 | } | |||
3339 | ||||
3340 | ~VersionChangeOp() override = default; | |||
3341 | ||||
3342 | nsresult RunOnIOThread(); | |||
3343 | ||||
3344 | void RunOnOwningThread(); | |||
3345 | ||||
3346 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | |||
3347 | }; | |||
3348 | ||||
3349 | class GetDatabasesOp final : public FactoryOp { | |||
3350 | nsTHashMap<nsStringHashKey, DatabaseMetadata> mDatabaseMetadataTable; | |||
3351 | nsTArray<DatabaseMetadata> mDatabaseMetadataArray; | |||
3352 | Factory::GetDatabasesResolver mResolver; | |||
3353 | ||||
3354 | public: | |||
3355 | GetDatabasesOp(SafeRefPtr<Factory> aFactory, | |||
3356 | const Maybe<ContentParentId>& aContentParentId, | |||
3357 | const PersistenceType aPersistenceType, | |||
3358 | const PrincipalInfo& aPrincipalInfo, | |||
3359 | Factory::GetDatabasesResolver&& aResolver) | |||
3360 | : FactoryOp(std::move(aFactory), aContentParentId, aPersistenceType, | |||
3361 | aPrincipalInfo, Nothing(), /* aDeleting */ false), | |||
3362 | mResolver(std::move(aResolver)) {} | |||
3363 | ||||
3364 | private: | |||
3365 | ~GetDatabasesOp() override = default; | |||
3366 | ||||
3367 | nsresult DatabasesNotAvailable(); | |||
3368 | ||||
3369 | nsresult DoDirectoryWork() override; | |||
3370 | ||||
3371 | nsresult DatabaseOpen() override; | |||
3372 | ||||
3373 | nsresult DoDatabaseWork() override; | |||
3374 | ||||
3375 | nsresult BeginVersionChange() override; | |||
3376 | ||||
3377 | bool AreActorsAlive() override; | |||
3378 | ||||
3379 | void SendBlockedNotification() override; | |||
3380 | ||||
3381 | nsresult DispatchToWorkThread() override; | |||
3382 | ||||
3383 | void SendResults() override; | |||
3384 | }; | |||
3385 | ||||
3386 | class VersionChangeTransactionOp : public TransactionDatabaseOperationBase { | |||
3387 | public: | |||
3388 | void Cleanup() override; | |||
3389 | ||||
3390 | protected: | |||
3391 | explicit VersionChangeTransactionOp( | |||
3392 | SafeRefPtr<VersionChangeTransaction> aTransaction) | |||
3393 | : TransactionDatabaseOperationBase(std::move(aTransaction), | |||
3394 | /* aRequestId */ 0) {} | |||
3395 | ||||
3396 | ~VersionChangeTransactionOp() override = default; | |||
3397 | ||||
3398 | private: | |||
3399 | nsresult SendSuccessResult() override; | |||
3400 | ||||
3401 | bool SendFailureResult(nsresult aResultCode) override; | |||
3402 | }; | |||
3403 | ||||
3404 | class CreateObjectStoreOp final : public VersionChangeTransactionOp { | |||
3405 | friend class VersionChangeTransaction; | |||
3406 | ||||
3407 | const ObjectStoreMetadata mMetadata; | |||
3408 | ||||
3409 | private: | |||
3410 | // Only created by VersionChangeTransaction. | |||
3411 | CreateObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | |||
3412 | const ObjectStoreMetadata& aMetadata) | |||
3413 | : VersionChangeTransactionOp(std::move(aTransaction)), | |||
3414 | mMetadata(aMetadata) { | |||
3415 | MOZ_ASSERT(aMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMetadata.id())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMetadata.id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aMetadata.id()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3415); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMetadata.id()" ")"); do { *((volatile int*)__null) = 3415; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
3416 | } | |||
3417 | ||||
3418 | ~CreateObjectStoreOp() override = default; | |||
3419 | ||||
3420 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
3421 | }; | |||
3422 | ||||
3423 | class DeleteObjectStoreOp final : public VersionChangeTransactionOp { | |||
3424 | friend class VersionChangeTransaction; | |||
3425 | ||||
3426 | const SafeRefPtr<FullObjectStoreMetadata> mMetadata; | |||
3427 | const bool mIsLastObjectStore; | |||
3428 | ||||
3429 | private: | |||
3430 | // Only created by VersionChangeTransaction. | |||
3431 | DeleteObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | |||
3432 | SafeRefPtr<FullObjectStoreMetadata> aMetadata, | |||
3433 | const bool aIsLastObjectStore) | |||
3434 | : VersionChangeTransactionOp(std::move(aTransaction)), | |||
3435 | mMetadata(std::move(aMetadata)), | |||
3436 | mIsLastObjectStore(aIsLastObjectStore) { | |||
3437 | MOZ_ASSERT(mMetadata->mCommonMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata->mCommonMetadata.id())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata->mCommonMetadata .id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMetadata->mCommonMetadata.id()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3437); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mCommonMetadata.id()" ")"); do { *((volatile int*)__null) = 3437; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
3438 | } | |||
3439 | ||||
3440 | ~DeleteObjectStoreOp() override = default; | |||
3441 | ||||
3442 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
3443 | }; | |||
3444 | ||||
3445 | class RenameObjectStoreOp final : public VersionChangeTransactionOp { | |||
3446 | friend class VersionChangeTransaction; | |||
3447 | ||||
3448 | const int64_t mId; | |||
3449 | const nsString mNewName; | |||
3450 | ||||
3451 | private: | |||
3452 | // Only created by VersionChangeTransaction. | |||
3453 | RenameObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | |||
3454 | FullObjectStoreMetadata& aMetadata) | |||
3455 | : VersionChangeTransactionOp(std::move(aTransaction)), | |||
3456 | mId(aMetadata.mCommonMetadata.id()), | |||
3457 | mNewName(aMetadata.mCommonMetadata.name()) { | |||
3458 | MOZ_ASSERT(mId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mId)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(mId))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3458); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mId" ")"); do { *((volatile int*)__null) = 3458; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | |||
3459 | } | |||
3460 | ||||
3461 | ~RenameObjectStoreOp() override = default; | |||
3462 | ||||
3463 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
3464 | }; | |||
3465 | ||||
3466 | class CreateIndexOp final : public VersionChangeTransactionOp { | |||
3467 | friend class VersionChangeTransaction; | |||
3468 | ||||
3469 | class UpdateIndexDataValuesFunction; | |||
3470 | ||||
3471 | const IndexMetadata mMetadata; | |||
3472 | Maybe<UniqueIndexTable> mMaybeUniqueIndexTable; | |||
3473 | const SafeRefPtr<DatabaseFileManager> mFileManager; | |||
3474 | const nsCString mDatabaseId; | |||
3475 | const IndexOrObjectStoreId mObjectStoreId; | |||
3476 | ||||
3477 | private: | |||
3478 | // Only created by VersionChangeTransaction. | |||
3479 | CreateIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | |||
3480 | IndexOrObjectStoreId aObjectStoreId, | |||
3481 | const IndexMetadata& aMetadata); | |||
3482 | ||||
3483 | ~CreateIndexOp() override = default; | |||
3484 | ||||
3485 | nsresult InsertDataFromObjectStore(DatabaseConnection* aConnection); | |||
3486 | ||||
3487 | nsresult InsertDataFromObjectStoreInternal( | |||
3488 | DatabaseConnection* aConnection) const; | |||
3489 | ||||
3490 | bool Init(TransactionBase& aTransaction) override; | |||
3491 | ||||
3492 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
3493 | }; | |||
3494 | ||||
3495 | class CreateIndexOp::UpdateIndexDataValuesFunction final | |||
3496 | : public mozIStorageFunction { | |||
3497 | RefPtr<CreateIndexOp> mOp; | |||
3498 | RefPtr<DatabaseConnection> mConnection; | |||
3499 | const NotNull<SafeRefPtr<Database>> mDatabase; | |||
3500 | ||||
3501 | public: | |||
3502 | UpdateIndexDataValuesFunction(CreateIndexOp* aOp, | |||
3503 | DatabaseConnection* aConnection, | |||
3504 | SafeRefPtr<Database> aDatabase) | |||
3505 | : mOp(aOp), | |||
3506 | mConnection(aConnection), | |||
3507 | mDatabase(WrapNotNull(std::move(aDatabase))) { | |||
3508 | MOZ_ASSERT(aOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aOp)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(aOp))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("aOp", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3508); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOp" ")"); do { *((volatile int*)__null) = 3508; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | |||
3509 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3509); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 3509; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
3510 | aConnection->AssertIsOnConnectionThread(); | |||
3511 | } | |||
3512 | ||||
3513 | NS_DECL_ISUPPORTSpublic: virtual nsresult QueryInterface(const nsIID& aIID , void** aInstancePtr) override; virtual MozExternalRefCountType AddRef(void) override; virtual MozExternalRefCountType Release (void) override; using HasThreadSafeRefCnt = std::false_type; protected: nsAutoRefCnt mRefCnt; nsAutoOwningThread _mOwningThread ; public: | |||
3514 | ||||
3515 | private: | |||
3516 | ~UpdateIndexDataValuesFunction() = default; | |||
3517 | ||||
3518 | NS_DECL_MOZISTORAGEFUNCTIONvirtual nsresult OnFunctionCall(mozIStorageValueArray *aFunctionArguments , nsIVariant **_retval) override; | |||
3519 | }; | |||
3520 | ||||
3521 | class DeleteIndexOp final : public VersionChangeTransactionOp { | |||
3522 | friend class VersionChangeTransaction; | |||
3523 | ||||
3524 | const IndexOrObjectStoreId mObjectStoreId; | |||
3525 | const IndexOrObjectStoreId mIndexId; | |||
3526 | const bool mUnique; | |||
3527 | const bool mIsLastIndex; | |||
3528 | ||||
3529 | private: | |||
3530 | // Only created by VersionChangeTransaction. | |||
3531 | DeleteIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | |||
3532 | IndexOrObjectStoreId aObjectStoreId, | |||
3533 | IndexOrObjectStoreId aIndexId, const bool aUnique, | |||
3534 | const bool aIsLastIndex); | |||
3535 | ||||
3536 | ~DeleteIndexOp() override = default; | |||
3537 | ||||
3538 | nsresult RemoveReferencesToIndex( | |||
3539 | DatabaseConnection* aConnection, const Key& aObjectDataKey, | |||
3540 | nsTArray<IndexDataValue>& aIndexValues) const; | |||
3541 | ||||
3542 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
3543 | }; | |||
3544 | ||||
3545 | class RenameIndexOp final : public VersionChangeTransactionOp { | |||
3546 | friend class VersionChangeTransaction; | |||
3547 | ||||
3548 | const IndexOrObjectStoreId mObjectStoreId; | |||
3549 | const IndexOrObjectStoreId mIndexId; | |||
3550 | const nsString mNewName; | |||
3551 | ||||
3552 | private: | |||
3553 | // Only created by VersionChangeTransaction. | |||
3554 | RenameIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | |||
3555 | FullIndexMetadata& aMetadata, | |||
3556 | IndexOrObjectStoreId aObjectStoreId) | |||
3557 | : VersionChangeTransactionOp(std::move(aTransaction)), | |||
3558 | mObjectStoreId(aObjectStoreId), | |||
3559 | mIndexId(aMetadata.mCommonMetadata.id()), | |||
3560 | mNewName(aMetadata.mCommonMetadata.name()) { | |||
3561 | MOZ_ASSERT(mIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mIndexId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mIndexId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mIndexId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIndexId" ")" ); do { *((volatile int*)__null) = 3561; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
3562 | } | |||
3563 | ||||
3564 | ~RenameIndexOp() override = default; | |||
3565 | ||||
3566 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
3567 | }; | |||
3568 | ||||
3569 | class NormalTransactionOp : public TransactionDatabaseOperationBase, | |||
3570 | public PBackgroundIDBRequestParent { | |||
3571 | #ifdef DEBUG1 | |||
3572 | bool mResponseSent; | |||
3573 | #endif | |||
3574 | ||||
3575 | public: | |||
3576 | void Cleanup() override; | |||
3577 | ||||
3578 | protected: | |||
3579 | NormalTransactionOp(SafeRefPtr<TransactionBase> aTransaction, | |||
3580 | const int64_t aRequestId) | |||
3581 | : TransactionDatabaseOperationBase(std::move(aTransaction), aRequestId) | |||
3582 | #ifdef DEBUG1 | |||
3583 | , | |||
3584 | mResponseSent(false) | |||
3585 | #endif | |||
3586 | { | |||
3587 | } | |||
3588 | ||||
3589 | ~NormalTransactionOp() override = default; | |||
3590 | ||||
3591 | // An overload of DatabaseOperationBase's function that can avoid doing extra | |||
3592 | // work on non-versionchange transactions. | |||
3593 | mozilla::Result<bool, nsresult> ObjectStoreHasIndexes( | |||
3594 | DatabaseConnection& aConnection, IndexOrObjectStoreId aObjectStoreId, | |||
3595 | bool aMayHaveIndexes); | |||
3596 | ||||
3597 | virtual mozilla::Result<PreprocessParams, nsresult> GetPreprocessParams(); | |||
3598 | ||||
3599 | // Subclasses use this override to set the IPDL response value. | |||
3600 | virtual void GetResponse(RequestResponse& aResponse, | |||
3601 | size_t* aResponseSize) = 0; | |||
3602 | ||||
3603 | private: | |||
3604 | nsresult SendPreprocessInfo() override; | |||
3605 | ||||
3606 | nsresult SendSuccessResult() override; | |||
3607 | ||||
3608 | bool SendFailureResult(nsresult aResultCode) override; | |||
3609 | ||||
3610 | // IPDL methods. | |||
3611 | void ActorDestroy(ActorDestroyReason aWhy) override; | |||
3612 | ||||
3613 | mozilla::ipc::IPCResult RecvContinue( | |||
3614 | const PreprocessResponse& aResponse) final; | |||
3615 | }; | |||
3616 | ||||
3617 | class ObjectStoreAddOrPutRequestOp final : public NormalTransactionOp { | |||
3618 | friend class TransactionBase; | |||
3619 | ||||
3620 | using PersistenceType = mozilla::dom::quota::PersistenceType; | |||
3621 | ||||
3622 | class StoredFileInfo final { | |||
3623 | InitializedOnce<const NotNull<SafeRefPtr<DatabaseFileInfo>>> mFileInfo; | |||
3624 | // Either nothing, a file actor or a non-Blob-backed inputstream to write to | |||
3625 | // disk. | |||
3626 | using FileActorOrInputStream = | |||
3627 | Variant<Nothing, RefPtr<DatabaseFile>, nsCOMPtr<nsIInputStream>>; | |||
3628 | InitializedOnce<const FileActorOrInputStream> mFileActorOrInputStream; | |||
3629 | #ifdef DEBUG1 | |||
3630 | const StructuredCloneFileBase::FileType mType; | |||
3631 | #endif | |||
3632 | void EnsureCipherKey(); | |||
3633 | void AssertInvariants() const; | |||
3634 | ||||
3635 | StoredFileInfo(SafeRefPtr<DatabaseFileInfo> aFileInfo, | |||
3636 | RefPtr<DatabaseFile> aFileActor); | |||
3637 | ||||
3638 | StoredFileInfo(SafeRefPtr<DatabaseFileInfo> aFileInfo, | |||
3639 | nsCOMPtr<nsIInputStream> aInputStream); | |||
3640 | ||||
3641 | public: | |||
3642 | #if defined(NS_BUILD_REFCNT_LOGGING1) | |||
3643 | // Only for MOZ_COUNT_CTOR. | |||
3644 | StoredFileInfo(StoredFileInfo&& aOther) | |||
3645 | : mFileInfo{std::move(aOther.mFileInfo)}, | |||
3646 | mFileActorOrInputStream{std::move(aOther.mFileActorOrInputStream)} | |||
3647 | # ifdef DEBUG1 | |||
3648 | , | |||
3649 | mType{aOther.mType} | |||
3650 | # endif | |||
3651 | { | |||
3652 | MOZ_COUNT_CTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp ::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo" "' is not a class type."); static_assert(!std::is_base_of< nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo> ::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo" , sizeof(*this)); } while (0); | |||
3653 | } | |||
3654 | #else | |||
3655 | StoredFileInfo(StoredFileInfo&&) = default; | |||
3656 | #endif | |||
3657 | ||||
3658 | static StoredFileInfo CreateForBlob(SafeRefPtr<DatabaseFileInfo> aFileInfo, | |||
3659 | RefPtr<DatabaseFile> aFileActor); | |||
3660 | static StoredFileInfo CreateForStructuredClone( | |||
3661 | SafeRefPtr<DatabaseFileInfo> aFileInfo, | |||
3662 | nsCOMPtr<nsIInputStream> aInputStream); | |||
3663 | ||||
3664 | #if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1) | |||
3665 | ~StoredFileInfo() { | |||
3666 | AssertIsOnBackgroundThread(); | |||
3667 | AssertInvariants(); | |||
3668 | ||||
3669 | MOZ_COUNT_DTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp ::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo" "' is not a class type."); static_assert(!std::is_base_of< nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo> ::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo" , sizeof(*this)); } while (0); | |||
3670 | } | |||
3671 | #endif | |||
3672 | ||||
3673 | bool IsValid() const { return static_cast<bool>(mFileInfo); } | |||
3674 | ||||
3675 | const DatabaseFileInfo& GetFileInfo() const { return **mFileInfo; } | |||
3676 | ||||
3677 | bool ShouldCompress() const; | |||
3678 | ||||
3679 | void NotifyWriteSucceeded() const; | |||
3680 | ||||
3681 | using InputStreamResult = | |||
3682 | mozilla::Result<nsCOMPtr<nsIInputStream>, nsresult>; | |||
3683 | InputStreamResult GetInputStream(); | |||
3684 | ||||
3685 | void Serialize(nsString& aText) const; | |||
3686 | }; | |||
3687 | class SCInputStream; | |||
3688 | ||||
3689 | ObjectStoreAddPutParams mParams; | |||
3690 | Maybe<UniqueIndexTable> mUniqueIndexTable; | |||
3691 | ||||
3692 | // This must be non-const so that we can update the mNextAutoIncrementId field | |||
3693 | // if we are modifying an autoIncrement objectStore. | |||
3694 | SafeRefPtr<FullObjectStoreMetadata> mMetadata; | |||
3695 | ||||
3696 | nsTArray<StoredFileInfo> mStoredFileInfos; | |||
3697 | ||||
3698 | Key mResponse; | |||
3699 | const OriginMetadata mOriginMetadata; | |||
3700 | const PersistenceType mPersistenceType; | |||
3701 | const bool mOverwrite; | |||
3702 | bool mObjectStoreMayHaveIndexes; | |||
3703 | bool mDataOverThreshold; | |||
3704 | ||||
3705 | private: | |||
3706 | // Only created by TransactionBase. | |||
3707 | ObjectStoreAddOrPutRequestOp(SafeRefPtr<TransactionBase> aTransaction, | |||
3708 | const int64_t aRequestId, | |||
3709 | RequestParams&& aParams); | |||
3710 | ||||
3711 | ~ObjectStoreAddOrPutRequestOp() override = default; | |||
3712 | ||||
3713 | nsresult RemoveOldIndexDataValues(DatabaseConnection* aConnection); | |||
3714 | ||||
3715 | bool Init(TransactionBase& aTransaction) override; | |||
3716 | ||||
3717 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
3718 | ||||
3719 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | |||
3720 | ||||
3721 | void Cleanup() override; | |||
3722 | }; | |||
3723 | ||||
3724 | void ObjectStoreAddOrPutRequestOp::StoredFileInfo::AssertInvariants() const { | |||
3725 | // The only allowed types are eStructuredClone, eBlob and eMutableFile. | |||
3726 | MOZ_ASSERT(StructuredCloneFileBase::eStructuredClone == mType ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase ::eMutableFile == mType)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase ::eMutableFile == mType))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3728); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType" ")"); do { *((volatile int*)__null) = 3728; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
3727 | StructuredCloneFileBase::eBlob == mType ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase ::eMutableFile == mType)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase ::eMutableFile == mType))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3728); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType" ")"); do { *((volatile int*)__null) = 3728; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
3728 | StructuredCloneFileBase::eMutableFile == mType)do { static_assert( mozilla::detail::AssertionConditionType< decltype(StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase ::eMutableFile == mType)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase ::eMutableFile == mType))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3728); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType" ")"); do { *((volatile int*)__null) = 3728; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
3729 | ||||
3730 | // mFileInfo and a file actor in mFileActorOrInputStream are present until | |||
3731 | // the object is moved away, but an inputStream in mFileActorOrInputStream | |||
3732 | // can be released early. | |||
3733 | MOZ_ASSERT_IF(static_cast<bool>(mFileActorOrInputStream) &&do { if (static_cast<bool>(mFileActorOrInputStream) && mFileActorOrInputStream->is<RefPtr<DatabaseFile>> ()) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(static_cast<bool>(mFileInfo))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(static_cast<bool>(mFileInfo)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("static_cast<bool>(mFileInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3735); AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)" ")"); do { *((volatile int*)__null) = 3735; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
3734 | mFileActorOrInputStream->is<RefPtr<DatabaseFile>>(),do { if (static_cast<bool>(mFileActorOrInputStream) && mFileActorOrInputStream->is<RefPtr<DatabaseFile>> ()) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(static_cast<bool>(mFileInfo))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(static_cast<bool>(mFileInfo)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("static_cast<bool>(mFileInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3735); AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)" ")"); do { *((volatile int*)__null) = 3735; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
3735 | static_cast<bool>(mFileInfo))do { if (static_cast<bool>(mFileActorOrInputStream) && mFileActorOrInputStream->is<RefPtr<DatabaseFile>> ()) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(static_cast<bool>(mFileInfo))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(static_cast<bool>(mFileInfo)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("static_cast<bool>(mFileInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3735); AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)" ")"); do { *((volatile int*)__null) = 3735; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
3736 | ||||
3737 | if (mFileInfo) { | |||
3738 | // In a non-moved StoredFileInfo, one of the following is true: | |||
3739 | // - This was an overflow structured clone (eStructuredClone) and | |||
3740 | // storedFileInfo.mFileActorOrInputStream CAN be a non-nullptr input | |||
3741 | // stream (but that might have been release by ReleaseInputStream). | |||
3742 | MOZ_ASSERT_IF(do { if (StructuredCloneFileBase::eStructuredClone == mType) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mFileActorOrInputStream || (mFileActorOrInputStream ->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>()))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mFileActorOrInputStream || (mFileActorOrInputStream->is <nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" ")"); do { *((volatile int*)__null) = 3746; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
3743 | StructuredCloneFileBase::eStructuredClone == mType,do { if (StructuredCloneFileBase::eStructuredClone == mType) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mFileActorOrInputStream || (mFileActorOrInputStream ->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>()))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mFileActorOrInputStream || (mFileActorOrInputStream->is <nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" ")"); do { *((volatile int*)__null) = 3746; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
3744 | !mFileActorOrInputStream ||do { if (StructuredCloneFileBase::eStructuredClone == mType) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mFileActorOrInputStream || (mFileActorOrInputStream ->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>()))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mFileActorOrInputStream || (mFileActorOrInputStream->is <nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" ")"); do { *((volatile int*)__null) = 3746; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
3745 | (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() &&do { if (StructuredCloneFileBase::eStructuredClone == mType) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mFileActorOrInputStream || (mFileActorOrInputStream ->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>()))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mFileActorOrInputStream || (mFileActorOrInputStream->is <nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" ")"); do { *((volatile int*)__null) = 3746; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
3746 | mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>()))do { if (StructuredCloneFileBase::eStructuredClone == mType) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mFileActorOrInputStream || (mFileActorOrInputStream ->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>()))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mFileActorOrInputStream || (mFileActorOrInputStream->is <nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream ->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" ")"); do { *((volatile int*)__null) = 3746; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
3747 | ||||
3748 | // - This is a reference to a Blob (eBlob) that may or may not have | |||
3749 | // already been written to disk. storedFileInfo.mFileActorOrInputStream | |||
3750 | // MUST be a non-null file actor, but its GetInputStream may return | |||
3751 | // nullptr (so don't assert on that). | |||
3752 | MOZ_ASSERT_IF(StructuredCloneFileBase::eBlob == mType,do { if (StructuredCloneFileBase::eBlob == mType) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(mFileActorOrInputStream ->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream ->as<RefPtr<DatabaseFile>>())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileActorOrInputStream-> is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream ->as<RefPtr<DatabaseFile>>()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3754); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()" ")"); do { *((volatile int*)__null) = 3754; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
3753 | mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() &&do { if (StructuredCloneFileBase::eBlob == mType) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(mFileActorOrInputStream ->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream ->as<RefPtr<DatabaseFile>>())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileActorOrInputStream-> is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream ->as<RefPtr<DatabaseFile>>()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3754); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()" ")"); do { *((volatile int*)__null) = 3754; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
3754 | mFileActorOrInputStream->as<RefPtr<DatabaseFile>>())do { if (StructuredCloneFileBase::eBlob == mType) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(mFileActorOrInputStream ->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream ->as<RefPtr<DatabaseFile>>())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileActorOrInputStream-> is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream ->as<RefPtr<DatabaseFile>>()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3754); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()" ")"); do { *((volatile int*)__null) = 3754; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
3755 | ||||
3756 | // - It's a mutable file (eMutableFile). No writing will be performed, | |||
3757 | // and storedFileInfo.mFileActorOrInputStream is Nothing. | |||
3758 | MOZ_ASSERT_IF(StructuredCloneFileBase::eMutableFile == mType,do { if (StructuredCloneFileBase::eMutableFile == mType) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileActorOrInputStream->is<Nothing>())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mFileActorOrInputStream->is<Nothing>()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<Nothing>()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3759); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<Nothing>()" ")"); do { *((volatile int*)__null) = 3759; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
3759 | mFileActorOrInputStream->is<Nothing>())do { if (StructuredCloneFileBase::eMutableFile == mType) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileActorOrInputStream->is<Nothing>())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mFileActorOrInputStream->is<Nothing>()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<Nothing>()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3759); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<Nothing>()" ")"); do { *((volatile int*)__null) = 3759; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
3760 | } | |||
3761 | } | |||
3762 | ||||
3763 | void ObjectStoreAddOrPutRequestOp::StoredFileInfo::EnsureCipherKey() { | |||
3764 | const auto& fileInfo = GetFileInfo(); | |||
3765 | const auto& fileManager = fileInfo.Manager(); | |||
3766 | ||||
3767 | // No need to generate cipher keys if we are not in PBM | |||
3768 | if (!fileManager.IsInPrivateBrowsingMode()) { | |||
3769 | return; | |||
3770 | } | |||
3771 | ||||
3772 | nsCString keyId; | |||
3773 | keyId.AppendInt(fileInfo.Id()); | |||
3774 | ||||
3775 | fileManager.MutableCipherKeyManagerRef().Ensure(keyId); | |||
3776 | } | |||
3777 | ||||
3778 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::StoredFileInfo( | |||
3779 | SafeRefPtr<DatabaseFileInfo> aFileInfo, RefPtr<DatabaseFile> aFileActor) | |||
3780 | : mFileInfo{WrapNotNull(std::move(aFileInfo))}, | |||
3781 | mFileActorOrInputStream{std::move(aFileActor)} | |||
3782 | #ifdef DEBUG1 | |||
3783 | , | |||
3784 | mType{StructuredCloneFileBase::eBlob} | |||
3785 | #endif | |||
3786 | { | |||
3787 | AssertIsOnBackgroundThread(); | |||
3788 | AssertInvariants(); | |||
3789 | ||||
3790 | EnsureCipherKey(); | |||
3791 | MOZ_COUNT_CTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp ::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo" "' is not a class type."); static_assert(!std::is_base_of< nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo> ::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo" , sizeof(*this)); } while (0); | |||
3792 | } | |||
3793 | ||||
3794 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::StoredFileInfo( | |||
3795 | SafeRefPtr<DatabaseFileInfo> aFileInfo, | |||
3796 | nsCOMPtr<nsIInputStream> aInputStream) | |||
3797 | : mFileInfo{WrapNotNull(std::move(aFileInfo))}, | |||
3798 | mFileActorOrInputStream{std::move(aInputStream)} | |||
3799 | #ifdef DEBUG1 | |||
3800 | , | |||
3801 | mType{StructuredCloneFileBase::eStructuredClone} | |||
3802 | #endif | |||
3803 | { | |||
3804 | AssertIsOnBackgroundThread(); | |||
3805 | AssertInvariants(); | |||
3806 | ||||
3807 | EnsureCipherKey(); | |||
3808 | MOZ_COUNT_CTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp ::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo" "' is not a class type."); static_assert(!std::is_base_of< nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo> ::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo" , sizeof(*this)); } while (0); | |||
3809 | } | |||
3810 | ||||
3811 | ObjectStoreAddOrPutRequestOp::StoredFileInfo | |||
3812 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::CreateForBlob( | |||
3813 | SafeRefPtr<DatabaseFileInfo> aFileInfo, RefPtr<DatabaseFile> aFileActor) { | |||
3814 | return {std::move(aFileInfo), std::move(aFileActor)}; | |||
3815 | } | |||
3816 | ||||
3817 | ObjectStoreAddOrPutRequestOp::StoredFileInfo | |||
3818 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::CreateForStructuredClone( | |||
3819 | SafeRefPtr<DatabaseFileInfo> aFileInfo, | |||
3820 | nsCOMPtr<nsIInputStream> aInputStream) { | |||
3821 | return {std::move(aFileInfo), std::move(aInputStream)}; | |||
3822 | } | |||
3823 | ||||
3824 | bool ObjectStoreAddOrPutRequestOp::StoredFileInfo::ShouldCompress() const { | |||
3825 | // Must not be called after moving. | |||
3826 | MOZ_ASSERT(IsValid())do { static_assert( mozilla::detail::AssertionConditionType< decltype(IsValid())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(IsValid()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("IsValid()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")" ); do { *((volatile int*)__null) = 3826; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
3827 | ||||
3828 | // Compression is only necessary for eStructuredClone, i.e. when | |||
3829 | // mFileActorOrInputStream stored an input stream. However, this is only | |||
3830 | // called after GetInputStream, when mFileActorOrInputStream has been | |||
3831 | // cleared, which is only possible for this type. | |||
3832 | const bool res = !mFileActorOrInputStream; | |||
3833 | MOZ_ASSERT(res == (StructuredCloneFileBase::eStructuredClone == mType))do { static_assert( mozilla::detail::AssertionConditionType< decltype(res == (StructuredCloneFileBase::eStructuredClone == mType))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(res == (StructuredCloneFileBase::eStructuredClone == mType)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("res == (StructuredCloneFileBase::eStructuredClone == mType)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3833); AnnotateMozCrashReason("MOZ_ASSERT" "(" "res == (StructuredCloneFileBase::eStructuredClone == mType)" ")"); do { *((volatile int*)__null) = 3833; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
3834 | return res; | |||
3835 | } | |||
3836 | ||||
3837 | void ObjectStoreAddOrPutRequestOp::StoredFileInfo::NotifyWriteSucceeded() | |||
3838 | const { | |||
3839 | MOZ_ASSERT(IsValid())do { static_assert( mozilla::detail::AssertionConditionType< decltype(IsValid())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(IsValid()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("IsValid()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3839); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")" ); do { *((volatile int*)__null) = 3839; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
3840 | ||||
3841 | // For eBlob, clear the blob implementation. | |||
3842 | if (mFileActorOrInputStream && | |||
3843 | mFileActorOrInputStream->is<RefPtr<DatabaseFile>>()) { | |||
3844 | mFileActorOrInputStream->as<RefPtr<DatabaseFile>>() | |||
3845 | ->WriteSucceededClearBlobImpl(); | |||
3846 | } | |||
3847 | ||||
3848 | // For the other types, no action is necessary. | |||
3849 | } | |||
3850 | ||||
3851 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::InputStreamResult | |||
3852 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::GetInputStream() { | |||
3853 | if (!mFileActorOrInputStream) { | |||
3854 | MOZ_ASSERT(StructuredCloneFileBase::eStructuredClone == mType)do { static_assert( mozilla::detail::AssertionConditionType< decltype(StructuredCloneFileBase::eStructuredClone == mType)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(StructuredCloneFileBase::eStructuredClone == mType)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("StructuredCloneFileBase::eStructuredClone == mType" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3854); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType" ")"); do { *((volatile int*)__null) = 3854; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
3855 | return nsCOMPtr<nsIInputStream>{}; | |||
3856 | } | |||
3857 | ||||
3858 | // For the different cases, see also the comments in AssertInvariants. | |||
3859 | return mFileActorOrInputStream->match( | |||
3860 | [](const Nothing&) -> InputStreamResult { | |||
3861 | return nsCOMPtr<nsIInputStream>{}; | |||
3862 | }, | |||
3863 | [](const RefPtr<DatabaseFile>& databaseActor) -> InputStreamResult { | |||
3864 | ErrorResult rv; | |||
3865 | auto inputStream = databaseActor->GetInputStream(rv); | |||
3866 | if (NS_WARN_IF(rv.Failed())NS_warn_if_impl(rv.Failed(), "rv.Failed()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3866)) { | |||
3867 | return Err(rv.StealNSResult()); | |||
3868 | } | |||
3869 | ||||
3870 | return inputStream; | |||
3871 | }, | |||
3872 | [this](const nsCOMPtr<nsIInputStream>& inputStream) -> InputStreamResult { | |||
3873 | auto res = inputStream; | |||
3874 | // destroy() clears the inputStream parameter, so we needed to make a | |||
3875 | // copy before | |||
3876 | mFileActorOrInputStream.destroy(); | |||
3877 | AssertInvariants(); | |||
3878 | return res; | |||
3879 | }); | |||
3880 | } | |||
3881 | ||||
3882 | void ObjectStoreAddOrPutRequestOp::StoredFileInfo::Serialize( | |||
3883 | nsString& aText) const { | |||
3884 | AssertInvariants(); | |||
3885 | MOZ_ASSERT(IsValid())do { static_assert( mozilla::detail::AssertionConditionType< decltype(IsValid())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(IsValid()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("IsValid()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 3885); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")" ); do { *((volatile int*)__null) = 3885; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
3886 | ||||
3887 | const int64_t id = (*mFileInfo)->Id(); | |||
3888 | ||||
3889 | auto structuredCloneHandler = [&aText, id](const nsCOMPtr<nsIInputStream>&) { | |||
3890 | // eStructuredClone | |||
3891 | aText.Append('.'); | |||
3892 | aText.AppendInt(id); | |||
3893 | }; | |||
3894 | ||||
3895 | // If mFileActorOrInputStream was moved, we had an inputStream before. | |||
3896 | if (!mFileActorOrInputStream) { | |||
3897 | structuredCloneHandler(nullptr); | |||
3898 | return; | |||
3899 | } | |||
3900 | ||||
3901 | // This encoding is parsed in DeserializeStructuredCloneFile. | |||
3902 | mFileActorOrInputStream->match( | |||
3903 | [&aText, id](const Nothing&) { | |||
3904 | // eMutableFile | |||
3905 | aText.AppendInt(-id); | |||
3906 | }, | |||
3907 | [&aText, id](const RefPtr<DatabaseFile>&) { | |||
3908 | // eBlob | |||
3909 | aText.AppendInt(id); | |||
3910 | }, | |||
3911 | structuredCloneHandler); | |||
3912 | } | |||
3913 | ||||
3914 | class ObjectStoreAddOrPutRequestOp::SCInputStream final | |||
3915 | : public nsIInputStream { | |||
3916 | const JSStructuredCloneData& mData; | |||
3917 | JSStructuredCloneData::Iterator mIter; | |||
3918 | ||||
3919 | public: | |||
3920 | explicit SCInputStream(const JSStructuredCloneData& aData) | |||
3921 | : mData(aData), mIter(aData.Start()) {} | |||
3922 | ||||
3923 | private: | |||
3924 | virtual ~SCInputStream() = default; | |||
3925 | ||||
3926 | NS_DECL_THREADSAFE_ISUPPORTSpublic: virtual nsresult QueryInterface(const nsIID& aIID , void** aInstancePtr) override; virtual MozExternalRefCountType AddRef(void) override; virtual MozExternalRefCountType Release (void) override; using HasThreadSafeRefCnt = std::true_type; protected : ::mozilla::ThreadSafeAutoRefCnt mRefCnt; nsAutoOwningThread _mOwningThread; public: | |||
3927 | NS_DECL_NSIINPUTSTREAMvirtual nsresult Close(void) override; virtual nsresult Available (uint64_t *_retval) override; virtual nsresult StreamStatus(void ) override; virtual nsresult Read(char * aBuf, uint32_t aCount , uint32_t *_retval) override; virtual nsresult ReadSegments( nsWriteSegmentFun aWriter, void * aClosure, uint32_t aCount, uint32_t *_retval) override; virtual nsresult IsNonBlocking(bool *_retval ) override; | |||
3928 | }; | |||
3929 | ||||
3930 | class ObjectStoreGetRequestOp final : public NormalTransactionOp { | |||
3931 | friend class TransactionBase; | |||
3932 | ||||
3933 | const IndexOrObjectStoreId mObjectStoreId; | |||
3934 | SafeRefPtr<Database> mDatabase; | |||
3935 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | |||
3936 | AutoTArray<StructuredCloneReadInfoParent, 1> mResponse; | |||
3937 | PBackgroundParent* mBackgroundParent; | |||
3938 | uint32_t mPreprocessInfoCount; | |||
3939 | const uint32_t mLimit; | |||
3940 | const bool mGetAll; | |||
3941 | ||||
3942 | private: | |||
3943 | // Only created by TransactionBase. | |||
3944 | ObjectStoreGetRequestOp(SafeRefPtr<TransactionBase> aTransaction, | |||
3945 | const int64_t aRequestId, | |||
3946 | const RequestParams& aParams, bool aGetAll); | |||
3947 | ||||
3948 | ~ObjectStoreGetRequestOp() override = default; | |||
3949 | ||||
3950 | template <typename T> | |||
3951 | mozilla::Result<T, nsresult> ConvertResponse( | |||
3952 | StructuredCloneReadInfoParent&& aInfo); | |||
3953 | ||||
3954 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
3955 | ||||
3956 | bool HasPreprocessInfo() override; | |||
3957 | ||||
3958 | mozilla::Result<PreprocessParams, nsresult> GetPreprocessParams() override; | |||
3959 | ||||
3960 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | |||
3961 | }; | |||
3962 | ||||
3963 | class ObjectStoreGetKeyRequestOp final : public NormalTransactionOp { | |||
3964 | friend class TransactionBase; | |||
3965 | ||||
3966 | const IndexOrObjectStoreId mObjectStoreId; | |||
3967 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | |||
3968 | const uint32_t mLimit; | |||
3969 | const bool mGetAll; | |||
3970 | nsTArray<Key> mResponse; | |||
3971 | ||||
3972 | private: | |||
3973 | // Only created by TransactionBase. | |||
3974 | ObjectStoreGetKeyRequestOp(SafeRefPtr<TransactionBase> aTransaction, | |||
3975 | const int64_t aRequestId, | |||
3976 | const RequestParams& aParams, bool aGetAll); | |||
3977 | ||||
3978 | ~ObjectStoreGetKeyRequestOp() override = default; | |||
3979 | ||||
3980 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
3981 | ||||
3982 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | |||
3983 | }; | |||
3984 | ||||
3985 | class ObjectStoreDeleteRequestOp final : public NormalTransactionOp { | |||
3986 | friend class TransactionBase; | |||
3987 | ||||
3988 | const ObjectStoreDeleteParams mParams; | |||
3989 | ObjectStoreDeleteResponse mResponse; | |||
3990 | bool mObjectStoreMayHaveIndexes; | |||
3991 | ||||
3992 | private: | |||
3993 | ObjectStoreDeleteRequestOp(SafeRefPtr<TransactionBase> aTransaction, | |||
3994 | const int64_t aRequestId, | |||
3995 | const ObjectStoreDeleteParams& aParams); | |||
3996 | ||||
3997 | ~ObjectStoreDeleteRequestOp() override = default; | |||
3998 | ||||
3999 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
4000 | ||||
4001 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override { | |||
4002 | aResponse = std::move(mResponse); | |||
4003 | *aResponseSize = 0; | |||
4004 | } | |||
4005 | }; | |||
4006 | ||||
4007 | class ObjectStoreClearRequestOp final : public NormalTransactionOp { | |||
4008 | friend class TransactionBase; | |||
4009 | ||||
4010 | const ObjectStoreClearParams mParams; | |||
4011 | ObjectStoreClearResponse mResponse; | |||
4012 | bool mObjectStoreMayHaveIndexes; | |||
4013 | ||||
4014 | private: | |||
4015 | ObjectStoreClearRequestOp(SafeRefPtr<TransactionBase> aTransaction, | |||
4016 | const int64_t aRequestId, | |||
4017 | const ObjectStoreClearParams& aParams); | |||
4018 | ||||
4019 | ~ObjectStoreClearRequestOp() override = default; | |||
4020 | ||||
4021 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
4022 | ||||
4023 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override { | |||
4024 | aResponse = std::move(mResponse); | |||
4025 | *aResponseSize = 0; | |||
4026 | } | |||
4027 | }; | |||
4028 | ||||
4029 | class ObjectStoreCountRequestOp final : public NormalTransactionOp { | |||
4030 | friend class TransactionBase; | |||
4031 | ||||
4032 | const ObjectStoreCountParams mParams; | |||
4033 | ObjectStoreCountResponse mResponse; | |||
4034 | ||||
4035 | private: | |||
4036 | ObjectStoreCountRequestOp(SafeRefPtr<TransactionBase> aTransaction, | |||
4037 | const int64_t aRequestId, | |||
4038 | const ObjectStoreCountParams& aParams) | |||
4039 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | |||
4040 | mParams(aParams) {} | |||
4041 | ||||
4042 | ~ObjectStoreCountRequestOp() override = default; | |||
4043 | ||||
4044 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
4045 | ||||
4046 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override { | |||
4047 | aResponse = std::move(mResponse); | |||
4048 | *aResponseSize = sizeof(uint64_t); | |||
4049 | } | |||
4050 | }; | |||
4051 | ||||
4052 | class IndexRequestOpBase : public NormalTransactionOp { | |||
4053 | protected: | |||
4054 | const SafeRefPtr<FullIndexMetadata> mMetadata; | |||
4055 | ||||
4056 | protected: | |||
4057 | IndexRequestOpBase(SafeRefPtr<TransactionBase> aTransaction, | |||
4058 | const int64_t aRequestId, const RequestParams& aParams) | |||
4059 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | |||
4060 | mMetadata(IndexMetadataForParams(Transaction(), aParams)) {} | |||
4061 | ||||
4062 | ~IndexRequestOpBase() override = default; | |||
4063 | ||||
4064 | private: | |||
4065 | static SafeRefPtr<FullIndexMetadata> IndexMetadataForParams( | |||
4066 | const TransactionBase& aTransaction, const RequestParams& aParams); | |||
4067 | }; | |||
4068 | ||||
4069 | class IndexGetRequestOp final : public IndexRequestOpBase { | |||
4070 | friend class TransactionBase; | |||
4071 | ||||
4072 | SafeRefPtr<Database> mDatabase; | |||
4073 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | |||
4074 | AutoTArray<StructuredCloneReadInfoParent, 1> mResponse; | |||
4075 | PBackgroundParent* mBackgroundParent; | |||
4076 | const uint32_t mLimit; | |||
4077 | const bool mGetAll; | |||
4078 | ||||
4079 | private: | |||
4080 | // Only created by TransactionBase. | |||
4081 | IndexGetRequestOp(SafeRefPtr<TransactionBase> aTransaction, | |||
4082 | const int64_t aRequestId, const RequestParams& aParams, | |||
4083 | bool aGetAll); | |||
4084 | ||||
4085 | ~IndexGetRequestOp() override = default; | |||
4086 | ||||
4087 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
4088 | ||||
4089 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | |||
4090 | }; | |||
4091 | ||||
4092 | class IndexGetKeyRequestOp final : public IndexRequestOpBase { | |||
4093 | friend class TransactionBase; | |||
4094 | ||||
4095 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | |||
4096 | AutoTArray<Key, 1> mResponse; | |||
4097 | const uint32_t mLimit; | |||
4098 | const bool mGetAll; | |||
4099 | ||||
4100 | private: | |||
4101 | // Only created by TransactionBase. | |||
4102 | IndexGetKeyRequestOp(SafeRefPtr<TransactionBase> aTransaction, | |||
4103 | const int64_t aRequestId, const RequestParams& aParams, | |||
4104 | bool aGetAll); | |||
4105 | ||||
4106 | ~IndexGetKeyRequestOp() override = default; | |||
4107 | ||||
4108 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
4109 | ||||
4110 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | |||
4111 | }; | |||
4112 | ||||
4113 | class IndexCountRequestOp final : public IndexRequestOpBase { | |||
4114 | friend class TransactionBase; | |||
4115 | ||||
4116 | const IndexCountParams mParams; | |||
4117 | IndexCountResponse mResponse; | |||
4118 | ||||
4119 | private: | |||
4120 | // Only created by TransactionBase. | |||
4121 | IndexCountRequestOp(SafeRefPtr<TransactionBase> aTransaction, | |||
4122 | const int64_t aRequestId, const RequestParams& aParams) | |||
4123 | : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams), | |||
4124 | mParams(aParams.get_IndexCountParams()) {} | |||
4125 | ||||
4126 | ~IndexCountRequestOp() override = default; | |||
4127 | ||||
4128 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
4129 | ||||
4130 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override { | |||
4131 | aResponse = std::move(mResponse); | |||
4132 | *aResponseSize = sizeof(uint64_t); | |||
4133 | } | |||
4134 | }; | |||
4135 | ||||
4136 | template <IDBCursorType CursorType> | |||
4137 | class Cursor; | |||
4138 | ||||
4139 | constexpr IDBCursorType ToKeyOnlyType(const IDBCursorType aType) { | |||
4140 | MOZ_ASSERT(aType == IDBCursorType::ObjectStore ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType ::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType ::Index || aType == IDBCursorType::IndexKey))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4142); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { *((volatile int*)__null) = 4142; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
4141 | aType == IDBCursorType::ObjectStoreKey ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType ::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType ::Index || aType == IDBCursorType::IndexKey))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4142); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { *((volatile int*)__null) = 4142; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
4142 | aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType ::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType ::Index || aType == IDBCursorType::IndexKey))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4142); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { *((volatile int*)__null) = 4142; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4143 | switch (aType) { | |||
4144 | case IDBCursorType::ObjectStore: | |||
4145 | [[fallthrough]]; | |||
4146 | case IDBCursorType::ObjectStoreKey: | |||
4147 | return IDBCursorType::ObjectStoreKey; | |||
4148 | case IDBCursorType::Index: | |||
4149 | [[fallthrough]]; | |||
4150 | case IDBCursorType::IndexKey: | |||
4151 | return IDBCursorType::IndexKey; | |||
4152 | } | |||
4153 | } | |||
4154 | ||||
4155 | template <IDBCursorType CursorType> | |||
4156 | using CursorPosition = CursorData<ToKeyOnlyType(CursorType)>; | |||
4157 | ||||
4158 | #ifdef DEBUG1 | |||
4159 | constexpr indexedDB::OpenCursorParams::Type ToOpenCursorParamsType( | |||
4160 | const IDBCursorType aType) { | |||
4161 | MOZ_ASSERT(aType == IDBCursorType::ObjectStore ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType ::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType ::Index || aType == IDBCursorType::IndexKey))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4163); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { *((volatile int*)__null) = 4163; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
4162 | aType == IDBCursorType::ObjectStoreKey ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType ::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType ::Index || aType == IDBCursorType::IndexKey))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4163); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { *((volatile int*)__null) = 4163; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
4163 | aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType ::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType ::Index || aType == IDBCursorType::IndexKey))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4163); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { *((volatile int*)__null) = 4163; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4164 | switch (aType) { | |||
4165 | case IDBCursorType::ObjectStore: | |||
4166 | return indexedDB::OpenCursorParams::TObjectStoreOpenCursorParams; | |||
4167 | case IDBCursorType::ObjectStoreKey: | |||
4168 | return indexedDB::OpenCursorParams::TObjectStoreOpenKeyCursorParams; | |||
4169 | case IDBCursorType::Index: | |||
4170 | return indexedDB::OpenCursorParams::TIndexOpenCursorParams; | |||
4171 | case IDBCursorType::IndexKey: | |||
4172 | return indexedDB::OpenCursorParams::TIndexOpenKeyCursorParams; | |||
4173 | } | |||
4174 | } | |||
4175 | #endif | |||
4176 | ||||
4177 | class CursorBase : public PBackgroundIDBCursorParent { | |||
4178 | friend class TransactionBase; | |||
4179 | template <IDBCursorType CursorType> | |||
4180 | friend class CommonOpenOpHelper; | |||
4181 | ||||
4182 | protected: | |||
4183 | const SafeRefPtr<TransactionBase> mTransaction; | |||
4184 | ||||
4185 | // This should only be touched on the PBackground thread to check whether | |||
4186 | // the objectStore has been deleted. Holding these saves a hash lookup for | |||
4187 | // every call to continue()/advance(). | |||
4188 | InitializedOnce<const NotNull<SafeRefPtr<FullObjectStoreMetadata>>> | |||
4189 | mObjectStoreMetadata; | |||
4190 | ||||
4191 | const IndexOrObjectStoreId mObjectStoreId; | |||
4192 | ||||
4193 | LazyInitializedOnce<const Key> | |||
4194 | mLocaleAwareRangeBound; ///< If the cursor is based on a key range, the | |||
4195 | ///< bound in the direction of iteration (e.g. | |||
4196 | ///< the upper bound in case of mDirection == | |||
4197 | ///< NEXT). If the cursor is based on a key, it | |||
4198 | ///< is unset. If mLocale is set, this was | |||
4199 | ///< converted to mLocale. | |||
4200 | ||||
4201 | const Direction mDirection; | |||
4202 | ||||
4203 | const int32_t mMaxExtraCount; | |||
4204 | ||||
4205 | const bool mIsSameProcessActor; | |||
4206 | ||||
4207 | struct ConstructFromTransactionBase {}; | |||
4208 | ||||
4209 | public: | |||
4210 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::CursorBase,public: MozExternalRefCountType AddRef(void) final { static_assert (!std::is_destructible_v<mozilla::dom::indexedDB::CursorBase >, "Reference-counted class " "mozilla::dom::indexedDB::CursorBase" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4211); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 4211; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this ), (count), ("mozilla::dom::indexedDB::CursorBase"), (uint32_t )(sizeof(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release(void) final { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4211); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 4211 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("mozilla::dom::indexedDB::CursorBase")); if (count == 0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt = std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; public: | |||
4211 | final)public: MozExternalRefCountType AddRef(void) final { static_assert (!std::is_destructible_v<mozilla::dom::indexedDB::CursorBase >, "Reference-counted class " "mozilla::dom::indexedDB::CursorBase" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4211); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 4211; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this ), (count), ("mozilla::dom::indexedDB::CursorBase"), (uint32_t )(sizeof(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release(void) final { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4211); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 4211 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("mozilla::dom::indexedDB::CursorBase")); if (count == 0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt = std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; public: | |||
4212 | ||||
4213 | CursorBase(SafeRefPtr<TransactionBase> aTransaction, | |||
4214 | SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata, | |||
4215 | Direction aDirection, | |||
4216 | ConstructFromTransactionBase aConstructionTag); | |||
4217 | ||||
4218 | protected: | |||
4219 | // Reference counted. | |||
4220 | ~CursorBase() override { MOZ_ASSERT(!mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mObjectStoreMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mObjectStoreMetadata))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!mObjectStoreMetadata" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4220); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStoreMetadata" ")"); do { *((volatile int*)__null) = 4220; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | |||
4221 | ||||
4222 | private: | |||
4223 | virtual bool Start(const int64_t aRequestId, | |||
4224 | const OpenCursorParams& aParams) = 0; | |||
4225 | }; | |||
4226 | ||||
4227 | class IndexCursorBase : public CursorBase { | |||
4228 | public: | |||
4229 | bool IsLocaleAware() const { return !mLocale.IsEmpty(); } | |||
4230 | ||||
4231 | IndexCursorBase(SafeRefPtr<TransactionBase> aTransaction, | |||
4232 | SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata, | |||
4233 | SafeRefPtr<FullIndexMetadata> aIndexMetadata, | |||
4234 | Direction aDirection, | |||
4235 | ConstructFromTransactionBase aConstructionTag) | |||
4236 | : CursorBase{std::move(aTransaction), std::move(aObjectStoreMetadata), | |||
4237 | aDirection, aConstructionTag}, | |||
4238 | mIndexMetadata(WrapNotNull(std::move(aIndexMetadata))), | |||
4239 | mIndexId((*mIndexMetadata)->mCommonMetadata.id()), | |||
4240 | mUniqueIndex((*mIndexMetadata)->mCommonMetadata.unique()), | |||
4241 | mLocale((*mIndexMetadata)->mCommonMetadata.locale()) {} | |||
4242 | ||||
4243 | protected: | |||
4244 | IndexOrObjectStoreId Id() const { return mIndexId; } | |||
4245 | ||||
4246 | // This should only be touched on the PBackground thread to check whether | |||
4247 | // the index has been deleted. Holding these saves a hash lookup for every | |||
4248 | // call to continue()/advance(). | |||
4249 | InitializedOnce<const NotNull<SafeRefPtr<FullIndexMetadata>>> mIndexMetadata; | |||
4250 | const IndexOrObjectStoreId mIndexId; | |||
4251 | const bool mUniqueIndex; | |||
4252 | const nsCString | |||
4253 | mLocale; ///< The locale if the cursor is locale-aware, otherwise empty. | |||
4254 | ||||
4255 | struct ContinueQueries { | |||
4256 | nsCString mContinueQuery; | |||
4257 | nsCString mContinueToQuery; | |||
4258 | nsCString mContinuePrimaryKeyQuery; | |||
4259 | ||||
4260 | const nsACString& GetContinueQuery(const bool hasContinueKey, | |||
4261 | const bool hasContinuePrimaryKey) const { | |||
4262 | return hasContinuePrimaryKey ? mContinuePrimaryKeyQuery | |||
4263 | : hasContinueKey ? mContinueToQuery | |||
4264 | : mContinueQuery; | |||
4265 | } | |||
4266 | }; | |||
4267 | }; | |||
4268 | ||||
4269 | class ObjectStoreCursorBase : public CursorBase { | |||
4270 | public: | |||
4271 | using CursorBase::CursorBase; | |||
4272 | ||||
4273 | static constexpr bool IsLocaleAware() { return false; } | |||
4274 | ||||
4275 | protected: | |||
4276 | IndexOrObjectStoreId Id() const { return mObjectStoreId; } | |||
4277 | ||||
4278 | struct ContinueQueries { | |||
4279 | nsCString mContinueQuery; | |||
4280 | nsCString mContinueToQuery; | |||
4281 | ||||
4282 | const nsACString& GetContinueQuery(const bool hasContinueKey, | |||
4283 | const bool hasContinuePrimaryKey) const { | |||
4284 | MOZ_ASSERT(!hasContinuePrimaryKey)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!hasContinuePrimaryKey)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!hasContinuePrimaryKey))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!hasContinuePrimaryKey" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4284); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasContinuePrimaryKey" ")"); do { *((volatile int*)__null) = 4284; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4285 | return hasContinueKey ? mContinueToQuery : mContinueQuery; | |||
4286 | } | |||
4287 | }; | |||
4288 | }; | |||
4289 | ||||
4290 | using FilesArray = nsTArray<nsTArray<StructuredCloneFileParent>>; | |||
4291 | ||||
4292 | struct PseudoFilesArray { | |||
4293 | static constexpr bool IsEmpty() { return true; } | |||
4294 | ||||
4295 | static constexpr void Clear() {} | |||
4296 | }; | |||
4297 | ||||
4298 | template <IDBCursorType CursorType> | |||
4299 | using FilesArrayT = | |||
4300 | std::conditional_t<!CursorTypeTraits<CursorType>::IsKeyOnlyCursor, | |||
4301 | FilesArray, PseudoFilesArray>; | |||
4302 | ||||
4303 | class ValueCursorBase { | |||
4304 | friend struct ValuePopulateResponseHelper<true>; | |||
4305 | friend struct ValuePopulateResponseHelper<false>; | |||
4306 | ||||
4307 | protected: | |||
4308 | explicit ValueCursorBase(TransactionBase* const aTransaction) | |||
4309 | : mDatabase(aTransaction->GetDatabasePtr()), | |||
4310 | mFileManager(mDatabase->GetFileManagerPtr()), | |||
4311 | mBackgroundParent(WrapNotNull(aTransaction->GetBackgroundParent())) { | |||
4312 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { *((volatile int*)__null) = 4312; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4313 | } | |||
4314 | ||||
4315 | void ProcessFiles(CursorResponse& aResponse, const FilesArray& aFiles); | |||
4316 | ||||
4317 | ~ValueCursorBase() { MOZ_ASSERT(!mBackgroundParent)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mBackgroundParent)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mBackgroundParent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mBackgroundParent" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4317); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mBackgroundParent" ")"); do { *((volatile int*)__null) = 4317; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | |||
4318 | ||||
4319 | const SafeRefPtr<Database> mDatabase; | |||
4320 | const NotNull<SafeRefPtr<DatabaseFileManager>> mFileManager; | |||
4321 | ||||
4322 | InitializedOnce<const NotNull<PBackgroundParent*>> mBackgroundParent; | |||
4323 | }; | |||
4324 | ||||
4325 | class KeyCursorBase { | |||
4326 | protected: | |||
4327 | explicit KeyCursorBase(TransactionBase* const /*aTransaction*/) {} | |||
4328 | ||||
4329 | static constexpr void ProcessFiles(CursorResponse& aResponse, | |||
4330 | const PseudoFilesArray& aFiles) {} | |||
4331 | }; | |||
4332 | ||||
4333 | template <IDBCursorType CursorType> | |||
4334 | class CursorOpBaseHelperBase; | |||
4335 | ||||
4336 | template <IDBCursorType CursorType> | |||
4337 | class Cursor final | |||
4338 | : public std::conditional_t< | |||
4339 | CursorTypeTraits<CursorType>::IsObjectStoreCursor, | |||
4340 | ObjectStoreCursorBase, IndexCursorBase>, | |||
4341 | public std::conditional_t<CursorTypeTraits<CursorType>::IsKeyOnlyCursor, | |||
4342 | KeyCursorBase, ValueCursorBase> { | |||
4343 | using Base = | |||
4344 | std::conditional_t<CursorTypeTraits<CursorType>::IsObjectStoreCursor, | |||
4345 | ObjectStoreCursorBase, IndexCursorBase>; | |||
4346 | ||||
4347 | using KeyValueBase = | |||
4348 | std::conditional_t<CursorTypeTraits<CursorType>::IsKeyOnlyCursor, | |||
4349 | KeyCursorBase, ValueCursorBase>; | |||
4350 | ||||
4351 | static constexpr bool IsIndexCursor = | |||
4352 | !CursorTypeTraits<CursorType>::IsObjectStoreCursor; | |||
4353 | ||||
4354 | static constexpr bool IsValueCursor = | |||
4355 | !CursorTypeTraits<CursorType>::IsKeyOnlyCursor; | |||
4356 | ||||
4357 | class CursorOpBase; | |||
4358 | class OpenOp; | |||
4359 | class ContinueOp; | |||
4360 | ||||
4361 | using Base::Id; | |||
4362 | using CursorBase::Manager; | |||
4363 | using CursorBase::mDirection; | |||
4364 | using CursorBase::mObjectStoreId; | |||
4365 | using CursorBase::mTransaction; | |||
4366 | using typename CursorBase::ActorDestroyReason; | |||
4367 | ||||
4368 | using TypedOpenOpHelper = | |||
4369 | std::conditional_t<IsIndexCursor, IndexOpenOpHelper<CursorType>, | |||
4370 | ObjectStoreOpenOpHelper<CursorType>>; | |||
4371 | ||||
4372 | friend class CursorOpBaseHelperBase<CursorType>; | |||
4373 | friend class CommonOpenOpHelper<CursorType>; | |||
4374 | friend TypedOpenOpHelper; | |||
4375 | friend class OpenOpHelper<CursorType>; | |||
4376 | ||||
4377 | CursorOpBase* mCurrentlyRunningOp = nullptr; | |||
4378 | ||||
4379 | LazyInitializedOnce<const typename Base::ContinueQueries> mContinueQueries; | |||
4380 | ||||
4381 | // Only called by TransactionBase. | |||
4382 | bool Start(const int64_t aRequestId, const OpenCursorParams& aParams) final; | |||
4383 | ||||
4384 | void SendResponseInternal(CursorResponse& aResponse, | |||
4385 | const FilesArrayT<CursorType>& aFiles); | |||
4386 | ||||
4387 | // Must call SendResponseInternal! | |||
4388 | bool SendResponse(const CursorResponse& aResponse) = delete; | |||
4389 | ||||
4390 | // IPDL methods. | |||
4391 | void ActorDestroy(ActorDestroyReason aWhy) override; | |||
4392 | ||||
4393 | mozilla::ipc::IPCResult RecvDeleteMe() override; | |||
4394 | ||||
4395 | mozilla::ipc::IPCResult RecvContinue( | |||
4396 | const int64_t& aRequestId, const CursorRequestParams& aParams, | |||
4397 | const Key& aCurrentKey, const Key& aCurrentObjectStoreKey) override; | |||
4398 | ||||
4399 | public: | |||
4400 | Cursor(SafeRefPtr<TransactionBase> aTransaction, | |||
4401 | SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata, | |||
4402 | SafeRefPtr<FullIndexMetadata> aIndexMetadata, | |||
4403 | typename Base::Direction aDirection, | |||
4404 | typename Base::ConstructFromTransactionBase aConstructionTag) | |||
4405 | : Base{std::move(aTransaction), std::move(aObjectStoreMetadata), | |||
4406 | std::move(aIndexMetadata), aDirection, aConstructionTag}, | |||
4407 | KeyValueBase{this->mTransaction.unsafeGetRawPtr()} {} | |||
4408 | ||||
4409 | Cursor(SafeRefPtr<TransactionBase> aTransaction, | |||
4410 | SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata, | |||
4411 | typename Base::Direction aDirection, | |||
4412 | typename Base::ConstructFromTransactionBase aConstructionTag) | |||
4413 | : Base{std::move(aTransaction), std::move(aObjectStoreMetadata), | |||
4414 | aDirection, aConstructionTag}, | |||
4415 | KeyValueBase{this->mTransaction.unsafeGetRawPtr()} {} | |||
4416 | ||||
4417 | private: | |||
4418 | void SetOptionalKeyRange(const Maybe<SerializedKeyRange>& aOptionalKeyRange, | |||
4419 | bool* aOpen); | |||
4420 | ||||
4421 | bool VerifyRequestParams(const CursorRequestParams& aParams, | |||
4422 | const CursorPosition<CursorType>& aPosition) const; | |||
4423 | ||||
4424 | ~Cursor() final = default; | |||
4425 | }; | |||
4426 | ||||
4427 | template <IDBCursorType CursorType> | |||
4428 | class Cursor<CursorType>::CursorOpBase | |||
4429 | : public TransactionDatabaseOperationBase { | |||
4430 | friend class CursorOpBaseHelperBase<CursorType>; | |||
4431 | ||||
4432 | protected: | |||
4433 | RefPtr<Cursor> mCursor; | |||
4434 | FilesArrayT<CursorType> mFiles; // TODO: Consider removing this member | |||
4435 | // entirely if we are no value cursor. | |||
4436 | ||||
4437 | CursorResponse mResponse; | |||
4438 | ||||
4439 | #ifdef DEBUG1 | |||
4440 | bool mResponseSent; | |||
4441 | #endif | |||
4442 | ||||
4443 | protected: | |||
4444 | explicit CursorOpBase(Cursor* aCursor, const int64_t aRequestId) | |||
4445 | : TransactionDatabaseOperationBase(aCursor->mTransaction.clonePtr(), | |||
4446 | /* aRequestId */ aRequestId), | |||
4447 | mCursor(aCursor) | |||
4448 | #ifdef DEBUG1 | |||
4449 | , | |||
4450 | mResponseSent(false) | |||
4451 | #endif | |||
4452 | { | |||
4453 | AssertIsOnBackgroundThread(); | |||
4454 | MOZ_ASSERT(aCursor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aCursor)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aCursor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aCursor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4454); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCursor" ")" ); do { *((volatile int*)__null) = 4454; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4455 | } | |||
4456 | ||||
4457 | ~CursorOpBase() override = default; | |||
4458 | ||||
4459 | bool SendFailureResult(nsresult aResultCode) final; | |||
4460 | nsresult SendSuccessResult() final; | |||
4461 | ||||
4462 | void Cleanup() override; | |||
4463 | }; | |||
4464 | ||||
4465 | template <IDBCursorType CursorType> | |||
4466 | class OpenOpHelper; | |||
4467 | ||||
4468 | using ResponseSizeOrError = Result<size_t, nsresult>; | |||
4469 | ||||
4470 | template <IDBCursorType CursorType> | |||
4471 | class CursorOpBaseHelperBase { | |||
4472 | public: | |||
4473 | explicit CursorOpBaseHelperBase( | |||
4474 | typename Cursor<CursorType>::CursorOpBase& aOp) | |||
4475 | : mOp{aOp} {} | |||
4476 | ||||
4477 | ResponseSizeOrError PopulateResponseFromStatement(mozIStorageStatement* aStmt, | |||
4478 | bool aInitializeResponse, | |||
4479 | Key* const aOptOutSortKey); | |||
4480 | ||||
4481 | void PopulateExtraResponses(mozIStorageStatement* aStmt, | |||
4482 | uint32_t aMaxExtraCount, | |||
4483 | const size_t aInitialResponseSize, | |||
4484 | const nsACString& aOperation, | |||
4485 | Key* const aOptPreviousSortKey); | |||
4486 | ||||
4487 | protected: | |||
4488 | Cursor<CursorType>& GetCursor() { | |||
4489 | MOZ_ASSERT(mOp.mCursor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOp.mCursor)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOp.mCursor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOp.mCursor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4489); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mCursor" ")"); do { *((volatile int*)__null) = 4489; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4490 | return *mOp.mCursor; | |||
4491 | } | |||
4492 | ||||
4493 | void SetResponse(CursorResponse aResponse) { | |||
4494 | mOp.mResponse = std::move(aResponse); | |||
4495 | } | |||
4496 | ||||
4497 | protected: | |||
4498 | typename Cursor<CursorType>::CursorOpBase& mOp; | |||
4499 | }; | |||
4500 | ||||
4501 | class CommonOpenOpHelperBase { | |||
4502 | protected: | |||
4503 | static void AppendConditionClause(const nsACString& aColumnName, | |||
4504 | const nsACString& aStatementParameterName, | |||
4505 | bool aLessThan, bool aEquals, | |||
4506 | nsCString& aResult); | |||
4507 | }; | |||
4508 | ||||
4509 | template <IDBCursorType CursorType> | |||
4510 | class CommonOpenOpHelper : public CursorOpBaseHelperBase<CursorType>, | |||
4511 | protected CommonOpenOpHelperBase { | |||
4512 | public: | |||
4513 | explicit CommonOpenOpHelper(typename Cursor<CursorType>::OpenOp& aOp) | |||
4514 | : CursorOpBaseHelperBase<CursorType>{aOp} {} | |||
4515 | ||||
4516 | protected: | |||
4517 | using CursorOpBaseHelperBase<CursorType>::GetCursor; | |||
4518 | using CursorOpBaseHelperBase<CursorType>::PopulateExtraResponses; | |||
4519 | using CursorOpBaseHelperBase<CursorType>::PopulateResponseFromStatement; | |||
4520 | using CursorOpBaseHelperBase<CursorType>::SetResponse; | |||
4521 | ||||
4522 | const Maybe<SerializedKeyRange>& GetOptionalKeyRange() const { | |||
4523 | // This downcast is safe, since we initialized mOp from an OpenOp in the | |||
4524 | // ctor. | |||
4525 | return static_cast<typename Cursor<CursorType>::OpenOp&>(this->mOp) | |||
4526 | .mOptionalKeyRange; | |||
4527 | } | |||
4528 | ||||
4529 | nsresult ProcessStatementSteps(mozIStorageStatement* aStmt); | |||
4530 | }; | |||
4531 | ||||
4532 | template <IDBCursorType CursorType> | |||
4533 | class ObjectStoreOpenOpHelper : protected CommonOpenOpHelper<CursorType> { | |||
4534 | public: | |||
4535 | using CommonOpenOpHelper<CursorType>::CommonOpenOpHelper; | |||
4536 | ||||
4537 | protected: | |||
4538 | using CommonOpenOpHelper<CursorType>::GetCursor; | |||
4539 | using CommonOpenOpHelper<CursorType>::GetOptionalKeyRange; | |||
4540 | using CommonOpenOpHelper<CursorType>::AppendConditionClause; | |||
4541 | ||||
4542 | void PrepareKeyConditionClauses(const nsACString& aDirectionClause, | |||
4543 | const nsACString& aQueryStart); | |||
4544 | }; | |||
4545 | ||||
4546 | template <IDBCursorType CursorType> | |||
4547 | class IndexOpenOpHelper : protected CommonOpenOpHelper<CursorType> { | |||
4548 | public: | |||
4549 | using CommonOpenOpHelper<CursorType>::CommonOpenOpHelper; | |||
4550 | ||||
4551 | protected: | |||
4552 | using CommonOpenOpHelper<CursorType>::GetCursor; | |||
4553 | using CommonOpenOpHelper<CursorType>::GetOptionalKeyRange; | |||
4554 | using CommonOpenOpHelper<CursorType>::AppendConditionClause; | |||
4555 | ||||
4556 | void PrepareIndexKeyConditionClause( | |||
4557 | const nsACString& aDirectionClause, | |||
4558 | const nsLiteralCString& aObjectDataKeyPrefix, nsAutoCString aQueryStart); | |||
4559 | }; | |||
4560 | ||||
4561 | template <> | |||
4562 | class OpenOpHelper<IDBCursorType::ObjectStore> | |||
4563 | : public ObjectStoreOpenOpHelper<IDBCursorType::ObjectStore> { | |||
4564 | public: | |||
4565 | using ObjectStoreOpenOpHelper< | |||
4566 | IDBCursorType::ObjectStore>::ObjectStoreOpenOpHelper; | |||
4567 | ||||
4568 | nsresult DoDatabaseWork(DatabaseConnection* aConnection); | |||
4569 | }; | |||
4570 | ||||
4571 | template <> | |||
4572 | class OpenOpHelper<IDBCursorType::ObjectStoreKey> | |||
4573 | : public ObjectStoreOpenOpHelper<IDBCursorType::ObjectStoreKey> { | |||
4574 | public: | |||
4575 | using ObjectStoreOpenOpHelper< | |||
4576 | IDBCursorType::ObjectStoreKey>::ObjectStoreOpenOpHelper; | |||
4577 | ||||
4578 | nsresult DoDatabaseWork(DatabaseConnection* aConnection); | |||
4579 | }; | |||
4580 | ||||
4581 | template <> | |||
4582 | class OpenOpHelper<IDBCursorType::Index> | |||
4583 | : IndexOpenOpHelper<IDBCursorType::Index> { | |||
4584 | private: | |||
4585 | void PrepareKeyConditionClauses(const nsACString& aDirectionClause, | |||
4586 | nsAutoCString aQueryStart) { | |||
4587 | PrepareIndexKeyConditionClause(aDirectionClause, "index_table."_ns, | |||
4588 | std::move(aQueryStart)); | |||
4589 | } | |||
4590 | ||||
4591 | public: | |||
4592 | using IndexOpenOpHelper<IDBCursorType::Index>::IndexOpenOpHelper; | |||
4593 | ||||
4594 | nsresult DoDatabaseWork(DatabaseConnection* aConnection); | |||
4595 | }; | |||
4596 | ||||
4597 | template <> | |||
4598 | class OpenOpHelper<IDBCursorType::IndexKey> | |||
4599 | : IndexOpenOpHelper<IDBCursorType::IndexKey> { | |||
4600 | private: | |||
4601 | void PrepareKeyConditionClauses(const nsACString& aDirectionClause, | |||
4602 | nsAutoCString aQueryStart) { | |||
4603 | PrepareIndexKeyConditionClause(aDirectionClause, ""_ns, | |||
4604 | std::move(aQueryStart)); | |||
4605 | } | |||
4606 | ||||
4607 | public: | |||
4608 | using IndexOpenOpHelper<IDBCursorType::IndexKey>::IndexOpenOpHelper; | |||
4609 | ||||
4610 | nsresult DoDatabaseWork(DatabaseConnection* aConnection); | |||
4611 | }; | |||
4612 | ||||
4613 | template <IDBCursorType CursorType> | |||
4614 | class Cursor<CursorType>::OpenOp final : public CursorOpBase { | |||
4615 | friend class Cursor<CursorType>; | |||
4616 | friend class CommonOpenOpHelper<CursorType>; | |||
4617 | ||||
4618 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | |||
4619 | ||||
4620 | using CursorOpBase::mCursor; | |||
4621 | using CursorOpBase::mResponse; | |||
4622 | ||||
4623 | // Only created by Cursor. | |||
4624 | OpenOp(Cursor* const aCursor, const int64_t aRequestId, | |||
4625 | const Maybe<SerializedKeyRange>& aOptionalKeyRange) | |||
4626 | : CursorOpBase(aCursor, aRequestId), | |||
4627 | mOptionalKeyRange(aOptionalKeyRange) {} | |||
4628 | ||||
4629 | // Reference counted. | |||
4630 | ~OpenOp() override = default; | |||
4631 | ||||
4632 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
4633 | }; | |||
4634 | ||||
4635 | template <IDBCursorType CursorType> | |||
4636 | class Cursor<CursorType>::ContinueOp final | |||
4637 | : public Cursor<CursorType>::CursorOpBase { | |||
4638 | friend class Cursor<CursorType>; | |||
4639 | ||||
4640 | using CursorOpBase::mCursor; | |||
4641 | using CursorOpBase::mResponse; | |||
4642 | const CursorRequestParams mParams; | |||
4643 | ||||
4644 | // Only created by Cursor. | |||
4645 | ContinueOp(Cursor* const aCursor, int64_t aRequestId, | |||
4646 | CursorRequestParams aParams, CursorPosition<CursorType> aPosition) | |||
4647 | : CursorOpBase(aCursor, aRequestId), | |||
4648 | mParams(std::move(aParams)), | |||
4649 | mCurrentPosition{std::move(aPosition)} { | |||
4650 | MOZ_ASSERT(mParams.type() != CursorRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mParams.type() != CursorRequestParams::T__None)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mParams.type() != CursorRequestParams::T__None))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mParams.type() != CursorRequestParams::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4650); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mParams.type() != CursorRequestParams::T__None" ")"); do { *((volatile int*)__null) = 4650; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4651 | } | |||
4652 | ||||
4653 | // Reference counted. | |||
4654 | ~ContinueOp() override = default; | |||
4655 | ||||
4656 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | |||
4657 | ||||
4658 | const CursorPosition<CursorType> mCurrentPosition; | |||
4659 | }; | |||
4660 | ||||
4661 | class Utils final : public PBackgroundIndexedDBUtilsParent { | |||
4662 | #ifdef DEBUG1 | |||
4663 | bool mActorDestroyed; | |||
4664 | #endif | |||
4665 | ||||
4666 | public: | |||
4667 | Utils(); | |||
4668 | ||||
4669 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::Utils)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<mozilla::dom::indexedDB::Utils> , "Reference-counted class " "mozilla::dom::indexedDB::Utils" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4669); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 4669; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this ), (count), ("mozilla::dom::indexedDB::Utils"), (uint32_t)(sizeof (*this))); return (nsrefcnt)count; } MozExternalRefCountType Release (void) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4669); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 4669 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("mozilla::dom::indexedDB::Utils")); if (count == 0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt = std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; public: | |||
4670 | ||||
4671 | private: | |||
4672 | // Reference counted. | |||
4673 | ~Utils() override; | |||
4674 | ||||
4675 | // IPDL methods are only called by IPDL. | |||
4676 | void ActorDestroy(ActorDestroyReason aWhy) override; | |||
4677 | ||||
4678 | mozilla::ipc::IPCResult RecvDeleteMe() override; | |||
4679 | ||||
4680 | mozilla::ipc::IPCResult RecvGetFileReferences( | |||
4681 | const PersistenceType& aPersistenceType, const nsACString& aOrigin, | |||
4682 | const nsAString& aDatabaseName, const int64_t& aFileId, int32_t* aRefCnt, | |||
4683 | int32_t* aDBRefCnt, bool* aResult) override; | |||
4684 | ||||
4685 | mozilla::ipc::IPCResult RecvDoMaintenance( | |||
4686 | DoMaintenanceResolver&& aResolver) override; | |||
4687 | }; | |||
4688 | ||||
4689 | /******************************************************************************* | |||
4690 | * Other class declarations | |||
4691 | ******************************************************************************/ | |||
4692 | ||||
4693 | struct DatabaseActorInfo final { | |||
4694 | friend class mozilla::DefaultDelete<DatabaseActorInfo>; | |||
4695 | ||||
4696 | SafeRefPtr<FullDatabaseMetadata> mMetadata; | |||
4697 | nsTArray<NotNull<CheckedUnsafePtr<Database>>> mLiveDatabases; | |||
4698 | RefPtr<FactoryOp> mWaitingFactoryOp; | |||
4699 | ||||
4700 | DatabaseActorInfo(SafeRefPtr<FullDatabaseMetadata> aMetadata, | |||
4701 | NotNull<Database*> aDatabase) | |||
4702 | : mMetadata(std::move(aMetadata)) { | |||
4703 | MOZ_COUNT_CTOR(DatabaseActorInfo)do { static_assert(std::is_class_v<DatabaseActorInfo>, "Token '" "DatabaseActorInfo" "' is not a class type."); static_assert (!std::is_base_of<nsISupports, DatabaseActorInfo>::value , "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "DatabaseActorInfo" , sizeof(*this)); } while (0); | |||
4704 | ||||
4705 | mLiveDatabases.AppendElement(aDatabase); | |||
4706 | } | |||
4707 | ||||
4708 | private: | |||
4709 | ~DatabaseActorInfo() { | |||
4710 | MOZ_ASSERT(mLiveDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLiveDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLiveDatabases.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mLiveDatabases.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLiveDatabases.IsEmpty()" ")"); do { *((volatile int*)__null) = 4710; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4711 | MOZ_ASSERT(!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4711); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases()" ")"); do { *((volatile int*)__null) = 4711; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4712 | ||||
4713 | MOZ_COUNT_DTOR(DatabaseActorInfo)do { static_assert(std::is_class_v<DatabaseActorInfo>, "Token '" "DatabaseActorInfo" "' is not a class type."); static_assert (!std::is_base_of<nsISupports, DatabaseActorInfo>::value , "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "DatabaseActorInfo" , sizeof(*this)); } while (0); | |||
4714 | } | |||
4715 | }; | |||
4716 | ||||
4717 | class DatabaseLoggingInfo final { | |||
4718 | #ifdef DEBUG1 | |||
4719 | // Just for potential warnings. | |||
4720 | friend class Factory; | |||
4721 | #endif | |||
4722 | ||||
4723 | LoggingInfo mLoggingInfo; | |||
4724 | ||||
4725 | public: | |||
4726 | explicit DatabaseLoggingInfo(const LoggingInfo& aLoggingInfo) | |||
4727 | : mLoggingInfo(aLoggingInfo) { | |||
4728 | AssertIsOnBackgroundThread(); | |||
4729 | MOZ_ASSERT(aLoggingInfo.nextTransactionSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aLoggingInfo.nextTransactionSerialNumber())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aLoggingInfo.nextTransactionSerialNumber()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aLoggingInfo.nextTransactionSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4729); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextTransactionSerialNumber()" ")"); do { *((volatile int*)__null) = 4729; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4730 | MOZ_ASSERT(aLoggingInfo.nextVersionChangeTransactionSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aLoggingInfo.nextVersionChangeTransactionSerialNumber ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aLoggingInfo.nextVersionChangeTransactionSerialNumber ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("aLoggingInfo.nextVersionChangeTransactionSerialNumber()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4730); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextVersionChangeTransactionSerialNumber()" ")"); do { *((volatile int*)__null) = 4730; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4731 | MOZ_ASSERT(aLoggingInfo.nextRequestSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aLoggingInfo.nextRequestSerialNumber())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aLoggingInfo.nextRequestSerialNumber()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aLoggingInfo.nextRequestSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4731); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextRequestSerialNumber()" ")"); do { *((volatile int*)__null) = 4731; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4732 | } | |||
4733 | ||||
4734 | const nsID& Id() const { | |||
4735 | AssertIsOnBackgroundThread(); | |||
4736 | ||||
4737 | return mLoggingInfo.backgroundChildLoggingId(); | |||
4738 | } | |||
4739 | ||||
4740 | int64_t NextTransactionSN(IDBTransaction::Mode aMode) { | |||
4741 | AssertIsOnBackgroundThread(); | |||
4742 | MOZ_ASSERT(mLoggingInfo.nextTransactionSerialNumber() < INT64_MAX)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L ))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4742); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L)" ")"); do { *((volatile int*)__null) = 4742; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4743 | MOZ_ASSERT(mLoggingInfo.nextVersionChangeTransactionSerialNumber() >do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLoggingInfo.nextVersionChangeTransactionSerialNumber () > (-9223372036854775807L -1))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLoggingInfo.nextVersionChangeTransactionSerialNumber () > (-9223372036854775807L -1)))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4744); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)" ")"); do { *((volatile int*)__null) = 4744; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
4744 | INT64_MIN)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLoggingInfo.nextVersionChangeTransactionSerialNumber () > (-9223372036854775807L -1))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLoggingInfo.nextVersionChangeTransactionSerialNumber () > (-9223372036854775807L -1)))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4744); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)" ")"); do { *((volatile int*)__null) = 4744; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4745 | ||||
4746 | if (aMode == IDBTransaction::Mode::VersionChange) { | |||
4747 | return mLoggingInfo.nextVersionChangeTransactionSerialNumber()--; | |||
4748 | } | |||
4749 | ||||
4750 | return mLoggingInfo.nextTransactionSerialNumber()++; | |||
4751 | } | |||
4752 | ||||
4753 | uint64_t NextRequestSN() { | |||
4754 | AssertIsOnBackgroundThread(); | |||
4755 | MOZ_ASSERT(mLoggingInfo.nextRequestSerialNumber() < UINT64_MAX)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL ))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4755); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL)" ")"); do { *((volatile int*)__null) = 4755; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4756 | ||||
4757 | return mLoggingInfo.nextRequestSerialNumber()++; | |||
4758 | } | |||
4759 | ||||
4760 | NS_INLINE_DECL_REFCOUNTING(DatabaseLoggingInfo)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<DatabaseLoggingInfo>, "Reference-counted class " "DatabaseLoggingInfo" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4760); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 4760; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); _mOwningThread.AssertOwnership("DatabaseLoggingInfo" " not thread-safe"); ++mRefCnt; NS_LogAddRef((this), (mRefCnt ), ("DatabaseLoggingInfo"), (uint32_t)(sizeof(*this))); return mRefCnt; } MozExternalRefCountType Release(void) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4760); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 4760 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); _mOwningThread.AssertOwnership("DatabaseLoggingInfo" " not thread-safe"); --mRefCnt; NS_LogRelease((this), (mRefCnt ), ("DatabaseLoggingInfo")); if (mRefCnt == 0) { mRefCnt = 1; delete (this); return 0; } return mRefCnt; } using HasThreadSafeRefCnt = std::false_type; protected: nsAutoRefCnt mRefCnt; nsAutoOwningThread _mOwningThread; public: | |||
4761 | ||||
4762 | private: | |||
4763 | ~DatabaseLoggingInfo(); | |||
4764 | }; | |||
4765 | ||||
4766 | class QuotaClient final : public mozilla::dom::quota::Client { | |||
4767 | friend class GetDatabasesOp; | |||
4768 | ||||
4769 | static QuotaClient* sInstance; | |||
4770 | ||||
4771 | nsCOMPtr<nsIEventTarget> mBackgroundThread; | |||
4772 | nsCOMPtr<nsITimer> mDeleteTimer; | |||
4773 | nsTArray<RefPtr<Maintenance>> mMaintenanceQueue; | |||
4774 | RefPtr<Maintenance> mCurrentMaintenance; | |||
4775 | RefPtr<nsThreadPool> mMaintenanceThreadPool; | |||
4776 | nsClassHashtable<nsRefPtrHashKey<DatabaseFileManager>, nsTArray<int64_t>> | |||
4777 | mPendingDeleteInfos; | |||
4778 | ||||
4779 | public: | |||
4780 | QuotaClient(); | |||
4781 | ||||
4782 | static QuotaClient* GetInstance() { | |||
4783 | AssertIsOnBackgroundThread(); | |||
4784 | ||||
4785 | return sInstance; | |||
4786 | } | |||
4787 | ||||
4788 | nsIEventTarget* BackgroundThread() const { | |||
4789 | MOZ_ASSERT(mBackgroundThread)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mBackgroundThread)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mBackgroundThread))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mBackgroundThread" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4789); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundThread" ")"); do { *((volatile int*)__null) = 4789; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4790 | return mBackgroundThread; | |||
4791 | } | |||
4792 | ||||
4793 | nsresult AsyncDeleteFile(DatabaseFileManager* aFileManager, int64_t aFileId); | |||
4794 | ||||
4795 | nsresult FlushPendingFileDeletions(); | |||
4796 | ||||
4797 | RefPtr<BoolPromise> DoMaintenance(); | |||
4798 | ||||
4799 | RefPtr<Maintenance> GetCurrentMaintenance() const { | |||
4800 | return mCurrentMaintenance; | |||
4801 | } | |||
4802 | ||||
4803 | void NoteFinishedMaintenance(Maintenance* aMaintenance) { | |||
4804 | AssertIsOnBackgroundThread(); | |||
4805 | MOZ_ASSERT(aMaintenance)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMaintenance)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMaintenance))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aMaintenance", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4805); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMaintenance" ")"); do { *((volatile int*)__null) = 4805; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4806 | MOZ_ASSERT(mCurrentMaintenance == aMaintenance)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCurrentMaintenance == aMaintenance)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCurrentMaintenance == aMaintenance ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mCurrentMaintenance == aMaintenance", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4806); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCurrentMaintenance == aMaintenance" ")"); do { *((volatile int*)__null) = 4806; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
4807 | ||||
4808 | mCurrentMaintenance = nullptr; | |||
4809 | ||||
4810 | QuotaManager::MaybeRecordQuotaClientShutdownStep(quota::Client::IDB, | |||
4811 | "Maintenance finished"_ns); | |||
4812 | ||||
4813 | ProcessMaintenanceQueue(); | |||
4814 | } | |||
4815 | ||||
4816 | nsThreadPool* GetOrCreateThreadPool(); | |||
4817 | ||||
4818 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::QuotaClient,public: MozExternalRefCountType AddRef(void) override { static_assert (!std::is_destructible_v<mozilla::dom::indexedDB::QuotaClient >, "Reference-counted class " "mozilla::dom::indexedDB::QuotaClient" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4819); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 4819; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this ), (count), ("mozilla::dom::indexedDB::QuotaClient"), (uint32_t )(sizeof(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release(void) override { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(int32_t(mRefCnt) > 0) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(int32_t(mRefCnt) > 0))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4819); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 4819 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("mozilla::dom::indexedDB::QuotaClient")); if (count == 0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt = std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; public: | |||
4819 | override)public: MozExternalRefCountType AddRef(void) override { static_assert (!std::is_destructible_v<mozilla::dom::indexedDB::QuotaClient >, "Reference-counted class " "mozilla::dom::indexedDB::QuotaClient" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4819); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 4819; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this ), (count), ("mozilla::dom::indexedDB::QuotaClient"), (uint32_t )(sizeof(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release(void) override { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(int32_t(mRefCnt) > 0) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(int32_t(mRefCnt) > 0))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 4819); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 4819 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("mozilla::dom::indexedDB::QuotaClient")); if (count == 0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt = std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; public: | |||
4820 | ||||
4821 | mozilla::dom::quota::Client::Type GetType() override; | |||
4822 | ||||
4823 | nsresult UpgradeStorageFrom1_0To2_0(nsIFile* aDirectory) override; | |||
4824 | ||||
4825 | nsresult UpgradeStorageFrom2_1To2_2(nsIFile* aDirectory) override; | |||
4826 | ||||
4827 | Result<UsageInfo, nsresult> InitOrigin(PersistenceType aPersistenceType, | |||
4828 | const OriginMetadata& aOriginMetadata, | |||
4829 | const AtomicBool& aCanceled) override; | |||
4830 | ||||
4831 | nsresult InitOriginWithoutTracking(PersistenceType aPersistenceType, | |||
4832 | const OriginMetadata& aOriginMetadata, | |||
4833 | const AtomicBool& aCanceled) override; | |||
4834 | ||||
4835 | Result<UsageInfo, nsresult> GetUsageForOrigin( | |||
4836 | PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata, | |||
4837 | const AtomicBool& aCanceled) override; | |||
4838 | ||||
4839 | void OnOriginClearCompleted(PersistenceType aPersistenceType, | |||
4840 | const nsACString& aOrigin) override; | |||
4841 | ||||
4842 | void OnRepositoryClearCompleted(PersistenceType aPersistenceType) override; | |||
4843 | ||||
4844 | void ReleaseIOThreadObjects() override; | |||
4845 | ||||
4846 | void AbortOperationsForLocks( | |||
4847 | const DirectoryLockIdTable& aDirectoryLockIds) override; | |||
4848 | ||||
4849 | void AbortOperationsForProcess(ContentParentId aContentParentId) override; | |||
4850 | ||||
4851 | void AbortAllOperations() override; | |||
4852 | ||||
4853 | void StartIdleMaintenance() override; | |||
4854 | ||||
4855 | void StopIdleMaintenance() override; | |||
4856 | ||||
4857 | private: | |||
4858 | ~QuotaClient() override; | |||
4859 | ||||
4860 | void InitiateShutdown() override; | |||
4861 | bool IsShutdownCompleted() const override; | |||
4862 | nsCString GetShutdownStatus() const override; | |||
4863 | void ForceKillActors() override; | |||
4864 | void FinalizeShutdown() override; | |||
4865 | ||||
4866 | static void DeleteTimerCallback(nsITimer* aTimer, void* aClosure); | |||
4867 | ||||
4868 | void AbortAllMaintenances(); | |||
4869 | ||||
4870 | Result<nsCOMPtr<nsIFile>, nsresult> GetDirectory( | |||
4871 | const OriginMetadata& aOriginMetadata); | |||
4872 | ||||
4873 | struct SubdirectoriesToProcessAndDatabaseFilenames { | |||
4874 | AutoTArray<nsString, 20> subdirsToProcess; | |||
4875 | nsTHashSet<nsString> databaseFilenames{20}; | |||
4876 | }; | |||
4877 | ||||
4878 | struct SubdirectoriesToProcessAndDatabaseFilenamesAndObsoleteFilenames { | |||
4879 | AutoTArray<nsString, 20> subdirsToProcess; | |||
4880 | nsTHashSet<nsString> databaseFilenames{20}; | |||
4881 | nsTHashSet<nsString> obsoleteFilenames{20}; | |||
4882 | }; | |||
4883 | ||||
4884 | enum class ObsoleteFilenamesHandling { Include, Omit }; | |||
4885 | ||||
4886 | template <ObsoleteFilenamesHandling ObsoleteFilenames> | |||
4887 | using GetDatabaseFilenamesResult = std::conditional_t< | |||
4888 | ObsoleteFilenames == ObsoleteFilenamesHandling::Include, | |||
4889 | SubdirectoriesToProcessAndDatabaseFilenamesAndObsoleteFilenames, | |||
4890 | SubdirectoriesToProcessAndDatabaseFilenames>; | |||
4891 | ||||
4892 | // Returns a two-part or three-part structure: | |||
4893 | // | |||
4894 | // The first part is an array of subdirectories to process. | |||
4895 | // | |||
4896 | // The second part is a hashtable of database filenames. | |||
4897 | // | |||
4898 | // When ObsoleteFilenames is ObsoleteFilenamesHandling::Include, will also | |||
4899 | // collect files based on the marker files. For now, | |||
4900 | // GetUsageForOriginInternal() is the only consumer of this result because it | |||
4901 | // checks those unfinished deletion and clean them up after that. | |||
4902 | template <ObsoleteFilenamesHandling ObsoleteFilenames = | |||
4903 | ObsoleteFilenamesHandling::Omit> | |||
4904 | Result<GetDatabaseFilenamesResult<ObsoleteFilenames>, | |||
4905 | nsresult> static GetDatabaseFilenames(nsIFile& aDirectory, | |||
4906 | const AtomicBool& aCanceled); | |||
4907 | ||||
4908 | nsresult GetUsageForOriginInternal(PersistenceType aPersistenceType, | |||
4909 | const OriginMetadata& aOriginMetadata, | |||
4910 | const AtomicBool& aCanceled, | |||
4911 | bool aInitializing, UsageInfo* aUsageInfo); | |||
4912 | ||||
4913 | // Runs on the PBackground thread. Checks to see if there's a queued | |||
4914 | // Maintenance to run. | |||
4915 | void ProcessMaintenanceQueue(); | |||
4916 | }; | |||
4917 | ||||
4918 | class DeleteFilesRunnable final : public Runnable { | |||
4919 | using DirectoryLock = mozilla::dom::quota::DirectoryLock; | |||
4920 | ||||
4921 | enum State { | |||
4922 | // Just created on the PBackground thread. Next step is | |||
4923 | // State_DirectoryOpenPending. | |||
4924 | State_Initial, | |||
4925 | ||||
4926 | // Waiting for directory open allowed on the main thread. The next step is | |||
4927 | // State_DatabaseWorkOpen. | |||
4928 | State_DirectoryOpenPending, | |||
4929 | ||||
4930 | // Waiting to do/doing work on the QuotaManager IO thread. The next step is | |||
4931 | // State_UnblockingOpen. | |||
4932 | State_DatabaseWorkOpen, | |||
4933 | ||||
4934 | // Notifying the QuotaManager that it can proceed to the next operation on | |||
4935 | // the main thread. Next step is State_Completed. | |||
4936 | State_UnblockingOpen, | |||
4937 | ||||
4938 | // All done. | |||
4939 | State_Completed | |||
4940 | }; | |||
4941 | ||||
4942 | nsCOMPtr<nsIEventTarget> mOwningEventTarget; | |||
4943 | SafeRefPtr<DatabaseFileManager> mFileManager; | |||
4944 | RefPtr<DirectoryLock> mDirectoryLock; | |||
4945 | nsTArray<int64_t> mFileIds; | |||
4946 | State mState; | |||
4947 | DEBUGONLY(bool mDEBUGCountsAsPending = false)bool mDEBUGCountsAsPending = false; | |||
4948 | ||||
4949 | static uint64_t sPendingRunnables; | |||
4950 | ||||
4951 | public: | |||
4952 | DeleteFilesRunnable(SafeRefPtr<DatabaseFileManager> aFileManager, | |||
4953 | nsTArray<int64_t>&& aFileIds); | |||
4954 | ||||
4955 | void RunImmediately(); | |||
4956 | ||||
4957 | static bool IsDeletionPending() { return sPendingRunnables > 0; } | |||
4958 | ||||
4959 | private: | |||
4960 | #ifdef DEBUG1 | |||
4961 | ~DeleteFilesRunnable(); | |||
4962 | #else | |||
4963 | ~DeleteFilesRunnable() = default; | |||
4964 | #endif | |||
4965 | ||||
4966 | void Open(); | |||
4967 | ||||
4968 | void DoDatabaseWork(); | |||
4969 | ||||
4970 | void Finish(); | |||
4971 | ||||
4972 | void UnblockOpen(); | |||
4973 | ||||
4974 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | |||
4975 | ||||
4976 | void DirectoryLockAcquired(DirectoryLock* aLock); | |||
4977 | ||||
4978 | void DirectoryLockFailed(); | |||
4979 | }; | |||
4980 | ||||
4981 | class Maintenance final : public Runnable { | |||
4982 | struct DirectoryInfo final { | |||
4983 | InitializedOnce<const OriginMetadata> mOriginMetadata; | |||
4984 | InitializedOnce<const nsTArray<nsString>> mDatabasePaths; | |||
4985 | const PersistenceType mPersistenceType; | |||
4986 | ||||
4987 | DirectoryInfo(PersistenceType aPersistenceType, | |||
4988 | OriginMetadata aOriginMetadata, | |||
4989 | nsTArray<nsString>&& aDatabasePaths); | |||
4990 | ||||
4991 | DirectoryInfo(const DirectoryInfo& aOther) = delete; | |||
4992 | DirectoryInfo(DirectoryInfo&& aOther) = delete; | |||
4993 | ||||
4994 | ~DirectoryInfo() { MOZ_COUNT_DTOR(Maintenance::DirectoryInfo)do { static_assert(std::is_class_v<Maintenance::DirectoryInfo >, "Token '" "Maintenance::DirectoryInfo" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, Maintenance ::DirectoryInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "Maintenance::DirectoryInfo" , sizeof(*this)); } while (0); } | |||
4995 | }; | |||
4996 | ||||
4997 | enum class State { | |||
4998 | // Newly created on the PBackground thread. Will proceed immediately or be | |||
4999 | // added to the maintenance queue. The next step is either | |||
5000 | // DirectoryOpenPending if IndexedDatabaseManager is running, or | |||
5001 | // CreateIndexedDatabaseManager if not. | |||
5002 | Initial = 0, | |||
5003 | ||||
5004 | // Create IndexedDatabaseManager on the main thread. The next step is either | |||
5005 | // Finishing if IndexedDatabaseManager initialization fails, or | |||
5006 | // IndexedDatabaseManagerOpen if initialization succeeds. | |||
5007 | CreateIndexedDatabaseManager, | |||
5008 | ||||
5009 | // Call OpenDirectory() on the PBackground thread. The next step is | |||
5010 | // DirectoryOpenPending. | |||
5011 | IndexedDatabaseManagerOpen, | |||
5012 | ||||
5013 | // Waiting for directory open allowed on the PBackground thread. The next | |||
5014 | // step is either Finishing if directory lock failed to acquire, or | |||
5015 | // DirectoryWorkOpen if directory lock is acquired. | |||
5016 | DirectoryOpenPending, | |||
5017 | ||||
5018 | // Waiting to do/doing work on the QuotaManager IO thread. The next step is | |||
5019 | // BeginDatabaseMaintenance. | |||
5020 | DirectoryWorkOpen, | |||
5021 | ||||
5022 | // Dispatching a runnable for each database on the PBackground thread. The | |||
5023 | // next state is either WaitingForDatabaseMaintenancesToComplete if at least | |||
5024 | // one runnable has been dispatched, or Finishing otherwise. | |||
5025 | BeginDatabaseMaintenance, | |||
5026 | ||||
5027 | // Waiting for DatabaseMaintenance to finish on maintenance thread pool. | |||
5028 | // The next state is Finishing if the last runnable has finished. | |||
5029 | WaitingForDatabaseMaintenancesToComplete, | |||
5030 | ||||
5031 | // Waiting to finish/finishing on the PBackground thread. The next step is | |||
5032 | // Completed. | |||
5033 | Finishing, | |||
5034 | ||||
5035 | // All done. | |||
5036 | Complete | |||
5037 | }; | |||
5038 | ||||
5039 | RefPtr<QuotaClient> mQuotaClient; | |||
5040 | MozPromiseHolder<BoolPromise> mPromiseHolder; | |||
5041 | PRTime mStartTime; | |||
5042 | RefPtr<UniversalDirectoryLock> mPendingDirectoryLock; | |||
5043 | // The directory lock is normally dropped by BeginDatabaseMaintenance, but if | |||
5044 | // something fails (in any method), the Finish method will do the cleanup. | |||
5045 | RefPtr<UniversalDirectoryLock> mDirectoryLock; | |||
5046 | nsTArray<nsCOMPtr<nsIRunnable>> mCompleteCallbacks; | |||
5047 | nsTArray<DirectoryInfo> mDirectoryInfos; | |||
5048 | nsTHashMap<nsStringHashKey, DatabaseMaintenance*> mDatabaseMaintenances; | |||
5049 | nsresult mResultCode; | |||
5050 | Atomic<bool> mAborted; | |||
5051 | State mState; | |||
5052 | ||||
5053 | public: | |||
5054 | explicit Maintenance(QuotaClient* aQuotaClient) | |||
5055 | : Runnable("dom::indexedDB::Maintenance"), | |||
5056 | mQuotaClient(aQuotaClient), | |||
5057 | mStartTime(PR_Now()), | |||
5058 | mResultCode(NS_OK), | |||
5059 | mAborted(false), | |||
5060 | mState(State::Initial) { | |||
5061 | AssertIsOnBackgroundThread(); | |||
5062 | MOZ_ASSERT(aQuotaClient)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aQuotaClient)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aQuotaClient))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aQuotaClient", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5062); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aQuotaClient" ")"); do { *((volatile int*)__null) = 5062; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5063 | MOZ_ASSERT(QuotaClient::GetInstance() == aQuotaClient)do { static_assert( mozilla::detail::AssertionConditionType< decltype(QuotaClient::GetInstance() == aQuotaClient)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(QuotaClient::GetInstance() == aQuotaClient))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("QuotaClient::GetInstance() == aQuotaClient" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5063); AnnotateMozCrashReason("MOZ_ASSERT" "(" "QuotaClient::GetInstance() == aQuotaClient" ")"); do { *((volatile int*)__null) = 5063; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5064 | MOZ_ASSERT(mStartTime)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mStartTime)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mStartTime))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mStartTime", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5064); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mStartTime" ")"); do { *((volatile int*)__null) = 5064; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5065 | } | |||
5066 | ||||
5067 | nsIEventTarget* BackgroundThread() const { | |||
5068 | MOZ_ASSERT(mQuotaClient)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mQuotaClient)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mQuotaClient))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mQuotaClient", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5068); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQuotaClient" ")"); do { *((volatile int*)__null) = 5068; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5069 | return mQuotaClient->BackgroundThread(); | |||
5070 | } | |||
5071 | ||||
5072 | PRTime StartTime() const { return mStartTime; } | |||
5073 | ||||
5074 | bool IsAborted() const { return mAborted; } | |||
5075 | ||||
5076 | void RunImmediately() { | |||
5077 | MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5077); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial" ")"); do { *((volatile int*)__null) = 5077; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5078 | ||||
5079 | Unused << this->Run(); | |||
5080 | } | |||
5081 | ||||
5082 | RefPtr<BoolPromise> OnResults() { | |||
5083 | AssertIsOnBackgroundThread(); | |||
5084 | ||||
5085 | return mPromiseHolder.Ensure(__func__); | |||
5086 | } | |||
5087 | ||||
5088 | void Abort(); | |||
5089 | ||||
5090 | void RegisterDatabaseMaintenance(DatabaseMaintenance* aDatabaseMaintenance); | |||
5091 | ||||
5092 | void UnregisterDatabaseMaintenance(DatabaseMaintenance* aDatabaseMaintenance); | |||
5093 | ||||
5094 | bool HasDatabaseMaintenances() const { return mDatabaseMaintenances.Count(); } | |||
5095 | ||||
5096 | RefPtr<DatabaseMaintenance> GetDatabaseMaintenance( | |||
5097 | const nsAString& aDatabasePath) const { | |||
5098 | AssertIsOnBackgroundThread(); | |||
5099 | ||||
5100 | return mDatabaseMaintenances.Get(aDatabasePath); | |||
5101 | } | |||
5102 | ||||
5103 | void WaitForCompletion(nsIRunnable* aCallback) { | |||
5104 | AssertIsOnBackgroundThread(); | |||
5105 | MOZ_ASSERT(mDatabaseMaintenances.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabaseMaintenances.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabaseMaintenances.Count( )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mDatabaseMaintenances.Count()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5105); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseMaintenances.Count()" ")"); do { *((volatile int*)__null) = 5105; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5106 | ||||
5107 | mCompleteCallbacks.AppendElement(aCallback); | |||
5108 | } | |||
5109 | ||||
5110 | void Stringify(nsACString& aResult) const; | |||
5111 | ||||
5112 | private: | |||
5113 | ~Maintenance() override { | |||
5114 | MOZ_ASSERT(mState == State::Complete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Complete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Complete))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Complete" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5114); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Complete" ")"); do { *((volatile int*)__null) = 5114; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5115 | MOZ_ASSERT(!mDatabaseMaintenances.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabaseMaintenances.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabaseMaintenances.Count ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mDatabaseMaintenances.Count()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5115); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Count()" ")"); do { *((volatile int*)__null) = 5115; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5116 | } | |||
5117 | ||||
5118 | // Runs on the PBackground thread. Checks if IndexedDatabaseManager is | |||
5119 | // running. Calls OpenDirectory() or dispatches to the main thread on which | |||
5120 | // CreateIndexedDatabaseManager() is called. | |||
5121 | nsresult Start(); | |||
5122 | ||||
5123 | // Runs on the main thread. Once IndexedDatabaseManager is created it will | |||
5124 | // dispatch to the PBackground thread on which OpenDirectory() is called. | |||
5125 | nsresult CreateIndexedDatabaseManager(); | |||
5126 | ||||
5127 | // Runs on the PBackground thread. Once QuotaManager has given a lock it will | |||
5128 | // call DirectoryOpen(). | |||
5129 | nsresult OpenDirectory(); | |||
5130 | ||||
5131 | // Runs on the PBackground thread. Dispatches to the QuotaManager I/O thread. | |||
5132 | nsresult DirectoryOpen(); | |||
5133 | ||||
5134 | // Runs on the QuotaManager I/O thread. Once it finds databases it will | |||
5135 | // dispatch to the PBackground thread on which BeginDatabaseMaintenance() | |||
5136 | // is called. | |||
5137 | nsresult DirectoryWork(); | |||
5138 | ||||
5139 | // Runs on the PBackground thread. It dispatches a runnable for each database. | |||
5140 | nsresult BeginDatabaseMaintenance(); | |||
5141 | ||||
5142 | // Runs on the PBackground thread. Called when the maintenance is finished or | |||
5143 | // if any of above methods fails. | |||
5144 | void Finish(); | |||
5145 | ||||
5146 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | |||
5147 | ||||
5148 | void DirectoryLockAcquired(DirectoryLock* aLock); | |||
5149 | ||||
5150 | void DirectoryLockFailed(); | |||
5151 | }; | |||
5152 | ||||
5153 | Maintenance::DirectoryInfo::DirectoryInfo(PersistenceType aPersistenceType, | |||
5154 | OriginMetadata aOriginMetadata, | |||
5155 | nsTArray<nsString>&& aDatabasePaths) | |||
5156 | : mOriginMetadata(std::move(aOriginMetadata)), | |||
5157 | mDatabasePaths(std::move(aDatabasePaths)), | |||
5158 | mPersistenceType(aPersistenceType) { | |||
5159 | MOZ_ASSERT(aPersistenceType != PERSISTENCE_TYPE_INVALID)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aPersistenceType != PERSISTENCE_TYPE_INVALID)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aPersistenceType != PERSISTENCE_TYPE_INVALID))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aPersistenceType != PERSISTENCE_TYPE_INVALID" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5159); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPersistenceType != PERSISTENCE_TYPE_INVALID" ")"); do { *((volatile int*)__null) = 5159; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5160 | MOZ_ASSERT(!mOriginMetadata->mGroup.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mOriginMetadata->mGroup.IsEmpty())>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(!mOriginMetadata->mGroup.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mOriginMetadata->mGroup.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5160); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata->mGroup.IsEmpty()" ")"); do { *((volatile int*)__null) = 5160; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5161 | MOZ_ASSERT(!mOriginMetadata->mOrigin.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mOriginMetadata->mOrigin.IsEmpty())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mOriginMetadata->mOrigin.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mOriginMetadata->mOrigin.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5161); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata->mOrigin.IsEmpty()" ")"); do { *((volatile int*)__null) = 5161; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5162 | #ifdef DEBUG1 | |||
5163 | MOZ_ASSERT(!mDatabasePaths->IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabasePaths->IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabasePaths->IsEmpty( )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mDatabasePaths->IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5163); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasePaths->IsEmpty()" ")"); do { *((volatile int*)__null) = 5163; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5164 | for (const nsAString& databasePath : *mDatabasePaths) { | |||
5165 | MOZ_ASSERT(!databasePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!databasePath.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!databasePath.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!databasePath.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5165); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePath.IsEmpty()" ")"); do { *((volatile int*)__null) = 5165; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5166 | } | |||
5167 | #endif | |||
5168 | ||||
5169 | MOZ_COUNT_CTOR(Maintenance::DirectoryInfo)do { static_assert(std::is_class_v<Maintenance::DirectoryInfo >, "Token '" "Maintenance::DirectoryInfo" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, Maintenance ::DirectoryInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "Maintenance::DirectoryInfo" , sizeof(*this)); } while (0); | |||
5170 | } | |||
5171 | ||||
5172 | class DatabaseMaintenance final : public Runnable { | |||
5173 | // The minimum amount of time that has passed since the last vacuum before we | |||
5174 | // will attempt to analyze the database for fragmentation. | |||
5175 | static const PRTime kMinVacuumAge = | |||
5176 | PRTime(PR_USEC_PER_SEC1000000L) * 60 * 60 * 24 * 7; | |||
5177 | ||||
5178 | // If the percent of database pages that are not in contiguous order is higher | |||
5179 | // than this percentage we will attempt a vacuum. | |||
5180 | static const int32_t kPercentUnorderedThreshold = 30; | |||
5181 | ||||
5182 | // If the percent of file size growth since the last vacuum is higher than | |||
5183 | // this percentage we will attempt a vacuum. | |||
5184 | static const int32_t kPercentFileSizeGrowthThreshold = 10; | |||
5185 | ||||
5186 | // The number of freelist pages beyond which we will favor an incremental | |||
5187 | // vacuum over a full vacuum. | |||
5188 | static const int32_t kMaxFreelistThreshold = 5; | |||
5189 | ||||
5190 | // If the percent of unused file bytes in the database exceeds this percentage | |||
5191 | // then we will attempt a full vacuum. | |||
5192 | static const int32_t kPercentUnusedThreshold = 20; | |||
5193 | ||||
5194 | enum class MaintenanceAction { Nothing = 0, IncrementalVacuum, FullVacuum }; | |||
5195 | ||||
5196 | RefPtr<Maintenance> mMaintenance; | |||
5197 | // The directory lock is dropped in RunOnOwningThread which serves as a | |||
5198 | // cleanup method and is always called. | |||
5199 | RefPtr<DirectoryLock> mDirectoryLock; | |||
5200 | const OriginMetadata mOriginMetadata; | |||
5201 | const nsString mDatabasePath; | |||
5202 | int64_t mDirectoryLockId; | |||
5203 | nsCOMPtr<nsIRunnable> mCompleteCallback; | |||
5204 | const PersistenceType mPersistenceType; | |||
5205 | const Maybe<CipherKey> mMaybeKey; | |||
5206 | Atomic<bool> mAborted; | |||
5207 | DataMutex<nsCOMPtr<mozIStorageConnection>> mSharedStorageConnection; | |||
5208 | ||||
5209 | public: | |||
5210 | DatabaseMaintenance(Maintenance* aMaintenance, | |||
5211 | RefPtr<DirectoryLock> aDirectoryLock, | |||
5212 | PersistenceType aPersistenceType, | |||
5213 | const OriginMetadata& aOriginMetadata, | |||
5214 | const nsAString& aDatabasePath, | |||
5215 | const Maybe<CipherKey>& aMaybeKey) | |||
5216 | : Runnable("dom::indexedDB::DatabaseMaintenance"), | |||
5217 | mMaintenance(aMaintenance), | |||
5218 | mDirectoryLock(std::move(aDirectoryLock)), | |||
5219 | mOriginMetadata(aOriginMetadata), | |||
5220 | mDatabasePath(aDatabasePath), | |||
5221 | mPersistenceType(aPersistenceType), | |||
5222 | mMaybeKey{aMaybeKey}, | |||
5223 | mAborted(false), | |||
5224 | mSharedStorageConnection("sharedStorageConnection") { | |||
5225 | MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5225); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")"); do { *((volatile int*)__null) = 5225; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5226 | ||||
5227 | MOZ_ASSERT(mDirectoryLock->Id() >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLock->Id() >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLock->Id() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mDirectoryLock->Id() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock->Id() >= 0" ")"); do { *((volatile int*)__null) = 5227; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5228 | mDirectoryLockId = mDirectoryLock->Id(); | |||
5229 | } | |||
5230 | ||||
5231 | const nsAString& DatabasePath() const { return mDatabasePath; } | |||
5232 | ||||
5233 | void WaitForCompletion(nsIRunnable* aCallback) { | |||
5234 | AssertIsOnBackgroundThread(); | |||
5235 | MOZ_ASSERT(!mCompleteCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCompleteCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mCompleteCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mCompleteCallback" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5235); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCompleteCallback" ")"); do { *((volatile int*)__null) = 5235; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5236 | ||||
5237 | mCompleteCallback = aCallback; | |||
5238 | } | |||
5239 | ||||
5240 | void Stringify(nsACString& aResult) const; | |||
5241 | ||||
5242 | nsresult Abort(); | |||
5243 | ||||
5244 | private: | |||
5245 | ~DatabaseMaintenance() override = default; | |||
5246 | ||||
5247 | // Runs on maintenance thread pool. Does maintenance on the database. | |||
5248 | void PerformMaintenanceOnDatabase(); | |||
5249 | ||||
5250 | // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase. | |||
5251 | nsresult CheckIntegrity(mozIStorageConnection& aConnection, bool* aOk); | |||
5252 | ||||
5253 | // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase. | |||
5254 | nsresult DetermineMaintenanceAction(mozIStorageConnection& aConnection, | |||
5255 | nsIFile* aDatabaseFile, | |||
5256 | MaintenanceAction* aMaintenanceAction); | |||
5257 | ||||
5258 | // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase. | |||
5259 | void IncrementalVacuum(mozIStorageConnection& aConnection); | |||
5260 | ||||
5261 | // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase. | |||
5262 | void FullVacuum(mozIStorageConnection& aConnection, nsIFile* aDatabaseFile); | |||
5263 | ||||
5264 | // Runs on the PBackground thread. It dispatches a complete callback and | |||
5265 | // unregisters from Maintenance. | |||
5266 | void RunOnOwningThread(); | |||
5267 | ||||
5268 | // Runs on maintenance thread pool. Once it performs database maintenance | |||
5269 | // it will dispatch to the PBackground thread on which RunOnOwningThread() | |||
5270 | // is called. | |||
5271 | void RunOnConnectionThread(); | |||
5272 | ||||
5273 | // TODO: Could QuotaClient::IsShuttingDownOnNonBackgroundThread() call | |||
5274 | // be part of mMaintenance::IsAborted() ? | |||
5275 | inline bool IsAborted() const { | |||
5276 | return mMaintenance->IsAborted() || mAborted || | |||
5277 | NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5277); | |||
5278 | } | |||
5279 | ||||
5280 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | |||
5281 | }; | |||
5282 | ||||
5283 | #ifdef DEBUG1 | |||
5284 | ||||
5285 | class DEBUGThreadSlower final : public nsIThreadObserver { | |||
5286 | public: | |||
5287 | DEBUGThreadSlower() { | |||
5288 | AssertIsOnBackgroundThread(); | |||
5289 | MOZ_ASSERT(kDEBUGThreadSleepMS)do { static_assert( mozilla::detail::AssertionConditionType< decltype(kDEBUGThreadSleepMS)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(kDEBUGThreadSleepMS))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("kDEBUGThreadSleepMS" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5289); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGThreadSleepMS" ")"); do { *((volatile int*)__null) = 5289; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5290 | } | |||
5291 | ||||
5292 | NS_DECL_ISUPPORTSpublic: virtual nsresult QueryInterface(const nsIID& aIID , void** aInstancePtr) override; virtual MozExternalRefCountType AddRef(void) override; virtual MozExternalRefCountType Release (void) override; using HasThreadSafeRefCnt = std::false_type; protected: nsAutoRefCnt mRefCnt; nsAutoOwningThread _mOwningThread ; public: | |||
5293 | ||||
5294 | private: | |||
5295 | ~DEBUGThreadSlower() { AssertIsOnBackgroundThread(); } | |||
5296 | ||||
5297 | NS_DECL_NSITHREADOBSERVERvirtual nsresult OnDispatchedEvent(void) override; virtual nsresult OnProcessNextEvent(nsIThreadInternal *thread, bool mayWait) override ; virtual nsresult AfterProcessNextEvent(nsIThreadInternal *thread , bool eventWasProcessed) override; | |||
5298 | }; | |||
5299 | ||||
5300 | #endif // DEBUG | |||
5301 | ||||
5302 | /******************************************************************************* | |||
5303 | * Helper classes | |||
5304 | ******************************************************************************/ | |||
5305 | ||||
5306 | // XXX Get rid of FileHelper and move the functions into DatabaseFileManager. | |||
5307 | // Then, DatabaseFileManager::Get(Journal)Directory and | |||
5308 | // DatabaseFileManager::GetFileForId might eventually be made private. | |||
5309 | class MOZ_STACK_CLASS FileHelper final { | |||
5310 | const SafeRefPtr<DatabaseFileManager> mFileManager; | |||
5311 | ||||
5312 | LazyInitializedOnce<const NotNull<nsCOMPtr<nsIFile>>> mFileDirectory; | |||
5313 | LazyInitializedOnce<const NotNull<nsCOMPtr<nsIFile>>> mJournalDirectory; | |||
5314 | ||||
5315 | class ReadCallback; | |||
5316 | LazyInitializedOnce<const NotNull<RefPtr<ReadCallback>>> mReadCallback; | |||
5317 | ||||
5318 | public: | |||
5319 | explicit FileHelper(SafeRefPtr<DatabaseFileManager>&& aFileManager) | |||
5320 | : mFileManager(std::move(aFileManager)) { | |||
5321 | MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5321); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager" ")"); do { *((volatile int*)__null) = 5321; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5322 | } | |||
5323 | ||||
5324 | nsresult Init(); | |||
5325 | ||||
5326 | [[nodiscard]] nsCOMPtr<nsIFile> GetFile(const DatabaseFileInfo& aFileInfo); | |||
5327 | ||||
5328 | [[nodiscard]] nsCOMPtr<nsIFile> GetJournalFile( | |||
5329 | const DatabaseFileInfo& aFileInfo); | |||
5330 | ||||
5331 | nsresult CreateFileFromStream(nsIFile& aFile, nsIFile& aJournalFile, | |||
5332 | nsIInputStream& aInputStream, bool aCompress, | |||
5333 | const Maybe<CipherKey>& aMaybeKey); | |||
5334 | ||||
5335 | private: | |||
5336 | nsresult SyncCopy(nsIInputStream& aInputStream, | |||
5337 | nsIOutputStream& aOutputStream, char* aBuffer, | |||
5338 | uint32_t aBufferSize); | |||
5339 | ||||
5340 | nsresult SyncRead(nsIInputStream& aInputStream, char* aBuffer, | |||
5341 | uint32_t aBufferSize, uint32_t* aRead); | |||
5342 | }; | |||
5343 | ||||
5344 | /******************************************************************************* | |||
5345 | * Helper Functions | |||
5346 | ******************************************************************************/ | |||
5347 | ||||
5348 | bool GetFilenameBase(const nsAString& aFilename, const nsAString& aSuffix, | |||
5349 | nsDependentSubstring& aFilenameBase) { | |||
5350 | MOZ_ASSERT(!aFilename.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aFilename.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aFilename.IsEmpty()))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!aFilename.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5350); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()" ")"); do { *((volatile int*)__null) = 5350; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5351 | MOZ_ASSERT(aFilenameBase.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aFilenameBase.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aFilenameBase.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aFilenameBase.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5351); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFilenameBase.IsEmpty()" ")"); do { *((volatile int*)__null) = 5351; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5352 | ||||
5353 | if (!StringEndsWith(aFilename, aSuffix) || | |||
5354 | aFilename.Length() == aSuffix.Length()) { | |||
5355 | return false; | |||
5356 | } | |||
5357 | ||||
5358 | MOZ_ASSERT(aFilename.Length() > aSuffix.Length())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aFilename.Length() > aSuffix.Length())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aFilename.Length() > aSuffix.Length()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFilename.Length() > aSuffix.Length()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5358); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFilename.Length() > aSuffix.Length()" ")"); do { *((volatile int*)__null) = 5358; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5359 | ||||
5360 | aFilenameBase.Rebind(aFilename, 0, aFilename.Length() - aSuffix.Length()); | |||
5361 | return true; | |||
5362 | } | |||
5363 | ||||
5364 | class EncryptedFileBlobImpl final : public FileBlobImpl { | |||
5365 | public: | |||
5366 | EncryptedFileBlobImpl(const nsCOMPtr<nsIFile>& aNativeFile, | |||
5367 | const DatabaseFileInfo::IdType aId, | |||
5368 | const CipherKey& aKey) | |||
5369 | : FileBlobImpl{aNativeFile}, mKey{aKey} { | |||
5370 | SetFileId(aId); | |||
5371 | } | |||
5372 | ||||
5373 | uint64_t GetSize(ErrorResult& aRv) override { | |||
5374 | nsCOMPtr<nsIInputStream> inputStream; | |||
5375 | CreateInputStream(getter_AddRefs(inputStream), aRv); | |||
5376 | ||||
5377 | if (aRv.Failed()) { | |||
5378 | return 0; | |||
5379 | } | |||
5380 | ||||
5381 | MOZ_ASSERT(inputStream)do { static_assert( mozilla::detail::AssertionConditionType< decltype(inputStream)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(inputStream))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("inputStream", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5381); AnnotateMozCrashReason("MOZ_ASSERT" "(" "inputStream" ")"); do { *((volatile int*)__null) = 5381; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5382 | ||||
5383 | QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(inputStream, Available), 0,{auto tryResult3125 = (::mozilla::ToResultInvokeMember( (inputStream ), &::mozilla::detail::DerefedType<decltype(inputStream )>::Available)); if ((__builtin_expect(!!(tryResult3125.isErr ()), 0))) { auto tryTempError = tryResult3125.unwrapErr(); mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (inputStream), &::mozilla::detail::DerefedType<decltype(inputStream)>::Available)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5384, mozilla::dom::quota::Severity::Error); [&aRv](const nsresult rv) { aRv = rv; }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (inputStream), &::mozilla::detail::DerefedType<decltype(inputStream)>::Available)" , tryTempError, 0); } return tryResult3125.unwrap();} | |||
5384 | [&aRv](const nsresult rv) { aRv = rv; }){auto tryResult3125 = (::mozilla::ToResultInvokeMember( (inputStream ), &::mozilla::detail::DerefedType<decltype(inputStream )>::Available)); if ((__builtin_expect(!!(tryResult3125.isErr ()), 0))) { auto tryTempError = tryResult3125.unwrapErr(); mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (inputStream), &::mozilla::detail::DerefedType<decltype(inputStream)>::Available)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5384, mozilla::dom::quota::Severity::Error); [&aRv](const nsresult rv) { aRv = rv; }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (inputStream), &::mozilla::detail::DerefedType<decltype(inputStream)>::Available)" , tryTempError, 0); } return tryResult3125.unwrap();}; | |||
5385 | } | |||
5386 | ||||
5387 | void CreateInputStream(nsIInputStream** aInputStream, | |||
5388 | ErrorResult& aRv) const override { | |||
5389 | nsCOMPtr<nsIInputStream> baseInputStream; | |||
5390 | FileBlobImpl::CreateInputStream(getter_AddRefs(baseInputStream), aRv); | |||
5391 | if (NS_WARN_IF(aRv.Failed())NS_warn_if_impl(aRv.Failed(), "aRv.Failed()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5391)) { | |||
5392 | return; | |||
5393 | } | |||
5394 | ||||
5395 | *aInputStream = | |||
5396 | MakeAndAddRef<DecryptingInputStream<IndexedDBCipherStrategy>>( | |||
5397 | WrapNotNull(std::move(baseInputStream)), kEncryptedStreamBlockSize, | |||
5398 | mKey) | |||
5399 | .take(); | |||
5400 | } | |||
5401 | ||||
5402 | void GetBlobImplType(nsAString& aBlobImplType) const override { | |||
5403 | aBlobImplType = u"EncryptedFileBlobImpl"_ns; | |||
5404 | } | |||
5405 | ||||
5406 | already_AddRefed<BlobImpl> CreateSlice(uint64_t aStart, uint64_t aLength, | |||
5407 | const nsAString& aContentType, | |||
5408 | ErrorResult& aRv) const override { | |||
5409 | MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable." , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5409); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { *((volatile int*)__null) = 5409; __attribute__((nomerge )) ::abort(); } while (false); } while (false); | |||
5410 | } | |||
5411 | ||||
5412 | private: | |||
5413 | const CipherKey mKey; | |||
5414 | }; | |||
5415 | ||||
5416 | RefPtr<BlobImpl> CreateFileBlobImpl(const Database& aDatabase, | |||
5417 | const nsCOMPtr<nsIFile>& aNativeFile, | |||
5418 | const DatabaseFileInfo::IdType aId) { | |||
5419 | if (aDatabase.IsInPrivateBrowsing()) { | |||
5420 | nsCString keyId; | |||
5421 | keyId.AppendInt(aId); | |||
5422 | ||||
5423 | const auto& key = | |||
5424 | aDatabase.GetFileManager().MutableCipherKeyManagerRef().Get(keyId); | |||
5425 | ||||
5426 | MOZ_RELEASE_ASSERT(key.isSome())do { static_assert( mozilla::detail::AssertionConditionType< decltype(key.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(key.isSome()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("key.isSome()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5426); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "key.isSome()" ")"); do { *((volatile int*)__null) = 5426; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5427 | return MakeRefPtr<EncryptedFileBlobImpl>(aNativeFile, aId, *key); | |||
5428 | } | |||
5429 | ||||
5430 | auto impl = MakeRefPtr<FileBlobImpl>(aNativeFile); | |||
5431 | impl->SetFileId(aId); | |||
5432 | ||||
5433 | return impl; | |||
5434 | } | |||
5435 | ||||
5436 | Result<nsTArray<SerializedStructuredCloneFile>, nsresult> | |||
5437 | SerializeStructuredCloneFiles(const SafeRefPtr<Database>& aDatabase, | |||
5438 | const nsTArray<StructuredCloneFileParent>& aFiles, | |||
5439 | bool aForPreprocess) { | |||
5440 | AssertIsOnBackgroundThread(); | |||
5441 | MOZ_ASSERT(aDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase" ")" ); do { *((volatile int*)__null) = 5441; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5442 | ||||
5443 | if (aFiles.IsEmpty()) { | |||
5444 | return nsTArray<SerializedStructuredCloneFile>{}; | |||
5445 | } | |||
5446 | ||||
5447 | const nsCOMPtr<nsIFile> directory = | |||
5448 | aDatabase->GetFileManager().GetCheckedDirectory(); | |||
5449 | QM_TRY(OkIf(directory), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult3126 = (OkIf(directory)); static_assert(std::is_empty_v <typename decltype(tryResult3126)::ok_type>); if ((__builtin_expect (!!(tryResult3126.isErr()), 0))) { auto tryTempError = tryResult3126 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(directory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5450, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5450, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(directory)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | |||
5450 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult3126 = (OkIf(directory)); static_assert(std::is_empty_v <typename decltype(tryResult3126)::ok_type>); if ((__builtin_expect (!!(tryResult3126.isErr()), 0))) { auto tryTempError = tryResult3126 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(directory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5450, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5450, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(directory)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; | |||
5451 | ||||
5452 | nsTArray<SerializedStructuredCloneFile> serializedStructuredCloneFiles; | |||
5453 | QM_TRY(OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(),{auto tryResult3127 = (OkIf(serializedStructuredCloneFiles.SetCapacity (aFiles.Length(), fallible))); static_assert(std::is_empty_v< typename decltype(tryResult3127)::ok_type>); if ((__builtin_expect (!!(tryResult3127.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3127.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5455, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }} | |||
5454 | fallible)),{auto tryResult3127 = (OkIf(serializedStructuredCloneFiles.SetCapacity (aFiles.Length(), fallible))); static_assert(std::is_empty_v< typename decltype(tryResult3127)::ok_type>); if ((__builtin_expect (!!(tryResult3127.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3127.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5455, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }} | |||
5455 | Err(NS_ERROR_OUT_OF_MEMORY)){auto tryResult3127 = (OkIf(serializedStructuredCloneFiles.SetCapacity (aFiles.Length(), fallible))); static_assert(std::is_empty_v< typename decltype(tryResult3127)::ok_type>); if ((__builtin_expect (!!(tryResult3127.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3127.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5455, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; | |||
5456 | ||||
5457 | QM_TRY(TransformIfAbortOnErr({auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5458 | aFiles, MakeBackInserter(serializedStructuredCloneFiles),{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5459 | [aForPreprocess](const auto& file) {{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5460 | return !aForPreprocess ||{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5461 | file.Type() == StructuredCloneFileBase::eStructuredClone;{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5462 | },{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5463 | [&directory, &aDatabase, aForPreprocess]({auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5464 | const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> {{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5465 | const int64_t fileId = file.FileInfo().Id();{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5466 | MOZ_ASSERT(fileId > 0);{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5467 | ||||
5468 | const nsCOMPtr<nsIFile> nativeFile ={auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5469 | mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId({auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5470 | directory, fileId);{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5471 | QM_TRY(OkIf(nativeFile), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5472 | IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5473 | ||||
5474 | switch (file.Type()) {{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5475 | case StructuredCloneFileBase::eStructuredClone:{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5476 | if (!aForPreprocess) {{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5477 | return SerializedStructuredCloneFile{{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5478 | null_t(), StructuredCloneFileBase::eStructuredClone};{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5479 | }{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5480 | ||||
5481 | [[fallthrough]];{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5482 | ||||
5483 | case StructuredCloneFileBase::eBlob: {{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5484 | const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile,{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5485 | file.FileInfo().Id());{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5486 | ||||
5487 | IPCBlob ipcBlob;{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5488 | ||||
5489 | // This can only fail if the child has crashed.{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5490 | QM_TRY(MOZ_TO_RESULT(IPCBlobUtils::Serialize(impl, ipcBlob)),{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5491 | Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5492 | IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5493 | ||||
5494 | aDatabase->MapBlob(ipcBlob, file.FileInfoPtr());{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5495 | ||||
5496 | return SerializedStructuredCloneFile{ipcBlob, file.Type()};{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5497 | }{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5498 | ||||
5499 | case StructuredCloneFileBase::eMutableFile:{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5500 | case StructuredCloneFileBase::eWasmBytecode:{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5501 | case StructuredCloneFileBase::eWasmCompiled: {{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5502 | // Set file() to null, support for storing WebAssembly.Modules has{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5503 | // been removed in bug 1469395. Support for de-serialization of{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5504 | // WebAssembly.Modules modules has been removed in bug 1561876.{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5505 | // Support for MutableFile has been removed in bug 1500343. Full{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5506 | // removal is tracked in bug 1487479.{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5507 | ||||
5508 | return SerializedStructuredCloneFile{null_t(), file.Type()};{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5509 | }{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5510 | ||||
5511 | default:{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5512 | MOZ_CRASH("Should never get here!");{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5513 | }{auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }} | |||
5514 | })){auto tryResult3130 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect (!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5472, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file. Type()) { case StructuredCloneFileBase::eStructuredClone: if ( !aForPreprocess) { return SerializedStructuredCloneFile{ null_t (), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough ]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl (*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob ; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129 .isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, mozilla::dom::quota::Severity::Error); [](const auto& ) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5492, "UnknownErr"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile {ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile : case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase ::eWasmCompiled: { return SerializedStructuredCloneFile{null_t (), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5512); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult3130)::ok_type >); if ((__builtin_expect(!!(tryResult3130.isErr()), 0))) { mozilla::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5466); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5466; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult3128 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult3128)::ok_type>); if ((__builtin_expect(!!(tryResult3128.isErr()), 0))) { auto tryTempError = tryResult3128.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5472, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult3129 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult3129)::ok_type>); if ((__builtin_expect(!!(tryResult3129.isErr()), 0))) { auto tryTempError = tryResult3129.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5492, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5512); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5512; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult3130.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5514, mozilla::dom::quota::Severity::Error); return tryResult3130 .propagateErr(); }}; | |||
5515 | ||||
5516 | return std::move(serializedStructuredCloneFiles); | |||
5517 | } | |||
5518 | ||||
5519 | bool IsFileNotFoundError(const nsresult aRv) { | |||
5520 | return aRv == NS_ERROR_FILE_NOT_FOUND; | |||
5521 | } | |||
5522 | ||||
5523 | enum struct Idempotency { Yes, No }; | |||
5524 | ||||
5525 | // Delete a file, decreasing the quota usage as appropriate. If the file no | |||
5526 | // longer exists but aIdempotency is Idempotency::Yes, success is returned, | |||
5527 | // although quota usage can't be decreased. (With the assumption being that the | |||
5528 | // file was already deleted prior to this logic running, and the non-existent | |||
5529 | // file was no longer tracked by quota because it didn't exist at | |||
5530 | // initialization time or a previous deletion call updated the usage.) | |||
5531 | nsresult DeleteFile(nsIFile& aFile, QuotaManager* const aQuotaManager, | |||
5532 | const PersistenceType aPersistenceType, | |||
5533 | const OriginMetadata& aOriginMetadata, | |||
5534 | const Idempotency aIdempotency) { | |||
5535 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5535); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 5535; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5536 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5536); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 5536; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5537 | ||||
5538 | // Callers which pass Idempotency::Yes call this function without checking if | |||
5539 | // the file already exists (idempotent usage). QM_OR_ELSE_WARN_IF is not used | |||
5540 | // here since we just want to log NS_ERROR_FILE_NOT_FOUND results and not spam | |||
5541 | // the reports. | |||
5542 | // Theoretically, there should be no QM_OR_ELSE_(WARN|LOG_VERBOSE)_IF when a | |||
5543 | // caller passes Idempotency::No, but it's simpler when the predicate just | |||
5544 | // always returns false in that case. | |||
5545 | ||||
5546 | const auto isIgnorableError = [&aIdempotency]() -> bool (*)(nsresult) { | |||
5547 | if (aIdempotency == Idempotency::Yes) { | |||
5548 | return IsFileNotFoundError; | |||
5549 | } | |||
5550 | ||||
5551 | return [](const nsresult rv) { return false; }; | |||
5552 | }(); | |||
5553 | ||||
5554 | QM_TRY_INSPECT(auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5555 | const auto& fileSize,auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5556 | ([aQuotaManager, &aFile,auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5557 | isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> {auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5558 | if (aQuotaManager) {auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5559 | QM_TRY_INSPECT(auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5560 | const Maybe<int64_t>& fileSize,auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5561 | QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5562 | // Expression.auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5563 | MOZ_TO_RESULT_INVOKE_MEMBER(aFile, GetFileSize)auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5564 | .map([](const int64_t val) { return Some(val); }),auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5565 | // Predicate.auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5566 | isIgnorableError,auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5567 | // Fallback.auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5568 | ErrToDefaultOk<Maybe<int64_t>>));auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5569 | ||||
5570 | // XXX Can we really assert that the file size is not 0 ifauto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5571 | // it existed? This might be violated by externalauto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5572 | // influences.auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5573 | MOZ_ASSERT(!fileSize || fileSize.value() >= 0);auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5574 | ||||
5575 | return fileSize;auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5576 | }auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5577 | ||||
5578 | return Some(int64_t(0));auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect (); | |||
5579 | }()))auto tryResult3132 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult3131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5568, mozilla::dom::quota::Severity::Error); return tryResult3131 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!fileSize || fileSize.value () >= 0)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!fileSize || fileSize.value() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult3132.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult3131 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult3131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 5568, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult3131.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5568, mozilla::dom::quota::Severity::Error); return tryResult3131.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult3131.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5573); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5573; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult3132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5579, mozilla::dom::quota::Severity::Error); return tryResult3132 .propagateErr(); } const auto& fileSize = tryResult3132.inspect ();; | |||
5580 | ||||
5581 | if (!fileSize) { | |||
5582 | return NS_OK; | |||
5583 | } | |||
5584 | ||||
5585 | QM_TRY_INSPECT(const auto& didExist,auto tryResult3133 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(false)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = isIgnorableError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5592, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult3133 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5592, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult3133.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5592, mozilla::dom::quota::Severity::Error); return tryResult3133 .propagateErr(); } const auto& didExist = tryResult3133.inspect (); | |||
5586 | QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult3133 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(false)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = isIgnorableError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5592, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult3133 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5592, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult3133.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5592, mozilla::dom::quota::Severity::Error); return tryResult3133 .propagateErr(); } const auto& didExist = tryResult3133.inspect (); | |||
5587 | // Expression.auto tryResult3133 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(false)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = isIgnorableError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5592, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult3133 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5592, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult3133.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5592, mozilla::dom::quota::Severity::Error); return tryResult3133 .propagateErr(); } const auto& didExist = tryResult3133.inspect (); | |||
5588 | MOZ_TO_RESULT(aFile.Remove(false)).map(Some<Ok>),auto tryResult3133 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(false)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = isIgnorableError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5592, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult3133 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5592, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult3133.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5592, mozilla::dom::quota::Severity::Error); return tryResult3133 .propagateErr(); } const auto& didExist = tryResult3133.inspect (); | |||
5589 | // Predicate.auto tryResult3133 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(false)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = isIgnorableError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5592, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult3133 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5592, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult3133.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5592, mozilla::dom::quota::Severity::Error); return tryResult3133 .propagateErr(); } const auto& didExist = tryResult3133.inspect (); | |||
5590 | isIgnorableError,auto tryResult3133 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(false)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = isIgnorableError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5592, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult3133 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5592, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult3133.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5592, mozilla::dom::quota::Severity::Error); return tryResult3133 .propagateErr(); } const auto& didExist = tryResult3133.inspect (); | |||
5591 | // Fallback.auto tryResult3133 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(false)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = isIgnorableError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5592, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult3133 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5592, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult3133.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5592, mozilla::dom::quota::Severity::Error); return tryResult3133 .propagateErr(); } const auto& didExist = tryResult3133.inspect (); | |||
5592 | ErrToDefaultOk<Maybe<Ok>>))auto tryResult3133 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(false)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = isIgnorableError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5592, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult3133 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5592, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult3133.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5592, mozilla::dom::quota::Severity::Error); return tryResult3133 .propagateErr(); } const auto& didExist = tryResult3133.inspect ();; | |||
5593 | ||||
5594 | if (!didExist) { | |||
5595 | // XXX If we get here, this means that the file still existed when we | |||
5596 | // queried its size, but no longer when we tried to remove it. Not sure if | |||
5597 | // this should really be silently accepted in idempotent mode. | |||
5598 | return NS_OK; | |||
5599 | } | |||
5600 | ||||
5601 | if (fileSize.value() > 0) { | |||
5602 | MOZ_ASSERT(aQuotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aQuotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aQuotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aQuotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aQuotaManager" ")"); do { *((volatile int*)__null) = 5602; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5603 | ||||
5604 | aQuotaManager->DecreaseUsageForClient( | |||
5605 | ClientMetadata{aOriginMetadata, Client::IDB}, fileSize.value()); | |||
5606 | } | |||
5607 | ||||
5608 | return NS_OK; | |||
5609 | } | |||
5610 | ||||
5611 | nsresult DeleteFile(nsIFile& aDirectory, const nsAString& aFilename, | |||
5612 | QuotaManager* const aQuotaManager, | |||
5613 | const PersistenceType aPersistenceType, | |||
5614 | const OriginMetadata& aOriginMetadata, | |||
5615 | const Idempotency aIdempotent) { | |||
5616 | AssertIsOnIOThread(); | |||
5617 | MOZ_ASSERT(!aFilename.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aFilename.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aFilename.IsEmpty()))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!aFilename.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5617); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()" ")"); do { *((volatile int*)__null) = 5617; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5618 | ||||
5619 | QM_TRY_INSPECT(const auto& file, CloneFileAndAppend(aDirectory, aFilename))auto tryResult3134 = (CloneFileAndAppend(aDirectory, aFilename )); if ((__builtin_expect(!!(tryResult3134.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(aDirectory, aFilename)" , tryResult3134.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5619, mozilla::dom::quota::Severity::Error); return tryResult3134 .propagateErr(); } const auto& file = tryResult3134.inspect ();; | |||
5620 | ||||
5621 | return DeleteFile(*file, aQuotaManager, aPersistenceType, aOriginMetadata, | |||
5622 | aIdempotent); | |||
5623 | } | |||
5624 | ||||
5625 | // Delete files in a directory that you think exists. If the directory doesn't | |||
5626 | // exist, an error will not be returned, but warning telemetry will be | |||
5627 | // generated! So only call this on directories that you know exist (idempotent | |||
5628 | // usage, but it's not recommended). | |||
5629 | nsresult DeleteFilesNoQuota(nsIFile& aFile) { | |||
5630 | AssertIsOnIOThread(); | |||
5631 | ||||
5632 | QM_TRY_INSPECT(const auto& didExist,auto tryResult3135 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(true)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5639, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult3135 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5639, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult3135.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5639, mozilla::dom::quota::Severity::Error); return tryResult3135 .propagateErr(); } const auto& didExist = tryResult3135.inspect (); | |||
5633 | QM_OR_ELSE_WARN_IF(auto tryResult3135 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(true)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5639, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult3135 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5639, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult3135.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5639, mozilla::dom::quota::Severity::Error); return tryResult3135 .propagateErr(); } const auto& didExist = tryResult3135.inspect (); | |||
5634 | // Expression.auto tryResult3135 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(true)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5639, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult3135 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5639, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult3135.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5639, mozilla::dom::quota::Severity::Error); return tryResult3135 .propagateErr(); } const auto& didExist = tryResult3135.inspect (); | |||
5635 | MOZ_TO_RESULT(aFile.Remove(true)).map(Some<Ok>),auto tryResult3135 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(true)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5639, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult3135 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5639, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult3135.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5639, mozilla::dom::quota::Severity::Error); return tryResult3135 .propagateErr(); } const auto& didExist = tryResult3135.inspect (); | |||
5636 | // Predicate.auto tryResult3135 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(true)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5639, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult3135 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5639, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult3135.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5639, mozilla::dom::quota::Severity::Error); return tryResult3135 .propagateErr(); } const auto& didExist = tryResult3135.inspect (); | |||
5637 | IsFileNotFoundError,auto tryResult3135 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(true)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5639, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult3135 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5639, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult3135.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5639, mozilla::dom::quota::Severity::Error); return tryResult3135 .propagateErr(); } const auto& didExist = tryResult3135.inspect (); | |||
5638 | // Fallback.auto tryResult3135 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(true)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5639, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult3135 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5639, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult3135.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5639, mozilla::dom::quota::Severity::Error); return tryResult3135 .propagateErr(); } const auto& didExist = tryResult3135.inspect (); | |||
5639 | ErrToDefaultOk<Maybe<Ok>>))auto tryResult3135 = (mozilla::dom::quota::OrElseIf( (ToResult (aFile.Remove(true)).map(Some<Ok>)), [&](const auto & firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5639, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult3135 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5639, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult3135.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5639, mozilla::dom::quota::Severity::Error); return tryResult3135 .propagateErr(); } const auto& didExist = tryResult3135.inspect ();; | |||
5640 | ||||
5641 | Unused << didExist; | |||
5642 | ||||
5643 | return NS_OK; | |||
5644 | } | |||
5645 | ||||
5646 | nsresult DeleteFilesNoQuota(nsIFile* aDirectory, const nsAString& aFilename) { | |||
5647 | AssertIsOnIOThread(); | |||
5648 | MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5648); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { *((volatile int*)__null) = 5648; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5649 | MOZ_ASSERT(!aFilename.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aFilename.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aFilename.IsEmpty()))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!aFilename.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5649); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()" ")"); do { *((volatile int*)__null) = 5649; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5650 | ||||
5651 | // The current using function hasn't initialized the origin, so in here we | |||
5652 | // don't update the size of origin. Adding this assertion for preventing from | |||
5653 | // misusing. | |||
5654 | DebugOnly<QuotaManager*> quotaManager = QuotaManager::Get(); | |||
5655 | MOZ_ASSERT(!quotaManager->IsTemporaryStorageInitializedInternal())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!quotaManager->IsTemporaryStorageInitializedInternal ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!quotaManager->IsTemporaryStorageInitializedInternal ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!quotaManager->IsTemporaryStorageInitializedInternal()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5655); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!quotaManager->IsTemporaryStorageInitializedInternal()" ")"); do { *((volatile int*)__null) = 5655; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5656 | ||||
5657 | QM_TRY_INSPECT(const auto& file, CloneFileAndAppend(*aDirectory, aFilename))auto tryResult3136 = (CloneFileAndAppend(*aDirectory, aFilename )); if ((__builtin_expect(!!(tryResult3136.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, aFilename)" , tryResult3136.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5657, mozilla::dom::quota::Severity::Error); return tryResult3136 .propagateErr(); } const auto& file = tryResult3136.inspect ();; | |||
5658 | ||||
5659 | QM_TRY(MOZ_TO_RESULT(DeleteFilesNoQuota(*file))){auto tryResult3137 = (ToResult(DeleteFilesNoQuota(*file))); static_assert (std::is_empty_v<typename decltype(tryResult3137)::ok_type >); if ((__builtin_expect(!!(tryResult3137.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(*file))" , tryResult3137.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5659, mozilla::dom::quota::Severity::Error); return tryResult3137 .propagateErr(); }}; | |||
5660 | ||||
5661 | return NS_OK; | |||
5662 | } | |||
5663 | ||||
5664 | // CreateMarkerFile and RemoveMarkerFile are a pair of functions to indicate | |||
5665 | // whether having removed all the files successfully. The marker file should | |||
5666 | // be checked before executing the next operation or initialization. | |||
5667 | Result<nsCOMPtr<nsIFile>, nsresult> CreateMarkerFile( | |||
5668 | nsIFile& aBaseDirectory, const nsAString& aDatabaseNameBase) { | |||
5669 | AssertIsOnIOThread(); | |||
5670 | MOZ_ASSERT(!aDatabaseNameBase.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseNameBase.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseNameBase.IsEmpty() ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!aDatabaseNameBase.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5670); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseNameBase.IsEmpty()" ")"); do { *((volatile int*)__null) = 5670; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5671 | ||||
5672 | QM_TRY_INSPECT(auto tryResult3138 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult3138 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)" , tryResult3138.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5675, mozilla::dom::quota::Severity::Error); return tryResult3138 .propagateErr(); } const auto& markerFile = tryResult3138 .inspect(); | |||
5673 | const auto& markerFile,auto tryResult3138 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult3138 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)" , tryResult3138.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5675, mozilla::dom::quota::Severity::Error); return tryResult3138 .propagateErr(); } const auto& markerFile = tryResult3138 .inspect(); | |||
5674 | CloneFileAndAppend(aBaseDirectory,auto tryResult3138 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult3138 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)" , tryResult3138.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5675, mozilla::dom::quota::Severity::Error); return tryResult3138 .propagateErr(); } const auto& markerFile = tryResult3138 .inspect(); | |||
5675 | kIdbDeletionMarkerFilePrefix + aDatabaseNameBase))auto tryResult3138 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult3138 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)" , tryResult3138.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5675, mozilla::dom::quota::Severity::Error); return tryResult3138 .propagateErr(); } const auto& markerFile = tryResult3138 .inspect();; | |||
5676 | ||||
5677 | // Callers call this function without checking if the file already exists | |||
5678 | // (idempotent usage). QM_OR_ELSE_WARN_IF is not used here since we just want | |||
5679 | // to log NS_ERROR_FILE_ALREADY_EXISTS result and not spam the reports. | |||
5680 | // | |||
5681 | // TODO: In theory if this file exists, then RemoveDatabaseFilesAndDirectory | |||
5682 | // should have cleaned it up, but obviously we can crash and not clean it up, | |||
5683 | // which is the whole point of the marker file. In that case, we'll realize | |||
5684 | // the marker file exists in OpenDatabaseOp::DoDatabaseWork or | |||
5685 | // GetUsageForOriginInternal and resume the removal by calling | |||
5686 | // RemoveDatabaseFilesAndDirectory again, but we will also try to create the | |||
5687 | // marker file again, so if we see this marker file, it is part | |||
5688 | // of our standard operating procedure to redundantly try and create the | |||
5689 | // marker here. We currently treat this as idempotent usage, but we could | |||
5690 | // add an additional argument to RemoveDatabaseFilesAndDirectory which would | |||
5691 | // indicate that we are resuming an unfinished removal, so the marker already | |||
5692 | // exists and doesn't have to be created, and change | |||
5693 | // QM_OR_ELSE_LOG_VERBOSE_IF to QM_OR_ELSE_WARN_IF in the end. | |||
5694 | QM_TRY(QM_OR_ELSE_LOG_VERBOSE_IF({auto tryResult3139 = (mozilla::dom::quota::OrElseIf( (ToResult (markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [& ](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS >(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5700, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3139)::ok_type>); if ((__builtin_expect(!!(tryResult3139 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5700, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3139.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5700, mozilla::dom::quota::Severity::Error); return tryResult3139 .propagateErr(); }} | |||
5695 | // Expression.{auto tryResult3139 = (mozilla::dom::quota::OrElseIf( (ToResult (markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [& ](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS >(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5700, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3139)::ok_type>); if ((__builtin_expect(!!(tryResult3139 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5700, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3139.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5700, mozilla::dom::quota::Severity::Error); return tryResult3139 .propagateErr(); }} | |||
5696 | MOZ_TO_RESULT(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644)),{auto tryResult3139 = (mozilla::dom::quota::OrElseIf( (ToResult (markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [& ](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS >(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5700, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3139)::ok_type>); if ((__builtin_expect(!!(tryResult3139 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5700, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3139.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5700, mozilla::dom::quota::Severity::Error); return tryResult3139 .propagateErr(); }} | |||
5697 | // Predicate.{auto tryResult3139 = (mozilla::dom::quota::OrElseIf( (ToResult (markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [& ](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS >(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5700, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3139)::ok_type>); if ((__builtin_expect(!!(tryResult3139 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5700, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3139.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5700, mozilla::dom::quota::Severity::Error); return tryResult3139 .propagateErr(); }} | |||
5698 | IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>,{auto tryResult3139 = (mozilla::dom::quota::OrElseIf( (ToResult (markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [& ](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS >(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5700, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3139)::ok_type>); if ((__builtin_expect(!!(tryResult3139 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5700, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3139.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5700, mozilla::dom::quota::Severity::Error); return tryResult3139 .propagateErr(); }} | |||
5699 | // Fallback.{auto tryResult3139 = (mozilla::dom::quota::OrElseIf( (ToResult (markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [& ](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS >(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5700, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3139)::ok_type>); if ((__builtin_expect(!!(tryResult3139 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5700, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3139.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5700, mozilla::dom::quota::Severity::Error); return tryResult3139 .propagateErr(); }} | |||
5700 | ErrToDefaultOk<>)){auto tryResult3139 = (mozilla::dom::quota::OrElseIf( (ToResult (markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [& ](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS >(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5700, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3139)::ok_type>); if ((__builtin_expect(!!(tryResult3139 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5700, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3139.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5700, mozilla::dom::quota::Severity::Error); return tryResult3139 .propagateErr(); }}; | |||
5701 | ||||
5702 | return markerFile; | |||
5703 | } | |||
5704 | ||||
5705 | nsresult RemoveMarkerFile(nsIFile* aMarkerFile) { | |||
5706 | AssertIsOnIOThread(); | |||
5707 | MOZ_ASSERT(aMarkerFile)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMarkerFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMarkerFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aMarkerFile", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5707); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMarkerFile" ")"); do { *((volatile int*)__null) = 5707; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5708 | ||||
5709 | DebugOnly<bool> exists; | |||
5710 | MOZ_ASSERT(NS_SUCCEEDED(aMarkerFile->Exists(&exists)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(aMarkerFile ->Exists(&exists))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(aMarkerFile->Exists(&exists))), 1))))) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(aMarkerFile->Exists(&exists))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(aMarkerFile->Exists(&exists))), 1)))" ")"); do { *((volatile int*)__null) = 5710; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5711 | MOZ_ASSERT(exists)do { static_assert( mozilla::detail::AssertionConditionType< decltype(exists)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(exists))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("exists", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5711); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")" ); do { *((volatile int*)__null) = 5711; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5712 | ||||
5713 | QM_TRY(MOZ_TO_RESULT(aMarkerFile->Remove(false))){auto tryResult3140 = (ToResult(aMarkerFile->Remove(false) )); static_assert(std::is_empty_v<typename decltype(tryResult3140 )::ok_type>); if ((__builtin_expect(!!(tryResult3140.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(aMarkerFile->Remove(false))" , tryResult3140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5713, mozilla::dom::quota::Severity::Error); return tryResult3140 .propagateErr(); }}; | |||
5714 | ||||
5715 | return NS_OK; | |||
5716 | } | |||
5717 | ||||
5718 | Result<Ok, nsresult> DeleteFileManagerDirectory( | |||
5719 | nsIFile& aFileManagerDirectory, QuotaManager* aQuotaManager, | |||
5720 | const PersistenceType aPersistenceType, | |||
5721 | const OriginMetadata& aOriginMetadata) { | |||
5722 | // XXX In theory, deleting can continue for other files in case of a failure, | |||
5723 | // leaving only those files behind that cause the problem actually. However, | |||
5724 | // the current architecture doesn't allow having more databases (for the same | |||
5725 | // name) on disk, so trying to delete as much as possible won't help much | |||
5726 | // because we need to delete entire .files directory in the end anyway. | |||
5727 | QM_TRY(DatabaseFileManager::TraverseFiles({auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5728 | aFileManagerDirectory,{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5729 | // KnownDirEntryOp{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5730 | [&aQuotaManager, aPersistenceType, &aOriginMetadata]({auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5731 | nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5732 | if (isDirectory) {{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5733 | // The journal directory doesn't count towards quota.{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5734 | QM_TRY_RETURN(MOZ_TO_RESULT(DeleteFilesNoQuota(file)));{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5735 | }{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5736 | ||||
5737 | // Stored files do count towards quota.{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5738 | QM_TRY_RETURN({auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5739 | MOZ_TO_RESULT(DeleteFile(file, aQuotaManager, aPersistenceType,{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5740 | aOriginMetadata, Idempotency::Yes)));{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5741 | },{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5742 | // UnknownDirEntryOp{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5743 | [aPersistenceType, &aOriginMetadata]({auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5744 | nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5745 | // Unknown files and directories don't count towards quota.{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5746 | ||||
5747 | if (isDirectory) {{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5748 | QM_TRY_RETURN(MOZ_TO_RESULT(DeleteFilesNoQuota(file)));{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5749 | }{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5750 | ||||
5751 | QM_TRY_RETURN(MOZ_TO_RESULT({auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5752 | DeleteFile(file, /* doesn't count */ nullptr, aPersistenceType,{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5753 | aOriginMetadata, Idempotency::Yes)));{auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }} | |||
5754 | })){auto tryResult3145 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = ( ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!! (tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(file))", tryResult3141.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141 ;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult3143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143 ;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla:: dom::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult3145 )::ok_type>); if ((__builtin_expect(!!(tryResult3145.isErr ()), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3141 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3141.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3141.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5734, mozilla::dom::quota::Severity::Error); } return tryResult3141;}; } {auto tryResult3142 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3142.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3142.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5740, mozilla::dom::quota::Severity::Error); } return tryResult3142;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult3143 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult3143.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult3143.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5748, mozilla::dom::quota::Severity::Error); } return tryResult3143;}; } {auto tryResult3144 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult3144.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult3144.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5753, mozilla::dom::quota::Severity::Error); } return tryResult3144;}; })" , tryResult3145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult3145 .propagateErr(); }}; | |||
5755 | ||||
5756 | QM_TRY_RETURN(MOZ_TO_RESULT(aFileManagerDirectory.Remove(false))){auto tryResult3146 = (ToResult(aFileManagerDirectory.Remove( false))); if ((__builtin_expect(!!(tryResult3146.isErr()), 0) )) { mozilla::dom::quota::HandleError("ToResult(aFileManagerDirectory.Remove(false))" , tryResult3146.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5756, mozilla::dom::quota::Severity::Error); } return tryResult3146 ;}; | |||
5757 | } | |||
5758 | ||||
5759 | // Idempotently delete all the parts of an IndexedDB database including its | |||
5760 | // SQLite database file, its WAL journal, it's shared-memory file, and its | |||
5761 | // Blob/Files sub-directory. A marker file is created prior to performing the | |||
5762 | // deletion so that in the event we crash or fail to successfully delete the | |||
5763 | // database and its files, we will re-attempt the deletion the next time the | |||
5764 | // origin is initialized using this method. Because this means the method may be | |||
5765 | // called on a partially deleted database, this method uses DeleteFile which | |||
5766 | // succeeds when the file we ask it to delete does not actually exist. The | |||
5767 | // marker file is removed once deletion has successfully completed. | |||
5768 | nsresult RemoveDatabaseFilesAndDirectory(nsIFile& aBaseDirectory, | |||
5769 | const nsAString& aDatabaseFilenameBase, | |||
5770 | QuotaManager* aQuotaManager, | |||
5771 | const PersistenceType aPersistenceType, | |||
5772 | const OriginMetadata& aOriginMetadata, | |||
5773 | const nsAString& aDatabaseName) { | |||
5774 | AssertIsOnIOThread(); | |||
5775 | MOZ_ASSERT(!aDatabaseFilenameBase.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseFilenameBase.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseFilenameBase.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!aDatabaseFilenameBase.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5775); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseFilenameBase.IsEmpty()" ")"); do { *((volatile int*)__null) = 5775; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5776 | ||||
5777 | AUTO_PROFILER_LABEL("RemoveDatabaseFilesAndDirectory", DOM)mozilla::AutoProfilerLabel raiiObject5777( "RemoveDatabaseFilesAndDirectory" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
5778 | ||||
5779 | QM_TRY_UNWRAP(auto markerFile,auto tryResult3147 = (CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase )); if ((__builtin_expect(!!(tryResult3147.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase)" , tryResult3147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5780, mozilla::dom::quota::Severity::Error); return tryResult3147 .propagateErr(); } auto markerFile = tryResult3147.unwrap(); | |||
5780 | CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase))auto tryResult3147 = (CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase )); if ((__builtin_expect(!!(tryResult3147.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase)" , tryResult3147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5780, mozilla::dom::quota::Severity::Error); return tryResult3147 .propagateErr(); } auto markerFile = tryResult3147.unwrap();; | |||
5781 | ||||
5782 | // The database file counts towards quota. | |||
5783 | QM_TRY(MOZ_TO_RESULT(DeleteFile({auto tryResult3148 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult3148)::ok_type>); if ((__builtin_expect (!!(tryResult3148.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5785, mozilla::dom::quota::Severity::Error); return tryResult3148 .propagateErr(); }} | |||
5784 | aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager,{auto tryResult3148 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult3148)::ok_type>); if ((__builtin_expect (!!(tryResult3148.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5785, mozilla::dom::quota::Severity::Error); return tryResult3148 .propagateErr(); }} | |||
5785 | aPersistenceType, aOriginMetadata, Idempotency::Yes))){auto tryResult3148 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult3148)::ok_type>); if ((__builtin_expect (!!(tryResult3148.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3148.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5785, mozilla::dom::quota::Severity::Error); return tryResult3148 .propagateErr(); }}; | |||
5786 | ||||
5787 | // .sqlite-journal files don't count towards quota. | |||
5788 | QM_TRY(MOZ_TO_RESULT(DeleteFile(aBaseDirectory,{auto tryResult3149 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult3149)::ok_type>); if ((__builtin_expect (!!(tryResult3149.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5791, mozilla::dom::quota::Severity::Error); return tryResult3149 .propagateErr(); }} | |||
5789 | aDatabaseFilenameBase + kSQLiteJournalSuffix,{auto tryResult3149 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult3149)::ok_type>); if ((__builtin_expect (!!(tryResult3149.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5791, mozilla::dom::quota::Severity::Error); return tryResult3149 .propagateErr(); }} | |||
5790 | /* doesn't count */ nullptr, aPersistenceType,{auto tryResult3149 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult3149)::ok_type>); if ((__builtin_expect (!!(tryResult3149.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5791, mozilla::dom::quota::Severity::Error); return tryResult3149 .propagateErr(); }} | |||
5791 | aOriginMetadata, Idempotency::Yes))){auto tryResult3149 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult3149)::ok_type>); if ((__builtin_expect (!!(tryResult3149.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5791, mozilla::dom::quota::Severity::Error); return tryResult3149 .propagateErr(); }}; | |||
5792 | ||||
5793 | // .sqlite-shm files don't count towards quota. | |||
5794 | QM_TRY(MOZ_TO_RESULT(DeleteFile(aBaseDirectory,{auto tryResult3150 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult3150)::ok_type>); if ((__builtin_expect (!!(tryResult3150.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5797, mozilla::dom::quota::Severity::Error); return tryResult3150 .propagateErr(); }} | |||
5795 | aDatabaseFilenameBase + kSQLiteSHMSuffix,{auto tryResult3150 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult3150)::ok_type>); if ((__builtin_expect (!!(tryResult3150.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5797, mozilla::dom::quota::Severity::Error); return tryResult3150 .propagateErr(); }} | |||
5796 | /* doesn't count */ nullptr, aPersistenceType,{auto tryResult3150 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult3150)::ok_type>); if ((__builtin_expect (!!(tryResult3150.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5797, mozilla::dom::quota::Severity::Error); return tryResult3150 .propagateErr(); }} | |||
5797 | aOriginMetadata, Idempotency::Yes))){auto tryResult3150 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult3150)::ok_type>); if ((__builtin_expect (!!(tryResult3150.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5797, mozilla::dom::quota::Severity::Error); return tryResult3150 .propagateErr(); }}; | |||
5798 | ||||
5799 | // .sqlite-wal files do count towards quota. | |||
5800 | QM_TRY(MOZ_TO_RESULT(DeleteFile({auto tryResult3151 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult3151)::ok_type>); if ((__builtin_expect (!!(tryResult3151.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5802, mozilla::dom::quota::Severity::Error); return tryResult3151 .propagateErr(); }} | |||
5801 | aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager,{auto tryResult3151 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult3151)::ok_type>); if ((__builtin_expect (!!(tryResult3151.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5802, mozilla::dom::quota::Severity::Error); return tryResult3151 .propagateErr(); }} | |||
5802 | aPersistenceType, aOriginMetadata, Idempotency::Yes))){auto tryResult3151 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult3151)::ok_type>); if ((__builtin_expect (!!(tryResult3151.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult3151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5802, mozilla::dom::quota::Severity::Error); return tryResult3151 .propagateErr(); }}; | |||
5803 | ||||
5804 | // The files directory counts towards quota. | |||
5805 | QM_TRY_INSPECT(auto tryResult3152 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult3152.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult3152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5808, mozilla::dom::quota::Severity::Error); return tryResult3152 .propagateErr(); } const auto& fmDirectory = tryResult3152 .inspect(); | |||
5806 | const auto& fmDirectory,auto tryResult3152 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult3152.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult3152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5808, mozilla::dom::quota::Severity::Error); return tryResult3152 .propagateErr(); } const auto& fmDirectory = tryResult3152 .inspect(); | |||
5807 | CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase +auto tryResult3152 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult3152.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult3152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5808, mozilla::dom::quota::Severity::Error); return tryResult3152 .propagateErr(); } const auto& fmDirectory = tryResult3152 .inspect(); | |||
5808 | kFileManagerDirectoryNameSuffix))auto tryResult3152 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult3152.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult3152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5808, mozilla::dom::quota::Severity::Error); return tryResult3152 .propagateErr(); } const auto& fmDirectory = tryResult3152 .inspect();; | |||
5809 | ||||
5810 | QM_TRY_INSPECT(const bool& exists,auto tryResult3153 = (::mozilla::ToResultInvokeMember( (fmDirectory ), &::mozilla::detail::DerefedType<decltype(fmDirectory )>::Exists)); if ((__builtin_expect(!!(tryResult3153.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::Exists)" , tryResult3153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5811, mozilla::dom::quota::Severity::Error); return tryResult3153 .propagateErr(); } const bool& exists = tryResult3153.inspect (); | |||
5811 | MOZ_TO_RESULT_INVOKE_MEMBER(fmDirectory, Exists))auto tryResult3153 = (::mozilla::ToResultInvokeMember( (fmDirectory ), &::mozilla::detail::DerefedType<decltype(fmDirectory )>::Exists)); if ((__builtin_expect(!!(tryResult3153.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::Exists)" , tryResult3153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5811, mozilla::dom::quota::Severity::Error); return tryResult3153 .propagateErr(); } const bool& exists = tryResult3153.inspect ();; | |||
5812 | ||||
5813 | if (exists) { | |||
5814 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult3154 = (::mozilla::ToResultInvokeMember( (fmDirectory ), &::mozilla::detail::DerefedType<decltype(fmDirectory )>::IsDirectory)); if ((__builtin_expect(!!(tryResult3154. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::IsDirectory)" , tryResult3154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5815, mozilla::dom::quota::Severity::Error); return tryResult3154 .propagateErr(); } const bool& isDirectory = tryResult3154 .inspect(); | |||
5815 | MOZ_TO_RESULT_INVOKE_MEMBER(fmDirectory, IsDirectory))auto tryResult3154 = (::mozilla::ToResultInvokeMember( (fmDirectory ), &::mozilla::detail::DerefedType<decltype(fmDirectory )>::IsDirectory)); if ((__builtin_expect(!!(tryResult3154. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::IsDirectory)" , tryResult3154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5815, mozilla::dom::quota::Severity::Error); return tryResult3154 .propagateErr(); } const bool& isDirectory = tryResult3154 .inspect();; | |||
5816 | ||||
5817 | QM_TRY(OkIf(isDirectory), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR){auto tryResult3155 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult3155)::ok_type>); if ((__builtin_expect(!!(tryResult3155.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3155.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5817, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | |||
5818 | ||||
5819 | QM_TRY(DeleteFileManagerDirectory(*fmDirectory, aQuotaManager,{auto tryResult3156 = (DeleteFileManagerDirectory(*fmDirectory , aQuotaManager, aPersistenceType, aOriginMetadata)); static_assert (std::is_empty_v<typename decltype(tryResult3156)::ok_type >); if ((__builtin_expect(!!(tryResult3156.isErr()), 0))) { mozilla::dom::quota::HandleError("DeleteFileManagerDirectory(*fmDirectory, aQuotaManager, aPersistenceType, aOriginMetadata)" , tryResult3156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5820, mozilla::dom::quota::Severity::Error); return tryResult3156 .propagateErr(); }} | |||
5820 | aPersistenceType, aOriginMetadata)){auto tryResult3156 = (DeleteFileManagerDirectory(*fmDirectory , aQuotaManager, aPersistenceType, aOriginMetadata)); static_assert (std::is_empty_v<typename decltype(tryResult3156)::ok_type >); if ((__builtin_expect(!!(tryResult3156.isErr()), 0))) { mozilla::dom::quota::HandleError("DeleteFileManagerDirectory(*fmDirectory, aQuotaManager, aPersistenceType, aOriginMetadata)" , tryResult3156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5820, mozilla::dom::quota::Severity::Error); return tryResult3156 .propagateErr(); }}; | |||
5821 | } | |||
5822 | ||||
5823 | IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get(); | |||
5824 | MOZ_ASSERT_IF(aQuotaManager, mgr)do { if (aQuotaManager) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(mgr)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mgr))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("mgr", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5824); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mgr" ")"); do { *((volatile int*)__null) = 5824; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); } } while (false ); | |||
5825 | ||||
5826 | if (mgr) { | |||
5827 | mgr->InvalidateFileManager(aPersistenceType, aOriginMetadata.mOrigin, | |||
5828 | aDatabaseName); | |||
5829 | } | |||
5830 | ||||
5831 | QM_TRY(MOZ_TO_RESULT(RemoveMarkerFile(markerFile))){auto tryResult3157 = (ToResult(RemoveMarkerFile(markerFile)) ); static_assert(std::is_empty_v<typename decltype(tryResult3157 )::ok_type>); if ((__builtin_expect(!!(tryResult3157.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveMarkerFile(markerFile))" , tryResult3157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5831, mozilla::dom::quota::Severity::Error); return tryResult3157 .propagateErr(); }}; | |||
5832 | ||||
5833 | return NS_OK; | |||
5834 | } | |||
5835 | ||||
5836 | /******************************************************************************* | |||
5837 | * Globals | |||
5838 | ******************************************************************************/ | |||
5839 | ||||
5840 | // Counts the number of "live" Factory, FactoryOp and Database instances. | |||
5841 | uint64_t gBusyCount = 0; | |||
5842 | ||||
5843 | using FactoryOpArray = nsTArray<CheckedUnsafePtr<FactoryOp>>; | |||
5844 | ||||
5845 | StaticAutoPtr<FactoryOpArray> gFactoryOps; | |||
5846 | ||||
5847 | // Maps a database id to information about live database actors. | |||
5848 | using DatabaseActorHashtable = | |||
5849 | nsClassHashtable<nsCStringHashKey, DatabaseActorInfo>; | |||
5850 | ||||
5851 | StaticAutoPtr<DatabaseActorHashtable> gLiveDatabaseHashtable; | |||
5852 | ||||
5853 | StaticRefPtr<ConnectionPool> gConnectionPool; | |||
5854 | ||||
5855 | using DatabaseLoggingInfoHashtable = | |||
5856 | nsTHashMap<nsIDHashKey, DatabaseLoggingInfo*>; | |||
5857 | ||||
5858 | StaticAutoPtr<DatabaseLoggingInfoHashtable> gLoggingInfoHashtable; | |||
5859 | ||||
5860 | using TelemetryIdHashtable = nsTHashMap<nsUint32HashKey, uint32_t>; | |||
5861 | ||||
5862 | StaticAutoPtr<TelemetryIdHashtable> gTelemetryIdHashtable; | |||
5863 | ||||
5864 | // Protects all reads and writes to gTelemetryIdHashtable. | |||
5865 | StaticAutoPtr<Mutex> gTelemetryIdMutex; | |||
5866 | ||||
5867 | // For private browsing, maps the raw database names provided by content to a | |||
5868 | // replacement UUID in order to avoid exposing the name of the database on | |||
5869 | // disk or a directly derived value, such as the non-private-browsing | |||
5870 | // representation. This mapping will be the same for all databases with the | |||
5871 | // same name across all storage keys/origins for the lifetime of the IDB | |||
5872 | // QuotaClient. In tests, the QuotaClient may be created and destroyed multiple | |||
5873 | // times, but for normal browser use the QuotaClient will last until the | |||
5874 | // browser shuts down. Bug 1831835 will improve this implementation to avoid | |||
5875 | // using the same mapping across storage keys and to deal with the resulting | |||
5876 | // lifecycle issues of the additional memory use. | |||
5877 | using StorageDatabaseNameHashtable = nsTHashMap<nsString, nsString>; | |||
5878 | ||||
5879 | StaticAutoPtr<StorageDatabaseNameHashtable> gStorageDatabaseNameHashtable; | |||
5880 | ||||
5881 | // Protects all reads and writes to gStorageDatabaseNameHashtable. | |||
5882 | StaticAutoPtr<Mutex> gStorageDatabaseNameMutex; | |||
5883 | ||||
5884 | #ifdef DEBUG1 | |||
5885 | ||||
5886 | StaticRefPtr<DEBUGThreadSlower> gDEBUGThreadSlower; | |||
5887 | ||||
5888 | #endif // DEBUG | |||
5889 | ||||
5890 | void IncreaseBusyCount() { | |||
5891 | AssertIsOnBackgroundThread(); | |||
5892 | ||||
5893 | // If this is the first instance then we need to do some initialization. | |||
5894 | if (!gBusyCount) { | |||
5895 | MOZ_ASSERT(!gFactoryOps)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!gFactoryOps)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!gFactoryOps))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!gFactoryOps", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5895); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gFactoryOps" ")"); do { *((volatile int*)__null) = 5895; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5896 | gFactoryOps = new FactoryOpArray(); | |||
5897 | ||||
5898 | MOZ_ASSERT(!gLiveDatabaseHashtable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!gLiveDatabaseHashtable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!gLiveDatabaseHashtable))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!gLiveDatabaseHashtable" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5898); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable" ")"); do { *((volatile int*)__null) = 5898; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5899 | gLiveDatabaseHashtable = new DatabaseActorHashtable(); | |||
5900 | ||||
5901 | MOZ_ASSERT(!gLoggingInfoHashtable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!gLoggingInfoHashtable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!gLoggingInfoHashtable))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!gLoggingInfoHashtable" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5901); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLoggingInfoHashtable" ")"); do { *((volatile int*)__null) = 5901; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5902 | gLoggingInfoHashtable = new DatabaseLoggingInfoHashtable(); | |||
5903 | ||||
5904 | #ifdef DEBUG1 | |||
5905 | if (kDEBUGThreadPriority != nsISupportsPriority::PRIORITY_NORMAL) { | |||
5906 | NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been " "modified!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5908) | |||
5907 | "PBackground thread debugging enabled, priority has been "NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been " "modified!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5908) | |||
5908 | "modified!")NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been " "modified!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5908); | |||
5909 | nsCOMPtr<nsISupportsPriority> thread = | |||
5910 | do_QueryInterface(NS_GetCurrentThread()); | |||
5911 | MOZ_ASSERT(thread)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thread)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(thread))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thread", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5911); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")" ); do { *((volatile int*)__null) = 5911; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5912 | ||||
5913 | MOZ_ALWAYS_SUCCEEDS(thread->SetPriority(kDEBUGThreadPriority))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (thread->SetPriority(kDEBUGThreadPriority))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(thread->SetPriority(kDEBUGThreadPriority))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5913); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(thread->SetPriority(kDEBUGThreadPriority))" ")"); do { *((volatile int*)__null) = 5913; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
5914 | } | |||
5915 | ||||
5916 | if (kDEBUGThreadSleepMS) { | |||
5917 | NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every " "event!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5919) | |||
5918 | "PBackground thread debugging enabled, sleeping after every "NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every " "event!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5919) | |||
5919 | "event!")NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every " "event!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5919); | |||
5920 | nsCOMPtr<nsIThreadInternal> thread = | |||
5921 | do_QueryInterface(NS_GetCurrentThread()); | |||
5922 | MOZ_ASSERT(thread)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thread)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(thread))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thread", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5922); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")" ); do { *((volatile int*)__null) = 5922; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5923 | ||||
5924 | gDEBUGThreadSlower = new DEBUGThreadSlower(); | |||
5925 | ||||
5926 | MOZ_ALWAYS_SUCCEEDS(thread->AddObserver(gDEBUGThreadSlower))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (thread->AddObserver(gDEBUGThreadSlower))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(thread->AddObserver(gDEBUGThreadSlower))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5926); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(thread->AddObserver(gDEBUGThreadSlower))" ")"); do { *((volatile int*)__null) = 5926; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
5927 | } | |||
5928 | #endif // DEBUG | |||
5929 | } | |||
5930 | ||||
5931 | gBusyCount++; | |||
5932 | } | |||
5933 | ||||
5934 | void DecreaseBusyCount() { | |||
5935 | AssertIsOnBackgroundThread(); | |||
5936 | MOZ_ASSERT(gBusyCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gBusyCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gBusyCount))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("gBusyCount", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5936); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gBusyCount" ")"); do { *((volatile int*)__null) = 5936; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5937 | ||||
5938 | // Clean up if there are no more instances. | |||
5939 | if (--gBusyCount == 0) { | |||
5940 | MOZ_ASSERT(gLoggingInfoHashtable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gLoggingInfoHashtable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gLoggingInfoHashtable))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("gLoggingInfoHashtable" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5940); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable" ")"); do { *((volatile int*)__null) = 5940; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5941 | gLoggingInfoHashtable = nullptr; | |||
5942 | ||||
5943 | MOZ_ASSERT(gLiveDatabaseHashtable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gLiveDatabaseHashtable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gLiveDatabaseHashtable))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("gLiveDatabaseHashtable" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5943); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLiveDatabaseHashtable" ")"); do { *((volatile int*)__null) = 5943; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5944 | MOZ_ASSERT(!gLiveDatabaseHashtable->Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!gLiveDatabaseHashtable->Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!gLiveDatabaseHashtable-> Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!gLiveDatabaseHashtable->Count()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5944); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable->Count()" ")"); do { *((volatile int*)__null) = 5944; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5945 | gLiveDatabaseHashtable = nullptr; | |||
5946 | ||||
5947 | MOZ_ASSERT(gFactoryOps)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gFactoryOps)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gFactoryOps))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("gFactoryOps", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5947); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps" ")"); do { *((volatile int*)__null) = 5947; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5948 | MOZ_ASSERT(gFactoryOps->IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(gFactoryOps->IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gFactoryOps->IsEmpty()))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("gFactoryOps->IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5948); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps->IsEmpty()" ")"); do { *((volatile int*)__null) = 5948; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5949 | gFactoryOps = nullptr; | |||
5950 | ||||
5951 | #ifdef DEBUG1 | |||
5952 | if (kDEBUGThreadPriority != nsISupportsPriority::PRIORITY_NORMAL) { | |||
5953 | nsCOMPtr<nsISupportsPriority> thread = | |||
5954 | do_QueryInterface(NS_GetCurrentThread()); | |||
5955 | MOZ_ASSERT(thread)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thread)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(thread))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thread", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5955); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")" ); do { *((volatile int*)__null) = 5955; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5956 | ||||
5957 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL) )), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5958); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))" ")"); do { *((volatile int*)__null) = 5958; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
5958 | thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL) )), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5958); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))" ")"); do { *((volatile int*)__null) = 5958; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
5959 | } | |||
5960 | ||||
5961 | if (kDEBUGThreadSleepMS) { | |||
5962 | MOZ_ASSERT(gDEBUGThreadSlower)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gDEBUGThreadSlower)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gDEBUGThreadSlower))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("gDEBUGThreadSlower" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5962); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gDEBUGThreadSlower" ")"); do { *((volatile int*)__null) = 5962; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5963 | ||||
5964 | nsCOMPtr<nsIThreadInternal> thread = | |||
5965 | do_QueryInterface(NS_GetCurrentThread()); | |||
5966 | MOZ_ASSERT(thread)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thread)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(thread))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thread", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5966); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")" ); do { *((volatile int*)__null) = 5966; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
5967 | ||||
5968 | MOZ_ALWAYS_SUCCEEDS(thread->RemoveObserver(gDEBUGThreadSlower))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (thread->RemoveObserver(gDEBUGThreadSlower))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(thread->RemoveObserver(gDEBUGThreadSlower))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 5968); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(thread->RemoveObserver(gDEBUGThreadSlower))" ")"); do { *((volatile int*)__null) = 5968; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
5969 | ||||
5970 | gDEBUGThreadSlower = nullptr; | |||
5971 | } | |||
5972 | #endif // DEBUG | |||
5973 | } | |||
5974 | } | |||
5975 | ||||
5976 | template <typename Condition> | |||
5977 | void InvalidateLiveDatabasesMatching(const Condition& aCondition) { | |||
5978 | AssertIsOnBackgroundThread(); | |||
5979 | ||||
5980 | if (!gLiveDatabaseHashtable) { | |||
5981 | return; | |||
5982 | } | |||
5983 | ||||
5984 | // Invalidating a Database will cause it to be removed from the | |||
5985 | // gLiveDatabaseHashtable entries' mLiveDatabases, and, if it was the last | |||
5986 | // element in mLiveDatabases, to remove the whole hashtable entry. Therefore, | |||
5987 | // we need to make a temporary list of the databases to invalidate to avoid | |||
5988 | // iterator invalidation. | |||
5989 | ||||
5990 | nsTArray<SafeRefPtr<Database>> databases; | |||
5991 | ||||
5992 | for (const auto& liveDatabasesEntry : gLiveDatabaseHashtable->Values()) { | |||
5993 | for (const auto& database : liveDatabasesEntry->mLiveDatabases) { | |||
5994 | if (aCondition(*database)) { | |||
5995 | databases.AppendElement( | |||
5996 | SafeRefPtr{database.get(), AcquireStrongRefFromRawPtr{}}); | |||
5997 | } | |||
5998 | } | |||
5999 | } | |||
6000 | ||||
6001 | for (const auto& database : databases) { | |||
6002 | database->Invalidate(); | |||
6003 | } | |||
6004 | } | |||
6005 | ||||
6006 | uint32_t TelemetryIdForFile(nsIFile* aFile) { | |||
6007 | // May be called on any thread! | |||
6008 | ||||
6009 | MOZ_ASSERT(aFile)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aFile)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(aFile))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("aFile", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6009); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFile" ")") ; do { *((volatile int*)__null) = 6009; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6010 | MOZ_ASSERT(gTelemetryIdMutex)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gTelemetryIdMutex)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gTelemetryIdMutex))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("gTelemetryIdMutex" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6010); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gTelemetryIdMutex" ")"); do { *((volatile int*)__null) = 6010; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6011 | ||||
6012 | // The storage directory is structured like this: | |||
6013 | // | |||
6014 | // <profile>/storage/<persistence>/<origin>/idb/<filename>.sqlite | |||
6015 | // | |||
6016 | // For the purposes of this function we're only concerned with the | |||
6017 | // <persistence>, <origin>, and <filename> pieces. | |||
6018 | ||||
6019 | nsString filename; | |||
6020 | MOZ_ALWAYS_SUCCEEDS(aFile->GetLeafName(filename))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aFile->GetLeafName(filename))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aFile->GetLeafName(filename))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6020); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aFile->GetLeafName(filename))" ")"); do { *((volatile int*)__null) = 6020; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); } } while (false ); | |||
6021 | ||||
6022 | // Make sure we were given a database file. | |||
6023 | MOZ_ASSERT(StringEndsWith(filename, kSQLiteSuffix))do { static_assert( mozilla::detail::AssertionConditionType< decltype(StringEndsWith(filename, kSQLiteSuffix))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(StringEndsWith(filename, kSQLiteSuffix)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("StringEndsWith(filename, kSQLiteSuffix)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6023); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StringEndsWith(filename, kSQLiteSuffix)" ")"); do { *((volatile int*)__null) = 6023; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6024 | ||||
6025 | filename.Truncate(filename.Length() - kSQLiteSuffix.Length()); | |||
6026 | ||||
6027 | // Get the "idb" directory. | |||
6028 | nsCOMPtr<nsIFile> idbDirectory; | |||
6029 | MOZ_ALWAYS_SUCCEEDS(aFile->GetParent(getter_AddRefs(idbDirectory)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aFile->GetParent(getter_AddRefs(idbDirectory)))), 1)))), 1 ))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aFile->GetParent(getter_AddRefs(idbDirectory)))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6029); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aFile->GetParent(getter_AddRefs(idbDirectory)))" ")"); do { *((volatile int*)__null) = 6029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
6030 | ||||
6031 | DebugOnly<nsString> idbLeafName; | |||
6032 | MOZ_ASSERT(NS_SUCCEEDED(idbDirectory->GetLeafName(idbLeafName)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(idbDirectory ->GetLeafName(idbLeafName))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(idbDirectory->GetLeafName(idbLeafName))), 1 )))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(idbDirectory->GetLeafName(idbLeafName))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6032); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(idbDirectory->GetLeafName(idbLeafName))), 1)))" ")"); do { *((volatile int*)__null) = 6032; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6033 | MOZ_ASSERT(static_cast<nsString&>(idbLeafName).EqualsLiteral("idb"))do { static_assert( mozilla::detail::AssertionConditionType< decltype(static_cast<nsString&>(idbLeafName).EqualsLiteral ("idb"))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(static_cast<nsString&>(idbLeafName).EqualsLiteral ("idb")))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("static_cast<nsString&>(idbLeafName).EqualsLiteral(\"idb\")" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6033); AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<nsString&>(idbLeafName).EqualsLiteral(\"idb\")" ")"); do { *((volatile int*)__null) = 6033; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6034 | ||||
6035 | // Get the <origin> directory. | |||
6036 | nsCOMPtr<nsIFile> originDirectory; | |||
6037 | MOZ_ALWAYS_SUCCEEDS(idbDirectory->GetParent(getter_AddRefs(originDirectory)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (idbDirectory->GetParent(getter_AddRefs(originDirectory))) ), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(idbDirectory->GetParent(getter_AddRefs(originDirectory)))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6037); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(idbDirectory->GetParent(getter_AddRefs(originDirectory)))" ")"); do { *((volatile int*)__null) = 6037; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
6038 | ||||
6039 | nsString origin; | |||
6040 | MOZ_ALWAYS_SUCCEEDS(originDirectory->GetLeafName(origin))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (originDirectory->GetLeafName(origin))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(originDirectory->GetLeafName(origin))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6040); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(originDirectory->GetLeafName(origin))" ")"); do { *((volatile int*)__null) = 6040; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
6041 | ||||
6042 | // Any databases in these directories are owned by the application and should | |||
6043 | // not have their filenames masked. Hopefully they also appear in the | |||
6044 | // Telemetry.cpp whitelist. | |||
6045 | if (origin.EqualsLiteral("chrome") || | |||
6046 | origin.EqualsLiteral("moz-safe-about+home")) { | |||
6047 | return 0; | |||
6048 | } | |||
6049 | ||||
6050 | // Get the <persistence> directory. | |||
6051 | nsCOMPtr<nsIFile> persistenceDirectory; | |||
6052 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (originDirectory->GetParent(getter_AddRefs(persistenceDirectory )))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6053); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))" ")"); do { *((volatile int*)__null) = 6053; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
6053 | originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (originDirectory->GetParent(getter_AddRefs(persistenceDirectory )))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6053); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))" ")"); do { *((volatile int*)__null) = 6053; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
6054 | ||||
6055 | nsString persistence; | |||
6056 | MOZ_ALWAYS_SUCCEEDS(persistenceDirectory->GetLeafName(persistence))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (persistenceDirectory->GetLeafName(persistence))), 1)))), 1 ))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(persistenceDirectory->GetLeafName(persistence))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6056); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(persistenceDirectory->GetLeafName(persistence))" ")"); do { *((volatile int*)__null) = 6056; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
6057 | ||||
6058 | constexpr auto separator = u"*"_ns; | |||
6059 | ||||
6060 | uint32_t hashValue = | |||
6061 | HashString(persistence + separator + origin + separator + filename); | |||
6062 | ||||
6063 | MutexAutoLock lock(*gTelemetryIdMutex); | |||
6064 | ||||
6065 | if (!gTelemetryIdHashtable) { | |||
6066 | gTelemetryIdHashtable = new TelemetryIdHashtable(); | |||
6067 | } | |||
6068 | ||||
6069 | return gTelemetryIdHashtable->LookupOrInsertWith(hashValue, [] { | |||
6070 | static uint32_t sNextId = 1; | |||
6071 | ||||
6072 | // We're locked, no need for atomics. | |||
6073 | return sNextId++; | |||
6074 | }); | |||
6075 | } | |||
6076 | ||||
6077 | nsAutoString GetDatabaseFilenameBase(const nsAString& aDatabaseName, | |||
6078 | bool aIsPrivate) { | |||
6079 | nsAutoString databaseFilenameBase; | |||
6080 | ||||
6081 | if (aIsPrivate) { | |||
6082 | MOZ_DIAGNOSTIC_ASSERT(gStorageDatabaseNameMutex)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gStorageDatabaseNameMutex)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gStorageDatabaseNameMutex))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("gStorageDatabaseNameMutex" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6082); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "gStorageDatabaseNameMutex" ")"); do { *((volatile int*)__null) = 6082; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6083 | ||||
6084 | MutexAutoLock lock(*gStorageDatabaseNameMutex); | |||
6085 | ||||
6086 | if (!gStorageDatabaseNameHashtable) { | |||
6087 | gStorageDatabaseNameHashtable = new StorageDatabaseNameHashtable(); | |||
6088 | } | |||
6089 | ||||
6090 | databaseFilenameBase.Append( | |||
6091 | gStorageDatabaseNameHashtable->LookupOrInsertWith(aDatabaseName, []() { | |||
6092 | return NSID_TrimBracketsUTF16(nsID::GenerateUUID()); | |||
6093 | })); | |||
6094 | ||||
6095 | return databaseFilenameBase; | |||
6096 | } | |||
6097 | ||||
6098 | // WARNING: do not change this hash function. See the comment in HashName() | |||
6099 | // for details. | |||
6100 | databaseFilenameBase.AppendInt(HashName(aDatabaseName)); | |||
6101 | ||||
6102 | nsAutoCString escapedName; | |||
6103 | if (!NS_Escape(NS_ConvertUTF16toUTF8(aDatabaseName), escapedName, | |||
6104 | url_XPAlphas)) { | |||
6105 | MOZ_CRASH("Can't escape database name!")do { do { } while (false); MOZ_ReportCrash("" "Can't escape database name!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6105); AnnotateMozCrashReason("MOZ_CRASH(" "Can't escape database name!" ")"); do { *((volatile int*)__null) = 6105; __attribute__((nomerge )) ::abort(); } while (false); } while (false); | |||
6106 | } | |||
6107 | ||||
6108 | const char* forwardIter = escapedName.BeginReading(); | |||
6109 | const char* backwardIter = escapedName.EndReading() - 1; | |||
6110 | ||||
6111 | nsAutoCString substring; | |||
6112 | while (forwardIter <= backwardIter && substring.Length() < 21) { | |||
6113 | if (substring.Length() % 2) { | |||
6114 | substring.Append(*backwardIter--); | |||
6115 | } else { | |||
6116 | substring.Append(*forwardIter++); | |||
6117 | } | |||
6118 | } | |||
6119 | ||||
6120 | databaseFilenameBase.AppendASCII(substring.get(), substring.Length()); | |||
6121 | ||||
6122 | return databaseFilenameBase; | |||
6123 | } | |||
6124 | ||||
6125 | const CommonIndexOpenCursorParams& GetCommonIndexOpenCursorParams( | |||
6126 | const OpenCursorParams& aParams) { | |||
6127 | switch (aParams.type()) { | |||
6128 | case OpenCursorParams::TIndexOpenCursorParams: | |||
6129 | return aParams.get_IndexOpenCursorParams().commonIndexParams(); | |||
6130 | case OpenCursorParams::TIndexOpenKeyCursorParams: | |||
6131 | return aParams.get_IndexOpenKeyCursorParams().commonIndexParams(); | |||
6132 | default: | |||
6133 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6133); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 6133; __attribute__((nomerge )) ::abort(); } while (false); } while (false); | |||
6134 | } | |||
6135 | } | |||
6136 | ||||
6137 | const CommonOpenCursorParams& GetCommonOpenCursorParams( | |||
6138 | const OpenCursorParams& aParams) { | |||
6139 | switch (aParams.type()) { | |||
6140 | case OpenCursorParams::TObjectStoreOpenCursorParams: | |||
6141 | return aParams.get_ObjectStoreOpenCursorParams().commonParams(); | |||
6142 | case OpenCursorParams::TObjectStoreOpenKeyCursorParams: | |||
6143 | return aParams.get_ObjectStoreOpenKeyCursorParams().commonParams(); | |||
6144 | case OpenCursorParams::TIndexOpenCursorParams: | |||
6145 | case OpenCursorParams::TIndexOpenKeyCursorParams: | |||
6146 | return GetCommonIndexOpenCursorParams(aParams).commonParams(); | |||
6147 | default: | |||
6148 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6148); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 6148; __attribute__((nomerge )) ::abort(); } while (false); } while (false); | |||
6149 | } | |||
6150 | } | |||
6151 | ||||
6152 | // TODO: Using nsCString as a return type here seems to lead to a dependency on | |||
6153 | // some temporaries, which I did not expect. Is it a good idea that the default | |||
6154 | // operator+ behaviour constructs such strings? It is certainly useful as an | |||
6155 | // optimization, but this should be better done via an appropriately named | |||
6156 | // function rather than an operator. | |||
6157 | nsAutoCString MakeColumnPairSelectionList( | |||
6158 | const nsLiteralCString& aPlainColumnName, | |||
6159 | const nsLiteralCString& aLocaleAwareColumnName, | |||
6160 | const nsLiteralCString& aSortColumnAlias, const bool aIsLocaleAware) { | |||
6161 | return aPlainColumnName + | |||
6162 | (aIsLocaleAware ? EmptyCString() : " as "_ns + aSortColumnAlias) + | |||
6163 | ", "_ns + aLocaleAwareColumnName + | |||
6164 | (aIsLocaleAware ? " as "_ns + aSortColumnAlias : EmptyCString()); | |||
6165 | } | |||
6166 | ||||
6167 | constexpr bool IsIncreasingOrder(const IDBCursorDirection aDirection) { | |||
6168 | MOZ_ASSERT(aDirection == IDBCursorDirection::Next ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6171); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { *((volatile int*)__null) = 6171; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
6169 | aDirection == IDBCursorDirection::Nextunique ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6171); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { *((volatile int*)__null) = 6171; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
6170 | aDirection == IDBCursorDirection::Prev ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6171); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { *((volatile int*)__null) = 6171; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
6171 | aDirection == IDBCursorDirection::Prevunique)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6171); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { *((volatile int*)__null) = 6171; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6172 | ||||
6173 | return aDirection == IDBCursorDirection::Next || | |||
6174 | aDirection == IDBCursorDirection::Nextunique; | |||
6175 | } | |||
6176 | ||||
6177 | constexpr bool IsUnique(const IDBCursorDirection aDirection) { | |||
6178 | MOZ_ASSERT(aDirection == IDBCursorDirection::Next ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6181); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { *((volatile int*)__null) = 6181; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
6179 | aDirection == IDBCursorDirection::Nextunique ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6181); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { *((volatile int*)__null) = 6181; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
6180 | aDirection == IDBCursorDirection::Prev ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6181); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { *((volatile int*)__null) = 6181; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
6181 | aDirection == IDBCursorDirection::Prevunique)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection ::Prev || aDirection == IDBCursorDirection::Prevunique))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6181); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { *((volatile int*)__null) = 6181; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6182 | ||||
6183 | return aDirection == IDBCursorDirection::Nextunique || | |||
6184 | aDirection == IDBCursorDirection::Prevunique; | |||
6185 | } | |||
6186 | ||||
6187 | // TODO: In principle, this could be constexpr, if operator+(nsLiteralCString, | |||
6188 | // nsLiteralCString) were constexpr and returned a literal type. | |||
6189 | nsAutoCString MakeDirectionClause(const IDBCursorDirection aDirection) { | |||
6190 | return " ORDER BY "_ns + kColumnNameKey + | |||
6191 | (IsIncreasingOrder(aDirection) ? " ASC"_ns : " DESC"_ns); | |||
6192 | } | |||
6193 | ||||
6194 | enum struct ComparisonOperator { | |||
6195 | LessThan, | |||
6196 | LessOrEquals, | |||
6197 | Equals, | |||
6198 | GreaterThan, | |||
6199 | GreaterOrEquals, | |||
6200 | }; | |||
6201 | ||||
6202 | constexpr nsLiteralCString GetComparisonOperatorString( | |||
6203 | const ComparisonOperator aComparisonOperator) { | |||
6204 | switch (aComparisonOperator) { | |||
6205 | case ComparisonOperator::LessThan: | |||
6206 | return "<"_ns; | |||
6207 | case ComparisonOperator::LessOrEquals: | |||
6208 | return "<="_ns; | |||
6209 | case ComparisonOperator::Equals: | |||
6210 | return "=="_ns; | |||
6211 | case ComparisonOperator::GreaterThan: | |||
6212 | return ">"_ns; | |||
6213 | case ComparisonOperator::GreaterOrEquals: | |||
6214 | return ">="_ns; | |||
6215 | } | |||
6216 | ||||
6217 | // TODO: This is just to silence the "control reaches end of non-void | |||
6218 | // function" warning. Cannot use MOZ_CRASH in a constexpr function, | |||
6219 | // unfortunately. | |||
6220 | return ""_ns; | |||
6221 | } | |||
6222 | ||||
6223 | nsAutoCString GetKeyClause(const nsACString& aColumnName, | |||
6224 | const ComparisonOperator aComparisonOperator, | |||
6225 | const nsLiteralCString& aStmtParamName) { | |||
6226 | return aColumnName + " "_ns + | |||
6227 | GetComparisonOperatorString(aComparisonOperator) + " :"_ns + | |||
6228 | aStmtParamName; | |||
6229 | } | |||
6230 | ||||
6231 | nsAutoCString GetSortKeyClause(const ComparisonOperator aComparisonOperator, | |||
6232 | const nsLiteralCString& aStmtParamName) { | |||
6233 | return GetKeyClause(kColumnNameAliasSortKey, aComparisonOperator, | |||
6234 | aStmtParamName); | |||
6235 | } | |||
6236 | ||||
6237 | template <IDBCursorType CursorType> | |||
6238 | struct PopulateResponseHelper; | |||
6239 | ||||
6240 | struct CommonPopulateResponseHelper { | |||
6241 | explicit CommonPopulateResponseHelper( | |||
6242 | const TransactionDatabaseOperationBase& aOp) | |||
6243 | : mOp{aOp} {} | |||
6244 | ||||
6245 | nsresult GetKeys(mozIStorageStatement* const aStmt, | |||
6246 | Key* const aOptOutSortKey) { | |||
6247 | QM_TRY(MOZ_TO_RESULT(GetCommonKeys(aStmt))){auto tryResult3158 = (ToResult(GetCommonKeys(aStmt))); static_assert (std::is_empty_v<typename decltype(tryResult3158)::ok_type >); if ((__builtin_expect(!!(tryResult3158.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(GetCommonKeys(aStmt))" , tryResult3158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6247, mozilla::dom::quota::Severity::Error); return tryResult3158 .propagateErr(); }}; | |||
6248 | ||||
6249 | if (aOptOutSortKey) { | |||
6250 | *aOptOutSortKey = mPosition; | |||
6251 | } | |||
6252 | ||||
6253 | return NS_OK; | |||
6254 | } | |||
6255 | ||||
6256 | nsresult GetCommonKeys(mozIStorageStatement* const aStmt) { | |||
6257 | MOZ_ASSERT(mPosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mPosition.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mPosition.IsUnset()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mPosition.IsUnset()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6257); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPosition.IsUnset()" ")"); do { *((volatile int*)__null) = 6257; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6258 | ||||
6259 | QM_TRY(MOZ_TO_RESULT(mPosition.SetFromStatement(aStmt, 0))){auto tryResult3159 = (ToResult(mPosition.SetFromStatement(aStmt , 0))); static_assert(std::is_empty_v<typename decltype(tryResult3159 )::ok_type>); if ((__builtin_expect(!!(tryResult3159.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mPosition.SetFromStatement(aStmt, 0))" , tryResult3159.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6259, mozilla::dom::quota::Severity::Error); return tryResult3159 .propagateErr(); }}; | |||
6260 | ||||
6261 | IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: Populating response with key %s", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "Populating%.0s" , mozilla::dom::indexedDB::LoggingIdString<true>(mOp.BackgroundChildLoggingId ()).get(), mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber (), mPosition.GetBuffer().get()) | |||
6262 | "PRELOAD: Populating response with key %s", "Populating%.0s",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: Populating response with key %s", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "Populating%.0s" , mozilla::dom::indexedDB::LoggingIdString<true>(mOp.BackgroundChildLoggingId ()).get(), mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber (), mPosition.GetBuffer().get()) | |||
6263 | IDB_LOG_ID_STRING(mOp.BackgroundChildLoggingId()),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: Populating response with key %s", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "Populating%.0s" , mozilla::dom::indexedDB::LoggingIdString<true>(mOp.BackgroundChildLoggingId ()).get(), mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber (), mPosition.GetBuffer().get()) | |||
6264 | mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber(),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: Populating response with key %s", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "Populating%.0s" , mozilla::dom::indexedDB::LoggingIdString<true>(mOp.BackgroundChildLoggingId ()).get(), mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber (), mPosition.GetBuffer().get()) | |||
6265 | mPosition.GetBuffer().get())mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: Populating response with key %s", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "Populating%.0s" , mozilla::dom::indexedDB::LoggingIdString<true>(mOp.BackgroundChildLoggingId ()).get(), mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber (), mPosition.GetBuffer().get()); | |||
6266 | ||||
6267 | return NS_OK; | |||
6268 | } | |||
6269 | ||||
6270 | template <typename Response> | |||
6271 | void FillKeys(Response& aResponse) { | |||
6272 | MOZ_ASSERT(!mPosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mPosition.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mPosition.IsUnset()))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mPosition.IsUnset()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6272); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mPosition.IsUnset()" ")"); do { *((volatile int*)__null) = 6272; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6273 | aResponse.key() = std::move(mPosition); | |||
6274 | } | |||
6275 | ||||
6276 | template <typename Response> | |||
6277 | static size_t GetKeySize(const Response& aResponse) { | |||
6278 | return aResponse.key().GetBuffer().Length(); | |||
6279 | } | |||
6280 | ||||
6281 | protected: | |||
6282 | const Key& GetPosition() const { return mPosition; } | |||
6283 | ||||
6284 | private: | |||
6285 | const TransactionDatabaseOperationBase& mOp; | |||
6286 | Key mPosition; | |||
6287 | }; | |||
6288 | ||||
6289 | struct IndexPopulateResponseHelper : CommonPopulateResponseHelper { | |||
6290 | using CommonPopulateResponseHelper::CommonPopulateResponseHelper; | |||
6291 | ||||
6292 | nsresult GetKeys(mozIStorageStatement* const aStmt, | |||
6293 | Key* const aOptOutSortKey) { | |||
6294 | MOZ_ASSERT(mLocaleAwarePosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLocaleAwarePosition.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLocaleAwarePosition.IsUnset ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mLocaleAwarePosition.IsUnset()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6294); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLocaleAwarePosition.IsUnset()" ")"); do { *((volatile int*)__null) = 6294; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6295 | MOZ_ASSERT(mObjectStorePosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mObjectStorePosition.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mObjectStorePosition.IsUnset ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mObjectStorePosition.IsUnset()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6295); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStorePosition.IsUnset()" ")"); do { *((volatile int*)__null) = 6295; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6296 | ||||
6297 | QM_TRY(MOZ_TO_RESULT(CommonPopulateResponseHelper::GetCommonKeys(aStmt))){auto tryResult3160 = (ToResult(CommonPopulateResponseHelper:: GetCommonKeys(aStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3160)::ok_type>); if ((__builtin_expect (!!(tryResult3160.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(CommonPopulateResponseHelper::GetCommonKeys(aStmt))" , tryResult3160.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6297, mozilla::dom::quota::Severity::Error); return tryResult3160 .propagateErr(); }}; | |||
6298 | ||||
6299 | QM_TRY(MOZ_TO_RESULT(mLocaleAwarePosition.SetFromStatement(aStmt, 1))){auto tryResult3161 = (ToResult(mLocaleAwarePosition.SetFromStatement (aStmt, 1))); static_assert(std::is_empty_v<typename decltype (tryResult3161)::ok_type>); if ((__builtin_expect(!!(tryResult3161 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mLocaleAwarePosition.SetFromStatement(aStmt, 1))" , tryResult3161.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6299, mozilla::dom::quota::Severity::Error); return tryResult3161 .propagateErr(); }}; | |||
6300 | ||||
6301 | QM_TRY(MOZ_TO_RESULT(mObjectStorePosition.SetFromStatement(aStmt, 2))){auto tryResult3162 = (ToResult(mObjectStorePosition.SetFromStatement (aStmt, 2))); static_assert(std::is_empty_v<typename decltype (tryResult3162)::ok_type>); if ((__builtin_expect(!!(tryResult3162 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mObjectStorePosition.SetFromStatement(aStmt, 2))" , tryResult3162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6301, mozilla::dom::quota::Severity::Error); return tryResult3162 .propagateErr(); }}; | |||
6302 | ||||
6303 | if (aOptOutSortKey) { | |||
6304 | *aOptOutSortKey = | |||
6305 | mLocaleAwarePosition.IsUnset() ? GetPosition() : mLocaleAwarePosition; | |||
6306 | } | |||
6307 | ||||
6308 | return NS_OK; | |||
6309 | } | |||
6310 | ||||
6311 | template <typename Response> | |||
6312 | void FillKeys(Response& aResponse) { | |||
6313 | MOZ_ASSERT(!mLocaleAwarePosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mLocaleAwarePosition.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mLocaleAwarePosition.IsUnset ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mLocaleAwarePosition.IsUnset()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6313); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mLocaleAwarePosition.IsUnset()" ")"); do { *((volatile int*)__null) = 6313; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6314 | MOZ_ASSERT(!mObjectStorePosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mObjectStorePosition.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mObjectStorePosition.IsUnset ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mObjectStorePosition.IsUnset()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6314); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStorePosition.IsUnset()" ")"); do { *((volatile int*)__null) = 6314; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6315 | ||||
6316 | CommonPopulateResponseHelper::FillKeys(aResponse); | |||
6317 | aResponse.sortKey() = std::move(mLocaleAwarePosition); | |||
6318 | aResponse.objectKey() = std::move(mObjectStorePosition); | |||
6319 | } | |||
6320 | ||||
6321 | template <typename Response> | |||
6322 | static size_t GetKeySize(Response& aResponse) { | |||
6323 | return CommonPopulateResponseHelper::GetKeySize(aResponse) + | |||
6324 | aResponse.sortKey().GetBuffer().Length() + | |||
6325 | aResponse.objectKey().GetBuffer().Length(); | |||
6326 | } | |||
6327 | ||||
6328 | private: | |||
6329 | Key mLocaleAwarePosition, mObjectStorePosition; | |||
6330 | }; | |||
6331 | ||||
6332 | struct KeyPopulateResponseHelper { | |||
6333 | static constexpr nsresult MaybeGetCloneInfo( | |||
6334 | mozIStorageStatement* const /*aStmt*/, const CursorBase& /*aCursor*/) { | |||
6335 | return NS_OK; | |||
6336 | } | |||
6337 | ||||
6338 | template <typename Response> | |||
6339 | static constexpr void MaybeFillCloneInfo(Response& /*aResponse*/, | |||
6340 | FilesArray* const /*aFiles*/) {} | |||
6341 | ||||
6342 | template <typename Response> | |||
6343 | static constexpr size_t MaybeGetCloneInfoSize(const Response& /*aResponse*/) { | |||
6344 | return 0; | |||
6345 | } | |||
6346 | }; | |||
6347 | ||||
6348 | template <bool StatementHasIndexKeyBindings> | |||
6349 | struct ValuePopulateResponseHelper { | |||
6350 | nsresult MaybeGetCloneInfo(mozIStorageStatement* const aStmt, | |||
6351 | const ValueCursorBase& aCursor) { | |||
6352 | constexpr auto offset = StatementHasIndexKeyBindings ? 2 : 0; | |||
6353 | ||||
6354 | QM_TRY_UNWRAP(auto cloneInfo,auto tryResult3163 = (GetStructuredCloneReadInfoFromStatement ( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if ( (__builtin_expect(!!(tryResult3163.isErr()), 0))) { mozilla:: dom::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)" , tryResult3163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6356, mozilla::dom::quota::Severity::Error); return tryResult3163 .propagateErr(); } auto cloneInfo = tryResult3163.unwrap(); | |||
6355 | GetStructuredCloneReadInfoFromStatement(auto tryResult3163 = (GetStructuredCloneReadInfoFromStatement ( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if ( (__builtin_expect(!!(tryResult3163.isErr()), 0))) { mozilla:: dom::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)" , tryResult3163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6356, mozilla::dom::quota::Severity::Error); return tryResult3163 .propagateErr(); } auto cloneInfo = tryResult3163.unwrap(); | |||
6356 | aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager))auto tryResult3163 = (GetStructuredCloneReadInfoFromStatement ( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if ( (__builtin_expect(!!(tryResult3163.isErr()), 0))) { mozilla:: dom::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)" , tryResult3163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6356, mozilla::dom::quota::Severity::Error); return tryResult3163 .propagateErr(); } auto cloneInfo = tryResult3163.unwrap();; | |||
6357 | ||||
6358 | mCloneInfo.init(std::move(cloneInfo)); | |||
6359 | ||||
6360 | if (mCloneInfo->HasPreprocessInfo()) { | |||
6361 | IDB_WARNING("Preprocessing for cursors not yet implemented!")do { nsPrintfCString s("Preprocessing for cursors not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6361, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6361); } while (0); | |||
6362 | return NS_ERROR_NOT_IMPLEMENTED; | |||
6363 | } | |||
6364 | ||||
6365 | return NS_OK; | |||
6366 | } | |||
6367 | ||||
6368 | template <typename Response> | |||
6369 | void MaybeFillCloneInfo(Response& aResponse, FilesArray* const aFiles) { | |||
6370 | auto cloneInfo = mCloneInfo.release(); | |||
6371 | aResponse.cloneInfo().data().data = cloneInfo.ReleaseData(); | |||
6372 | aFiles->AppendElement(cloneInfo.ReleaseFiles()); | |||
6373 | } | |||
6374 | ||||
6375 | template <typename Response> | |||
6376 | static size_t MaybeGetCloneInfoSize(const Response& aResponse) { | |||
6377 | return aResponse.cloneInfo().data().data.Size(); | |||
6378 | } | |||
6379 | ||||
6380 | private: | |||
6381 | LazyInitializedOnceEarlyDestructible<const StructuredCloneReadInfoParent> | |||
6382 | mCloneInfo; | |||
6383 | }; | |||
6384 | ||||
6385 | template <> | |||
6386 | struct PopulateResponseHelper<IDBCursorType::ObjectStore> | |||
6387 | : ValuePopulateResponseHelper<false>, CommonPopulateResponseHelper { | |||
6388 | using CommonPopulateResponseHelper::CommonPopulateResponseHelper; | |||
6389 | ||||
6390 | static auto& GetTypedResponse(CursorResponse* const aResponse) { | |||
6391 | return aResponse->get_ArrayOfObjectStoreCursorResponse(); | |||
6392 | } | |||
6393 | }; | |||
6394 | ||||
6395 | template <> | |||
6396 | struct PopulateResponseHelper<IDBCursorType::ObjectStoreKey> | |||
6397 | : KeyPopulateResponseHelper, CommonPopulateResponseHelper { | |||
6398 | using CommonPopulateResponseHelper::CommonPopulateResponseHelper; | |||
6399 | ||||
6400 | static auto& GetTypedResponse(CursorResponse* const aResponse) { | |||
6401 | return aResponse->get_ArrayOfObjectStoreKeyCursorResponse(); | |||
6402 | } | |||
6403 | }; | |||
6404 | ||||
6405 | template <> | |||
6406 | struct PopulateResponseHelper<IDBCursorType::Index> | |||
6407 | : ValuePopulateResponseHelper<true>, IndexPopulateResponseHelper { | |||
6408 | using IndexPopulateResponseHelper::IndexPopulateResponseHelper; | |||
6409 | ||||
6410 | static auto& GetTypedResponse(CursorResponse* const aResponse) { | |||
6411 | return aResponse->get_ArrayOfIndexCursorResponse(); | |||
6412 | } | |||
6413 | }; | |||
6414 | ||||
6415 | template <> | |||
6416 | struct PopulateResponseHelper<IDBCursorType::IndexKey> | |||
6417 | : KeyPopulateResponseHelper, IndexPopulateResponseHelper { | |||
6418 | using IndexPopulateResponseHelper::IndexPopulateResponseHelper; | |||
6419 | ||||
6420 | static auto& GetTypedResponse(CursorResponse* const aResponse) { | |||
6421 | return aResponse->get_ArrayOfIndexKeyCursorResponse(); | |||
6422 | } | |||
6423 | }; | |||
6424 | ||||
6425 | nsresult DispatchAndReturnFileReferences( | |||
6426 | PersistenceType aPersistenceType, const nsACString& aOrigin, | |||
6427 | const nsAString& aDatabaseName, const int64_t aFileId, | |||
6428 | int32_t* const aMemRefCnt, int32_t* const aDBRefCnt, bool* const aResult) { | |||
6429 | AssertIsOnBackgroundThread(); | |||
6430 | MOZ_ASSERT(aMemRefCnt)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMemRefCnt)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMemRefCnt))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aMemRefCnt", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6430); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMemRefCnt" ")"); do { *((volatile int*)__null) = 6430; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6431 | MOZ_ASSERT(aDBRefCnt)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDBRefCnt)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDBRefCnt))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDBRefCnt", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6431); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDBRefCnt" ")" ); do { *((volatile int*)__null) = 6431; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6432 | MOZ_ASSERT(aResult)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aResult)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aResult))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aResult", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6432); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResult" ")" ); do { *((volatile int*)__null) = 6432; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6433 | ||||
6434 | *aResult = false; | |||
6435 | *aMemRefCnt = -1; | |||
6436 | *aDBRefCnt = -1; | |||
6437 | ||||
6438 | mozilla::Monitor monitor MOZ_ANNOTATED(__func__); | |||
6439 | bool waiting = true; | |||
6440 | ||||
6441 | auto lambda = [&] { | |||
6442 | AssertIsOnIOThread(); | |||
6443 | ||||
6444 | { | |||
6445 | IndexedDatabaseManager* const mgr = IndexedDatabaseManager::Get(); | |||
6446 | MOZ_ASSERT(mgr)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mgr)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(mgr))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mgr", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6446); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mgr" ")"); do { *((volatile int*)__null) = 6446; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | |||
6447 | ||||
6448 | const SafeRefPtr<DatabaseFileManager> fileManager = | |||
6449 | mgr->GetFileManager(aPersistenceType, aOrigin, aDatabaseName); | |||
6450 | ||||
6451 | if (fileManager) { | |||
6452 | const SafeRefPtr<DatabaseFileInfo> fileInfo = | |||
6453 | fileManager->GetFileInfo(aFileId); | |||
6454 | ||||
6455 | if (fileInfo) { | |||
6456 | fileInfo->GetReferences(aMemRefCnt, aDBRefCnt); | |||
6457 | ||||
6458 | if (*aMemRefCnt != -1) { | |||
6459 | // We added an extra temp ref, so account for that accordingly. | |||
6460 | (*aMemRefCnt)--; | |||
6461 | } | |||
6462 | ||||
6463 | *aResult = true; | |||
6464 | } | |||
6465 | } | |||
6466 | } | |||
6467 | ||||
6468 | mozilla::MonitorAutoLock lock(monitor); | |||
6469 | MOZ_ASSERT(waiting)do { static_assert( mozilla::detail::AssertionConditionType< decltype(waiting)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(waiting))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("waiting", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6469); AnnotateMozCrashReason("MOZ_ASSERT" "(" "waiting" ")" ); do { *((volatile int*)__null) = 6469; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6470 | ||||
6471 | waiting = false; | |||
6472 | lock.Notify(); | |||
6473 | }; | |||
6474 | ||||
6475 | QuotaManager* const quotaManager = QuotaManager::Get(); | |||
6476 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6476); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { *((volatile int*)__null) = 6476; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6477 | ||||
6478 | // XXX can't we simply use NS_DispatchAndSpinEventLoopUntilComplete instead of | |||
6479 | // using a monitor? | |||
6480 | QM_TRY(MOZ_TO_RESULT(quotaManager->IOThread()->Dispatch({auto tryResult3164 = (ToResult(quotaManager->IOThread()-> Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move (lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert( std::is_empty_v<typename decltype(tryResult3164)::ok_type> ); if ((__builtin_expect(!!(tryResult3164.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))" , tryResult3164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6482, mozilla::dom::quota::Severity::Error); return tryResult3164 .propagateErr(); }} | |||
6481 | NS_NewRunnableFunction("GetFileReferences", std::move(lambda)),{auto tryResult3164 = (ToResult(quotaManager->IOThread()-> Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move (lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert( std::is_empty_v<typename decltype(tryResult3164)::ok_type> ); if ((__builtin_expect(!!(tryResult3164.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))" , tryResult3164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6482, mozilla::dom::quota::Severity::Error); return tryResult3164 .propagateErr(); }} | |||
6482 | NS_DISPATCH_NORMAL))){auto tryResult3164 = (ToResult(quotaManager->IOThread()-> Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move (lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert( std::is_empty_v<typename decltype(tryResult3164)::ok_type> ); if ((__builtin_expect(!!(tryResult3164.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))" , tryResult3164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6482, mozilla::dom::quota::Severity::Error); return tryResult3164 .propagateErr(); }}; | |||
6483 | ||||
6484 | mozilla::MonitorAutoLock autolock(monitor); | |||
6485 | while (waiting) { | |||
6486 | autolock.Wait(); | |||
6487 | } | |||
6488 | ||||
6489 | return NS_OK; | |||
6490 | } | |||
6491 | ||||
6492 | class DeserializeIndexValueHelper final : public Runnable { | |||
6493 | public: | |||
6494 | DeserializeIndexValueHelper(int64_t aIndexID, const KeyPath& aKeyPath, | |||
6495 | bool aMultiEntry, const nsACString& aLocale, | |||
6496 | StructuredCloneReadInfoParent& aCloneReadInfo, | |||
6497 | nsTArray<IndexUpdateInfo>& aUpdateInfoArray) | |||
6498 | : Runnable("DeserializeIndexValueHelper"), | |||
6499 | mMonitor("DeserializeIndexValueHelper::mMonitor"), | |||
6500 | mIndexID(aIndexID), | |||
6501 | mKeyPath(aKeyPath), | |||
6502 | mMultiEntry(aMultiEntry), | |||
6503 | mLocale(aLocale), | |||
6504 | mCloneReadInfo(aCloneReadInfo), | |||
6505 | mUpdateInfoArray(aUpdateInfoArray), | |||
6506 | mStatus(NS_ERROR_FAILURE) {} | |||
6507 | ||||
6508 | nsresult DispatchAndWait() { | |||
6509 | // FIXME(Bug 1637530) Re-enable optimization using a non-system-principaled | |||
6510 | // JS context | |||
6511 | #if 0 | |||
6512 | // We don't need to go to the main-thread and use the sandbox. Let's create | |||
6513 | // the updateInfo data here. | |||
6514 | if (!mCloneReadInfo.Data().Size()) { | |||
6515 | AutoJSAPI jsapi; | |||
6516 | jsapi.Init(); | |||
6517 | ||||
6518 | JS::Rooted<JS::Value> value(jsapi.cx()); | |||
6519 | value.setUndefined(); | |||
6520 | ||||
6521 | ErrorResult rv; | |||
6522 | IDBObjectStore::AppendIndexUpdateInfo( | |||
6523 | mIndexID, mKeyPath, mMultiEntry, &mUpdateInfoArray, | |||
6524 | /* aAutoIncrementedObjectStoreKeyPath */ VoidString(), &rv); | |||
6525 | return rv.Failed() ? rv.StealNSResult() : NS_OK; | |||
6526 | } | |||
6527 | #endif | |||
6528 | ||||
6529 | // The operation will continue on the main-thread. | |||
6530 | ||||
6531 | MOZ_ASSERT(!(mCloneReadInfo.Data().Size() % sizeof(uint64_t)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!(mCloneReadInfo.Data().Size() % sizeof(uint64_t)))> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!(mCloneReadInfo.Data().Size() % sizeof(uint64_t)))) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!(mCloneReadInfo.Data().Size() % sizeof(uint64_t))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6531); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(mCloneReadInfo.Data().Size() % sizeof(uint64_t))" ")"); do { *((volatile int*)__null) = 6531; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6532 | ||||
6533 | MonitorAutoLock lock(mMonitor); | |||
6534 | ||||
6535 | RefPtr<Runnable> self = this; | |||
6536 | QM_TRY(MOZ_TO_RESULT(SchedulerGroup::Dispatch(self.forget()))){auto tryResult3165 = (ToResult(SchedulerGroup::Dispatch(self .forget()))); static_assert(std::is_empty_v<typename decltype (tryResult3165)::ok_type>); if ((__builtin_expect(!!(tryResult3165 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SchedulerGroup::Dispatch(self.forget()))" , tryResult3165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6536, mozilla::dom::quota::Severity::Error); return tryResult3165 .propagateErr(); }}; | |||
6537 | ||||
6538 | lock.Wait(); | |||
6539 | return mStatus; | |||
6540 | } | |||
6541 | ||||
6542 | NS_IMETHODvirtual nsresult | |||
6543 | Run() override { | |||
6544 | MOZ_ASSERT(NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6544); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 6544; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6545 | ||||
6546 | AutoJSAPI jsapi; | |||
6547 | jsapi.Init(); | |||
6548 | JSContext* const cx = jsapi.cx(); | |||
6549 | ||||
6550 | JS::Rooted<JSObject*> global(cx, GetSandbox(cx)); | |||
6551 | ||||
6552 | QM_TRY(OkIf(global), NS_OK,{auto tryResult3166 = (OkIf(global)); static_assert(std::is_empty_v <typename decltype(tryResult3166)::ok_type>); if ((__builtin_expect (!!(tryResult3166.isErr()), 0))) { auto tryTempError = tryResult3166 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(global)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6553, mozilla::dom::quota::Severity::Error); [this](const NotOk ) { OperationCompleted(NS_ERROR_FAILURE); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(global)" , tryTempError, NS_OK); }} | |||
6553 | [this](const NotOk) { OperationCompleted(NS_ERROR_FAILURE); }){auto tryResult3166 = (OkIf(global)); static_assert(std::is_empty_v <typename decltype(tryResult3166)::ok_type>); if ((__builtin_expect (!!(tryResult3166.isErr()), 0))) { auto tryTempError = tryResult3166 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(global)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6553, mozilla::dom::quota::Severity::Error); [this](const NotOk ) { OperationCompleted(NS_ERROR_FAILURE); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(global)" , tryTempError, NS_OK); }}; | |||
6554 | ||||
6555 | const JSAutoRealm ar(cx, global); | |||
6556 | ||||
6557 | JS::Rooted<JS::Value> value(cx); | |||
6558 | QM_TRY(MOZ_TO_RESULT(DeserializeIndexValue(cx, &value)), NS_OK,{auto tryResult3167 = (ToResult(DeserializeIndexValue(cx, & value))); static_assert(std::is_empty_v<typename decltype( tryResult3167)::ok_type>); if ((__builtin_expect(!!(tryResult3167 .isErr()), 0))) { auto tryTempError = tryResult3167.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(DeserializeIndexValue(cx, &value))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6559, mozilla::dom::quota::Severity::Error); [this](const nsresult rv) { OperationCompleted(rv); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeserializeIndexValue(cx, &value))" , tryTempError, NS_OK); }} | |||
6559 | [this](const nsresult rv) { OperationCompleted(rv); }){auto tryResult3167 = (ToResult(DeserializeIndexValue(cx, & value))); static_assert(std::is_empty_v<typename decltype( tryResult3167)::ok_type>); if ((__builtin_expect(!!(tryResult3167 .isErr()), 0))) { auto tryTempError = tryResult3167.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(DeserializeIndexValue(cx, &value))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6559, mozilla::dom::quota::Severity::Error); [this](const nsresult rv) { OperationCompleted(rv); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeserializeIndexValue(cx, &value))" , tryTempError, NS_OK); }}; | |||
6560 | ||||
6561 | ErrorResult errorResult; | |||
6562 | IDBObjectStore::AppendIndexUpdateInfo( | |||
6563 | mIndexID, mKeyPath, mMultiEntry, mLocale, cx, value, &mUpdateInfoArray, | |||
6564 | /* aAutoIncrementedObjectStoreKeyPath */ VoidString(), &errorResult); | |||
6565 | QM_TRY(OkIf(!errorResult.Failed()), NS_OK,{auto tryResult3168 = (OkIf(!errorResult.Failed())); static_assert (std::is_empty_v<typename decltype(tryResult3168)::ok_type >); if ((__builtin_expect(!!(tryResult3168.isErr()), 0))) { auto tryTempError = tryResult3168.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(!errorResult.Failed())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6568, mozilla::dom::quota::Severity::Error); ([this, &errorResult ](const NotOk) { OperationCompleted(errorResult.StealNSResult ()); })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); } } | |||
6566 | ([this, &errorResult](const NotOk) {{auto tryResult3168 = (OkIf(!errorResult.Failed())); static_assert (std::is_empty_v<typename decltype(tryResult3168)::ok_type >); if ((__builtin_expect(!!(tryResult3168.isErr()), 0))) { auto tryTempError = tryResult3168.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(!errorResult.Failed())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6568, mozilla::dom::quota::Severity::Error); ([this, &errorResult ](const NotOk) { OperationCompleted(errorResult.StealNSResult ()); })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); } } | |||
6567 | OperationCompleted(errorResult.StealNSResult());{auto tryResult3168 = (OkIf(!errorResult.Failed())); static_assert (std::is_empty_v<typename decltype(tryResult3168)::ok_type >); if ((__builtin_expect(!!(tryResult3168.isErr()), 0))) { auto tryTempError = tryResult3168.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(!errorResult.Failed())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6568, mozilla::dom::quota::Severity::Error); ([this, &errorResult ](const NotOk) { OperationCompleted(errorResult.StealNSResult ()); })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); } } | |||
6568 | })){auto tryResult3168 = (OkIf(!errorResult.Failed())); static_assert (std::is_empty_v<typename decltype(tryResult3168)::ok_type >); if ((__builtin_expect(!!(tryResult3168.isErr()), 0))) { auto tryTempError = tryResult3168.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(!errorResult.Failed())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6568, mozilla::dom::quota::Severity::Error); ([this, &errorResult ](const NotOk) { OperationCompleted(errorResult.StealNSResult ()); })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); } }; | |||
6569 | ||||
6570 | OperationCompleted(NS_OK); | |||
6571 | return NS_OK; | |||
6572 | } | |||
6573 | ||||
6574 | private: | |||
6575 | nsresult DeserializeIndexValue(JSContext* aCx, | |||
6576 | JS::MutableHandle<JS::Value> aValue) { | |||
6577 | static const JSStructuredCloneCallbacks callbacks = { | |||
6578 | StructuredCloneReadCallback<StructuredCloneReadInfoParent>, | |||
6579 | nullptr, | |||
6580 | nullptr, | |||
6581 | nullptr, | |||
6582 | nullptr, | |||
6583 | nullptr, | |||
6584 | nullptr, | |||
6585 | nullptr}; | |||
6586 | ||||
6587 | if (!JS_ReadStructuredClone( | |||
6588 | aCx, mCloneReadInfo.Data(), JS_STRUCTURED_CLONE_VERSION8, | |||
6589 | JS::StructuredCloneScope::DifferentProcessForIndexedDB, aValue, | |||
6590 | JS::CloneDataPolicy(), &callbacks, &mCloneReadInfo)) { | |||
6591 | return NS_ERROR_DOM_DATA_CLONE_ERR; | |||
6592 | } | |||
6593 | ||||
6594 | return NS_OK; | |||
6595 | } | |||
6596 | ||||
6597 | void OperationCompleted(nsresult aStatus) { | |||
6598 | mStatus = aStatus; | |||
6599 | ||||
6600 | MonitorAutoLock lock(mMonitor); | |||
6601 | lock.Notify(); | |||
6602 | } | |||
6603 | ||||
6604 | Monitor mMonitor MOZ_UNANNOTATED; | |||
6605 | ||||
6606 | const int64_t mIndexID; | |||
6607 | const KeyPath& mKeyPath; | |||
6608 | const bool mMultiEntry; | |||
6609 | const nsCString mLocale; | |||
6610 | StructuredCloneReadInfoParent& mCloneReadInfo; | |||
6611 | nsTArray<IndexUpdateInfo>& mUpdateInfoArray; | |||
6612 | nsresult mStatus; | |||
6613 | }; | |||
6614 | ||||
6615 | auto DeserializeIndexValueToUpdateInfos( | |||
6616 | int64_t aIndexID, const KeyPath& aKeyPath, bool aMultiEntry, | |||
6617 | const nsACString& aLocale, StructuredCloneReadInfoParent& aCloneReadInfo) { | |||
6618 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6618); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 6618; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6619 | ||||
6620 | using ArrayType = AutoTArray<IndexUpdateInfo, 32>; | |||
6621 | using ResultType = Result<ArrayType, nsresult>; | |||
6622 | ||||
6623 | ArrayType updateInfoArray; | |||
6624 | const auto helper = MakeRefPtr<DeserializeIndexValueHelper>( | |||
6625 | aIndexID, aKeyPath, aMultiEntry, aLocale, aCloneReadInfo, | |||
6626 | updateInfoArray); | |||
6627 | const nsresult rv = helper->DispatchAndWait(); | |||
6628 | return NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0))) ? Err(rv) : ResultType{std::move(updateInfoArray)}; | |||
6629 | } | |||
6630 | ||||
6631 | bool IsSome( | |||
6632 | const Maybe<CachingDatabaseConnection::BorrowedStatement>& aMaybeStmt) { | |||
6633 | return aMaybeStmt.isSome(); | |||
6634 | } | |||
6635 | ||||
6636 | already_AddRefed<nsIThreadPool> MakeConnectionIOTarget() { | |||
6637 | nsCOMPtr<nsIThreadPool> threadPool = new nsThreadPool(); | |||
6638 | ||||
6639 | MOZ_ALWAYS_SUCCEEDS(threadPool->SetThreadLimit(kMaxConnectionThreadCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetThreadLimit(kMaxConnectionThreadCount))), 1 )))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetThreadLimit(kMaxConnectionThreadCount))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6639); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(threadPool->SetThreadLimit(kMaxConnectionThreadCount))" ")"); do { *((volatile int*)__null) = 6639; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
6640 | ||||
6641 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6642); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))" ")"); do { *((volatile int*)__null) = 6642; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
6642 | threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6642); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))" ")"); do { *((volatile int*)__null) = 6642; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
6643 | ||||
6644 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6645); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))" ")"); do { *((volatile int*)__null) = 6645; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
6645 | threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6645); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))" ")"); do { *((volatile int*)__null) = 6645; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
6646 | ||||
6647 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6648); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))" ")"); do { *((volatile int*)__null) = 6648; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
6648 | threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6648); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))" ")"); do { *((volatile int*)__null) = 6648; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
6649 | ||||
6650 | MOZ_ALWAYS_SUCCEEDS(threadPool->SetName("IndexedDB IO"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetName("IndexedDB IO"_ns))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB IO\"_ns))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6650); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB IO\"_ns))" ")"); do { *((volatile int*)__null) = 6650; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
6651 | ||||
6652 | return threadPool.forget(); | |||
6653 | } | |||
6654 | ||||
6655 | } // namespace | |||
6656 | ||||
6657 | /******************************************************************************* | |||
6658 | * Exported functions | |||
6659 | ******************************************************************************/ | |||
6660 | ||||
6661 | already_AddRefed<PBackgroundIDBFactoryParent> AllocPBackgroundIDBFactoryParent( | |||
6662 | const LoggingInfo& aLoggingInfo, const nsACString& aSystemLocale) { | |||
6663 | AssertIsOnBackgroundThread(); | |||
6664 | ||||
6665 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6665)) { | |||
6666 | return nullptr; | |||
6667 | } | |||
6668 | ||||
6669 | if (NS_AUUF_OR_WARN_IF(!aLoggingInfo.nextTransactionSerialNumber())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!aLoggingInfo.nextTransactionSerialNumber()" ")" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6669); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aLoggingInfo.nextTransactionSerialNumber()" ")"); do { *(( volatile int*)__null) = 6669; __attribute__((nomerge)) ::abort (); } while (false); } } while (false); } return aCond; }((!aLoggingInfo .nextTransactionSerialNumber())) || | |||
6670 | NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!aLoggingInfo.nextVersionChangeTransactionSerialNumber()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6671); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aLoggingInfo.nextVersionChangeTransactionSerialNumber()" ")" ); do { *((volatile int*)__null) = 6671; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((!aLoggingInfo.nextVersionChangeTransactionSerialNumber() )) | |||
6671 | !aLoggingInfo.nextVersionChangeTransactionSerialNumber())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!aLoggingInfo.nextVersionChangeTransactionSerialNumber()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6671); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aLoggingInfo.nextVersionChangeTransactionSerialNumber()" ")" ); do { *((volatile int*)__null) = 6671; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((!aLoggingInfo.nextVersionChangeTransactionSerialNumber() )) || | |||
6672 | NS_AUUF_OR_WARN_IF(!aLoggingInfo.nextRequestSerialNumber())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!aLoggingInfo.nextRequestSerialNumber()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6672); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aLoggingInfo.nextRequestSerialNumber()" ")"); do { *((volatile int*)__null) = 6672; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!aLoggingInfo .nextRequestSerialNumber()))) { | |||
6673 | return nullptr; | |||
6674 | } | |||
6675 | ||||
6676 | SafeRefPtr<Factory> actor = Factory::Create(aLoggingInfo, aSystemLocale); | |||
6677 | MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(actor)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("actor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6677); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")") ; do { *((volatile int*)__null) = 6677; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6678 | ||||
6679 | return actor.forget(); | |||
6680 | } | |||
6681 | ||||
6682 | bool RecvPBackgroundIDBFactoryConstructor( | |||
6683 | PBackgroundIDBFactoryParent* aActor, const LoggingInfo& /* aLoggingInfo */, | |||
6684 | const nsACString& /* aSystemLocale */) { | |||
6685 | AssertIsOnBackgroundThread(); | |||
6686 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6686); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { *((volatile int*)__null) = 6686; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6687 | MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6687); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 6687; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6688 | ||||
6689 | return true; | |||
6690 | } | |||
6691 | ||||
6692 | PBackgroundIndexedDBUtilsParent* AllocPBackgroundIndexedDBUtilsParent() { | |||
6693 | AssertIsOnBackgroundThread(); | |||
6694 | ||||
6695 | RefPtr<Utils> actor = new Utils(); | |||
6696 | ||||
6697 | return actor.forget().take(); | |||
6698 | } | |||
6699 | ||||
6700 | bool DeallocPBackgroundIndexedDBUtilsParent( | |||
6701 | PBackgroundIndexedDBUtilsParent* aActor) { | |||
6702 | AssertIsOnBackgroundThread(); | |||
6703 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { *((volatile int*)__null) = 6703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6704 | ||||
6705 | RefPtr<Utils> actor = dont_AddRef(static_cast<Utils*>(aActor)); | |||
6706 | return true; | |||
6707 | } | |||
6708 | ||||
6709 | bool RecvFlushPendingFileDeletions() { | |||
6710 | AssertIsOnBackgroundThread(); | |||
6711 | ||||
6712 | if (QuotaClient* quotaClient = QuotaClient::GetInstance()) { | |||
6713 | QM_WARNONLY_TRY(QM_TO_RESULT(quotaClient->FlushPendingFileDeletions())){auto tryResult3169 = (ToResult<QMResult>(quotaClient-> FlushPendingFileDeletions())); static_assert(std::is_empty_v< typename decltype(tryResult3169)::ok_type>); if ((__builtin_expect (!!(tryResult3169.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult<QMResult>(quotaClient->FlushPendingFileDeletions())" , tryResult3169.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6713, mozilla::dom::quota::Severity::Warning); }}; | |||
6714 | } | |||
6715 | ||||
6716 | return true; | |||
6717 | } | |||
6718 | ||||
6719 | RefPtr<mozilla::dom::quota::Client> CreateQuotaClient() { | |||
6720 | AssertIsOnBackgroundThread(); | |||
6721 | ||||
6722 | return MakeRefPtr<QuotaClient>(); | |||
6723 | } | |||
6724 | ||||
6725 | nsresult DatabaseFileManager::AsyncDeleteFile(int64_t aFileId) { | |||
6726 | AssertIsOnBackgroundThread(); | |||
6727 | MOZ_ASSERT(!mFileInfos.Contains(aFileId))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mFileInfos.Contains(aFileId))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mFileInfos.Contains(aFileId )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mFileInfos.Contains(aFileId)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6727); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileInfos.Contains(aFileId)" ")"); do { *((volatile int*)__null) = 6727; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6728 | ||||
6729 | QuotaClient* quotaClient = QuotaClient::GetInstance(); | |||
6730 | if (quotaClient) { | |||
6731 | QM_TRY(MOZ_TO_RESULT(quotaClient->AsyncDeleteFile(this, aFileId))){auto tryResult3170 = (ToResult(quotaClient->AsyncDeleteFile (this, aFileId))); static_assert(std::is_empty_v<typename decltype (tryResult3170)::ok_type>); if ((__builtin_expect(!!(tryResult3170 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaClient->AsyncDeleteFile(this, aFileId))" , tryResult3170.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6731, mozilla::dom::quota::Severity::Error); return tryResult3170 .propagateErr(); }}; | |||
6732 | } | |||
6733 | ||||
6734 | return NS_OK; | |||
6735 | } | |||
6736 | ||||
6737 | /******************************************************************************* | |||
6738 | * DatabaseConnection implementation | |||
6739 | ******************************************************************************/ | |||
6740 | ||||
6741 | DatabaseConnection::DatabaseConnection( | |||
6742 | MovingNotNull<nsCOMPtr<mozIStorageConnection>> aStorageConnection, | |||
6743 | MovingNotNull<SafeRefPtr<DatabaseFileManager>> aFileManager) | |||
6744 | : CachingDatabaseConnection(std::move(aStorageConnection)), | |||
6745 | mFileManager(std::move(aFileManager)), | |||
6746 | mLastDurability(IDBTransaction::Durability::Default), | |||
6747 | mInReadTransaction(false), | |||
6748 | mInWriteTransaction(false) | |||
6749 | #ifdef DEBUG1 | |||
6750 | , | |||
6751 | mDEBUGSavepointCount(0) | |||
6752 | #endif | |||
6753 | { | |||
6754 | AssertIsOnConnectionThread(); | |||
6755 | MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6755); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager" ")"); do { *((volatile int*)__null) = 6755; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6756 | } | |||
6757 | ||||
6758 | DatabaseConnection::~DatabaseConnection() { | |||
6759 | MOZ_ASSERT(!mFileManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mFileManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mFileManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mFileManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6759); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileManager" ")"); do { *((volatile int*)__null) = 6759; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6760 | MOZ_ASSERT(!mUpdateRefcountFunction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mUpdateRefcountFunction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mUpdateRefcountFunction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mUpdateRefcountFunction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6760); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUpdateRefcountFunction" ")"); do { *((volatile int*)__null) = 6760; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6761 | MOZ_DIAGNOSTIC_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6761); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!mInWriteTransaction" ")"); do { *((volatile int*)__null) = 6761; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6762 | MOZ_ASSERT(!mDEBUGSavepointCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDEBUGSavepointCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDEBUGSavepointCount))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGSavepointCount" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6762); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGSavepointCount" ")"); do { *((volatile int*)__null) = 6762; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6763 | } | |||
6764 | ||||
6765 | nsresult DatabaseConnection::Init() { | |||
6766 | AssertIsOnConnectionThread(); | |||
6767 | MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { *((volatile int*)__null) = 6767; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6768 | MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6768); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { *((volatile int*)__null) = 6768; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6769 | ||||
6770 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("BEGIN;"_ns))){auto tryResult3171 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult3171 )::ok_type>); if ((__builtin_expect(!!(tryResult3171.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns))" , tryResult3171.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6770, mozilla::dom::quota::Severity::Error); return tryResult3171 .propagateErr(); }}; | |||
6771 | ||||
6772 | mInReadTransaction = true; | |||
6773 | ||||
6774 | return NS_OK; | |||
6775 | } | |||
6776 | ||||
6777 | nsresult DatabaseConnection::BeginWriteTransaction( | |||
6778 | const IDBTransaction::Durability aDurability) { | |||
6779 | AssertIsOnConnectionThread(); | |||
6780 | MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasStorageConnection())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6780); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { *((volatile int*)__null) = 6780; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6781 | MOZ_ASSERT(mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInReadTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6781); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInReadTransaction" ")"); do { *((volatile int*)__null) = 6781; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6782 | MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6782); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { *((volatile int*)__null) = 6782; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6783 | ||||
6784 | AUTO_PROFILER_LABEL("DatabaseConnection::BeginWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6784( "DatabaseConnection::BeginWriteTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
6785 | ||||
6786 | // Release our read locks. | |||
6787 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("ROLLBACK;"_ns))){auto tryResult3172 = (ToResult(ExecuteCachedStatement("ROLLBACK;"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult3172 )::ok_type>); if ((__builtin_expect(!!(tryResult3172.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"ROLLBACK;\"_ns))" , tryResult3172.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6787, mozilla::dom::quota::Severity::Error); return tryResult3172 .propagateErr(); }}; | |||
6788 | ||||
6789 | mInReadTransaction = false; | |||
6790 | ||||
6791 | if (mLastDurability != aDurability) { | |||
6792 | auto synchronousMode = [aDurability]() -> nsLiteralCString { | |||
6793 | switch (aDurability) { | |||
6794 | case IDBTransaction::Durability::Default: | |||
6795 | return GetDefaultSynchronousMode(); | |||
6796 | ||||
6797 | case IDBTransaction::Durability::Strict: | |||
6798 | return "EXTRA"_ns; | |||
6799 | ||||
6800 | case IDBTransaction::Durability::Relaxed: | |||
6801 | return "OFF"_ns; | |||
6802 | ||||
6803 | default: | |||
6804 | MOZ_CRASH("Unknown CheckpointMode!")do { do { } while (false); MOZ_ReportCrash("" "Unknown CheckpointMode!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6804); AnnotateMozCrashReason("MOZ_CRASH(" "Unknown CheckpointMode!" ")"); do { *((volatile int*)__null) = 6804; __attribute__((nomerge )) ::abort(); } while (false); } while (false); | |||
6805 | } | |||
6806 | }(); | |||
6807 | ||||
6808 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("PRAGMA synchronous = "_ns +{auto tryResult3173 = (ToResult(ExecuteCachedStatement("PRAGMA synchronous = "_ns + synchronousMode + ";"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult3173)::ok_type>); if ((__builtin_expect (!!(tryResult3173.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ExecuteCachedStatement(\"PRAGMA synchronous = \"_ns + synchronousMode + \";\"_ns))" , tryResult3173.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6809, mozilla::dom::quota::Severity::Error); return tryResult3173 .propagateErr(); }} | |||
6809 | synchronousMode + ";"_ns))){auto tryResult3173 = (ToResult(ExecuteCachedStatement("PRAGMA synchronous = "_ns + synchronousMode + ";"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult3173)::ok_type>); if ((__builtin_expect (!!(tryResult3173.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ExecuteCachedStatement(\"PRAGMA synchronous = \"_ns + synchronousMode + \";\"_ns))" , tryResult3173.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6809, mozilla::dom::quota::Severity::Error); return tryResult3173 .propagateErr(); }}; | |||
6810 | ||||
6811 | mLastDurability = aDurability; | |||
6812 | } | |||
6813 | ||||
6814 | if (!mUpdateRefcountFunction) { | |||
6815 | MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6815); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager" ")"); do { *((volatile int*)__null) = 6815; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6816 | ||||
6817 | RefPtr<UpdateRefcountFunction> function = | |||
6818 | new UpdateRefcountFunction(this, **mFileManager); | |||
6819 | ||||
6820 | QM_TRY(MOZ_TO_RESULT(MutableStorageConnection().CreateFunction({auto tryResult3174 = (ToResult(MutableStorageConnection().CreateFunction ( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v <typename decltype(tryResult3174)::ok_type>); if ((__builtin_expect (!!(tryResult3174.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))" , tryResult3174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6822, mozilla::dom::quota::Severity::Error); return tryResult3174 .propagateErr(); }} | |||
6821 | "update_refcount"_ns,{auto tryResult3174 = (ToResult(MutableStorageConnection().CreateFunction ( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v <typename decltype(tryResult3174)::ok_type>); if ((__builtin_expect (!!(tryResult3174.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))" , tryResult3174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6822, mozilla::dom::quota::Severity::Error); return tryResult3174 .propagateErr(); }} | |||
6822 | /* aNumArguments */ 2, function))){auto tryResult3174 = (ToResult(MutableStorageConnection().CreateFunction ( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v <typename decltype(tryResult3174)::ok_type>); if ((__builtin_expect (!!(tryResult3174.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))" , tryResult3174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6822, mozilla::dom::quota::Severity::Error); return tryResult3174 .propagateErr(); }}; | |||
6823 | ||||
6824 | mUpdateRefcountFunction = std::move(function); | |||
6825 | } | |||
6826 | ||||
6827 | // This one cannot obviously use ExecuteCachedStatement because of the custom | |||
6828 | // error handling for Execute only. If only Execute can produce | |||
6829 | // NS_ERROR_STORAGE_BUSY, we could actually use ExecuteCachedStatement and | |||
6830 | // simplify this. | |||
6831 | QM_TRY_INSPECT(const auto& beginStmt,auto tryResult3175 = (BorrowCachedStatement("BEGIN IMMEDIATE;"_ns )); if ((__builtin_expect(!!(tryResult3175.isErr()), 0))) { mozilla ::dom::quota::HandleError("BorrowCachedStatement(\"BEGIN IMMEDIATE;\"_ns)" , tryResult3175.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6832, mozilla::dom::quota::Severity::Error); return tryResult3175 .propagateErr(); } const auto& beginStmt = tryResult3175. inspect(); | |||
6832 | BorrowCachedStatement("BEGIN IMMEDIATE;"_ns))auto tryResult3175 = (BorrowCachedStatement("BEGIN IMMEDIATE;"_ns )); if ((__builtin_expect(!!(tryResult3175.isErr()), 0))) { mozilla ::dom::quota::HandleError("BorrowCachedStatement(\"BEGIN IMMEDIATE;\"_ns)" , tryResult3175.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6832, mozilla::dom::quota::Severity::Error); return tryResult3175 .propagateErr(); } const auto& beginStmt = tryResult3175. inspect();; | |||
6833 | ||||
6834 | QM_TRY(QM_OR_ELSE_WARN_IF({auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6835 | // Expression.{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6836 | MOZ_TO_RESULT(beginStmt->Execute()),{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6837 | // Predicate.{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6838 | IsSpecificError<NS_ERROR_STORAGE_BUSY>,{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6839 | // Fallback.{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6840 | ([&beginStmt](nsresult rv) {{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6841 | NS_WARNING({auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6842 | "Received NS_ERROR_STORAGE_BUSY when attempting to start write "{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6843 | "transaction, retrying for up to 10 seconds");{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6844 | ||||
6845 | // Another thread must be using the database. Wait up to 10 seconds{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6846 | // for that to complete.{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6847 | const TimeStamp start = TimeStamp::NowLoRes();{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6848 | ||||
6849 | while (true) {{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6850 | PR_Sleep(PR_MillisecondsToInterval(100));{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6851 | ||||
6852 | rv = beginStmt->Execute();{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6853 | if (rv != NS_ERROR_STORAGE_BUSY ||{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6854 | TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) {{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6855 | break;{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6856 | }{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6857 | }{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6858 | ||||
6859 | return MOZ_TO_RESULT(rv);{auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }} | |||
6860 | }))){auto tryResult3176 = (mozilla::dom::quota::OrElseIf( (ToResult (beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes ); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ([&beginStmt ](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write " "transaction, retrying for up to 10 seconds", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt ->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp:: NowLoRes() - start > TimeDuration::FromSeconds(10)) { break ; } } return ToResult(rv); }))); static_assert(std::is_empty_v <typename decltype(tryResult3176)::ok_type>); if ((__builtin_expect (!!(tryResult3176.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6860, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 6843); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))" , tryResult3176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6860, mozilla::dom::quota::Severity::Error); return tryResult3176 .propagateErr(); }}; | |||
6861 | ||||
6862 | mInWriteTransaction = true; | |||
6863 | ||||
6864 | return NS_OK; | |||
6865 | } | |||
6866 | ||||
6867 | nsresult DatabaseConnection::CommitWriteTransaction() { | |||
6868 | AssertIsOnConnectionThread(); | |||
6869 | MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasStorageConnection())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6869); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { *((volatile int*)__null) = 6869; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6870 | MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6870); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { *((volatile int*)__null) = 6870; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6871 | MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6871); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction" ")"); do { *((volatile int*)__null) = 6871; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6872 | ||||
6873 | AUTO_PROFILER_LABEL("DatabaseConnection::CommitWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6873( "DatabaseConnection::CommitWriteTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
6874 | ||||
6875 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("COMMIT;"_ns))){auto tryResult3177 = (ToResult(ExecuteCachedStatement("COMMIT;"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult3177 )::ok_type>); if ((__builtin_expect(!!(tryResult3177.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"COMMIT;\"_ns))" , tryResult3177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6875, mozilla::dom::quota::Severity::Error); return tryResult3177 .propagateErr(); }}; | |||
6876 | ||||
6877 | mInWriteTransaction = false; | |||
6878 | return NS_OK; | |||
6879 | } | |||
6880 | ||||
6881 | void DatabaseConnection::RollbackWriteTransaction() { | |||
6882 | AssertIsOnConnectionThread(); | |||
6883 | MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6883); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { *((volatile int*)__null) = 6883; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6884 | MOZ_DIAGNOSTIC_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasStorageConnection())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6884); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "HasStorageConnection()" ")"); do { *((volatile int*)__null) = 6884; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6885 | ||||
6886 | AUTO_PROFILER_LABEL("DatabaseConnection::RollbackWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6886( "DatabaseConnection::RollbackWriteTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
6887 | ||||
6888 | if (!mInWriteTransaction) { | |||
6889 | return; | |||
6890 | } | |||
6891 | ||||
6892 | QM_WARNONLY_TRY({auto tryResult3178 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { Unused << stmt->Execute(); self .mInWriteTransaction = false; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3178)::ok_type >); if ((__builtin_expect(!!(tryResult3178.isErr()), 0))) { mozilla::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult3178.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6906, mozilla::dom::quota::Severity::Warning); }} | |||
6893 | BorrowCachedStatement("ROLLBACK;"_ns){auto tryResult3178 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { Unused << stmt->Execute(); self .mInWriteTransaction = false; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3178)::ok_type >); if ((__builtin_expect(!!(tryResult3178.isErr()), 0))) { mozilla::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult3178.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6906, mozilla::dom::quota::Severity::Warning); }} | |||
6894 | .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> {{auto tryResult3178 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { Unused << stmt->Execute(); self .mInWriteTransaction = false; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3178)::ok_type >); if ((__builtin_expect(!!(tryResult3178.isErr()), 0))) { mozilla::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult3178.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6906, mozilla::dom::quota::Severity::Warning); }} | |||
6895 | // This may fail if SQLite already rolled back the transaction{auto tryResult3178 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { Unused << stmt->Execute(); self .mInWriteTransaction = false; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3178)::ok_type >); if ((__builtin_expect(!!(tryResult3178.isErr()), 0))) { mozilla::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult3178.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6906, mozilla::dom::quota::Severity::Warning); }} | |||
6896 | // so ignore any errors.{auto tryResult3178 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { Unused << stmt->Execute(); self .mInWriteTransaction = false; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3178)::ok_type >); if ((__builtin_expect(!!(tryResult3178.isErr()), 0))) { mozilla::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult3178.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6906, mozilla::dom::quota::Severity::Warning); }} | |||
6897 | ||||
6898 | // XXX ROLLBACK can fail quite normmally if a previous statement{auto tryResult3178 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { Unused << stmt->Execute(); self .mInWriteTransaction = false; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3178)::ok_type >); if ((__builtin_expect(!!(tryResult3178.isErr()), 0))) { mozilla::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult3178.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6906, mozilla::dom::quota::Severity::Warning); }} | |||
6899 | // failed to execute successfully so SQLite rolled back the{auto tryResult3178 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { Unused << stmt->Execute(); self .mInWriteTransaction = false; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3178)::ok_type >); if ((__builtin_expect(!!(tryResult3178.isErr()), 0))) { mozilla::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult3178.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6906, mozilla::dom::quota::Severity::Warning); }} | |||
6900 | // transaction already. However, if it failed because of some other{auto tryResult3178 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { Unused << stmt->Execute(); self .mInWriteTransaction = false; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3178)::ok_type >); if ((__builtin_expect(!!(tryResult3178.isErr()), 0))) { mozilla::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult3178.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6906, mozilla::dom::quota::Severity::Warning); }} | |||
6901 | // reason, we could try to close the connection.{auto tryResult3178 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { Unused << stmt->Execute(); self .mInWriteTransaction = false; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3178)::ok_type >); if ((__builtin_expect(!!(tryResult3178.isErr()), 0))) { mozilla::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult3178.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6906, mozilla::dom::quota::Severity::Warning); }} | |||
6902 | Unused << stmt->Execute();{auto tryResult3178 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { Unused << stmt->Execute(); self .mInWriteTransaction = false; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3178)::ok_type >); if ((__builtin_expect(!!(tryResult3178.isErr()), 0))) { mozilla::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult3178.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6906, mozilla::dom::quota::Severity::Warning); }} | |||
6903 | ||||
6904 | self.mInWriteTransaction = false;{auto tryResult3178 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { Unused << stmt->Execute(); self .mInWriteTransaction = false; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3178)::ok_type >); if ((__builtin_expect(!!(tryResult3178.isErr()), 0))) { mozilla::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult3178.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6906, mozilla::dom::quota::Severity::Warning); }} | |||
6905 | return Ok{};{auto tryResult3178 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { Unused << stmt->Execute(); self .mInWriteTransaction = false; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3178)::ok_type >); if ((__builtin_expect(!!(tryResult3178.isErr()), 0))) { mozilla::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult3178.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6906, mozilla::dom::quota::Severity::Warning); }} | |||
6906 | })){auto tryResult3178 = (BorrowCachedStatement("ROLLBACK;"_ns) . andThen([&self = *this](const auto& stmt) -> Result <Ok, nsresult> { Unused << stmt->Execute(); self .mInWriteTransaction = false; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3178)::ok_type >); if ((__builtin_expect(!!(tryResult3178.isErr()), 0))) { mozilla::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })" , tryResult3178.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6906, mozilla::dom::quota::Severity::Warning); }}; | |||
6907 | } | |||
6908 | ||||
6909 | void DatabaseConnection::FinishWriteTransaction() { | |||
6910 | AssertIsOnConnectionThread(); | |||
6911 | MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasStorageConnection())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6911); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { *((volatile int*)__null) = 6911; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6912 | MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6912); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { *((volatile int*)__null) = 6912; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6913 | MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6913); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { *((volatile int*)__null) = 6913; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6914 | ||||
6915 | AUTO_PROFILER_LABEL("DatabaseConnection::FinishWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6915( "DatabaseConnection::FinishWriteTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
6916 | ||||
6917 | if (mUpdateRefcountFunction) { | |||
6918 | mUpdateRefcountFunction->Reset(); | |||
6919 | } | |||
6920 | ||||
6921 | QM_WARNONLY_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("BEGIN;"_ns)){auto tryResult3179 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns )) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3179)::ok_type >); if ((__builtin_expect(!!(tryResult3179.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })" , tryResult3179.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6925, mozilla::dom::quota::Severity::Warning); }} | |||
6922 | .andThen([&](const auto) -> Result<Ok, nsresult> {{auto tryResult3179 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns )) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3179)::ok_type >); if ((__builtin_expect(!!(tryResult3179.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })" , tryResult3179.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6925, mozilla::dom::quota::Severity::Warning); }} | |||
6923 | mInReadTransaction = true;{auto tryResult3179 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns )) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3179)::ok_type >); if ((__builtin_expect(!!(tryResult3179.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })" , tryResult3179.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6925, mozilla::dom::quota::Severity::Warning); }} | |||
6924 | return Ok{};{auto tryResult3179 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns )) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3179)::ok_type >); if ((__builtin_expect(!!(tryResult3179.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })" , tryResult3179.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6925, mozilla::dom::quota::Severity::Warning); }} | |||
6925 | })){auto tryResult3179 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns )) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3179)::ok_type >); if ((__builtin_expect(!!(tryResult3179.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })" , tryResult3179.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6925, mozilla::dom::quota::Severity::Warning); }}; | |||
6926 | } | |||
6927 | ||||
6928 | nsresult DatabaseConnection::StartSavepoint() { | |||
6929 | AssertIsOnConnectionThread(); | |||
6930 | MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasStorageConnection())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6930); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { *((volatile int*)__null) = 6930; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6931 | MOZ_ASSERT(mUpdateRefcountFunction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mUpdateRefcountFunction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mUpdateRefcountFunction))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mUpdateRefcountFunction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6931); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction" ")"); do { *((volatile int*)__null) = 6931; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6932 | MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction" ")"); do { *((volatile int*)__null) = 6932; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6933 | ||||
6934 | AUTO_PROFILER_LABEL("DatabaseConnection::StartSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject6934( "DatabaseConnection::StartSavepoint" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
6935 | ||||
6936 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement(SAVEPOINT_CLAUSE))){auto tryResult3180 = (ToResult(ExecuteCachedStatement("SAVEPOINT sp;"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult3180 )::ok_type>); if ((__builtin_expect(!!(tryResult3180.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"SAVEPOINT sp;\"_ns))" , tryResult3180.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6936, mozilla::dom::quota::Severity::Error); return tryResult3180 .propagateErr(); }}; | |||
6937 | ||||
6938 | mUpdateRefcountFunction->StartSavepoint(); | |||
6939 | ||||
6940 | #ifdef DEBUG1 | |||
6941 | MOZ_ASSERT(mDEBUGSavepointCount < UINT32_MAX)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGSavepointCount < (4294967295U))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mDEBUGSavepointCount < (4294967295U)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGSavepointCount < (4294967295U)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6941); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount < (4294967295U)" ")"); do { *((volatile int*)__null) = 6941; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6942 | mDEBUGSavepointCount++; | |||
6943 | #endif | |||
6944 | ||||
6945 | return NS_OK; | |||
6946 | } | |||
6947 | ||||
6948 | nsresult DatabaseConnection::ReleaseSavepoint() { | |||
6949 | AssertIsOnConnectionThread(); | |||
6950 | MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasStorageConnection())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6950); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { *((volatile int*)__null) = 6950; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6951 | MOZ_ASSERT(mUpdateRefcountFunction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mUpdateRefcountFunction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mUpdateRefcountFunction))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mUpdateRefcountFunction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction" ")"); do { *((volatile int*)__null) = 6951; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6952 | MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6952); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction" ")"); do { *((volatile int*)__null) = 6952; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6953 | ||||
6954 | AUTO_PROFILER_LABEL("DatabaseConnection::ReleaseSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject6954( "DatabaseConnection::ReleaseSavepoint" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
6955 | ||||
6956 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("RELEASE "_ns SAVEPOINT_CLAUSE))){auto tryResult3181 = (ToResult(ExecuteCachedStatement("RELEASE "_ns "SAVEPOINT sp;"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3181)::ok_type>); if ((__builtin_expect (!!(tryResult3181.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ExecuteCachedStatement(\"RELEASE \"_ns \"SAVEPOINT sp;\"_ns))" , tryResult3181.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6956, mozilla::dom::quota::Severity::Error); return tryResult3181 .propagateErr(); }}; | |||
6957 | ||||
6958 | mUpdateRefcountFunction->ReleaseSavepoint(); | |||
6959 | ||||
6960 | #ifdef DEBUG1 | |||
6961 | MOZ_ASSERT(mDEBUGSavepointCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGSavepointCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGSavepointCount))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGSavepointCount" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount" ")"); do { *((volatile int*)__null) = 6961; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6962 | mDEBUGSavepointCount--; | |||
6963 | #endif | |||
6964 | ||||
6965 | return NS_OK; | |||
6966 | } | |||
6967 | ||||
6968 | nsresult DatabaseConnection::RollbackSavepoint() { | |||
6969 | AssertIsOnConnectionThread(); | |||
6970 | MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasStorageConnection())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { *((volatile int*)__null) = 6970; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6971 | MOZ_ASSERT(mUpdateRefcountFunction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mUpdateRefcountFunction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mUpdateRefcountFunction))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mUpdateRefcountFunction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6971); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction" ")"); do { *((volatile int*)__null) = 6971; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6972 | MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6972); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction" ")"); do { *((volatile int*)__null) = 6972; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6973 | ||||
6974 | AUTO_PROFILER_LABEL("DatabaseConnection::RollbackSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject6974( "DatabaseConnection::RollbackSavepoint" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
6975 | ||||
6976 | #ifdef DEBUG1 | |||
6977 | MOZ_ASSERT(mDEBUGSavepointCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGSavepointCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGSavepointCount))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGSavepointCount" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6977); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount" ")"); do { *((volatile int*)__null) = 6977; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6978 | mDEBUGSavepointCount--; | |||
6979 | #endif | |||
6980 | ||||
6981 | mUpdateRefcountFunction->RollbackSavepoint(); | |||
6982 | ||||
6983 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3182 = (BorrowCachedStatement("ROLLBACK TO "_ns "SAVEPOINT sp;"_ns)); if ((__builtin_expect(!!(tryResult3182 .isErr()), 0))) { mozilla::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK TO \"_ns \"SAVEPOINT sp;\"_ns)" , tryResult3182.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6984, mozilla::dom::quota::Severity::Error); return tryResult3182 .propagateErr(); } const auto& stmt = tryResult3182.inspect (); | |||
6984 | BorrowCachedStatement("ROLLBACK TO "_ns SAVEPOINT_CLAUSE))auto tryResult3182 = (BorrowCachedStatement("ROLLBACK TO "_ns "SAVEPOINT sp;"_ns)); if ((__builtin_expect(!!(tryResult3182 .isErr()), 0))) { mozilla::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK TO \"_ns \"SAVEPOINT sp;\"_ns)" , tryResult3182.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6984, mozilla::dom::quota::Severity::Error); return tryResult3182 .propagateErr(); } const auto& stmt = tryResult3182.inspect ();; | |||
6985 | ||||
6986 | // This may fail if SQLite already rolled back the savepoint so ignore any | |||
6987 | // errors. | |||
6988 | Unused << stmt->Execute(); | |||
6989 | ||||
6990 | return NS_OK; | |||
6991 | } | |||
6992 | ||||
6993 | nsresult DatabaseConnection::CheckpointInternal(CheckpointMode aMode) { | |||
6994 | AssertIsOnConnectionThread(); | |||
6995 | MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6995); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { *((volatile int*)__null) = 6995; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6996 | MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 6996); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { *((volatile int*)__null) = 6996; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
6997 | ||||
6998 | AUTO_PROFILER_LABEL("DatabaseConnection::CheckpointInternal", DOM)mozilla::AutoProfilerLabel raiiObject6998( "DatabaseConnection::CheckpointInternal" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
6999 | ||||
7000 | nsAutoCString stmtString; | |||
7001 | stmtString.AssignLiteral("PRAGMA wal_checkpoint("); | |||
7002 | ||||
7003 | switch (aMode) { | |||
7004 | case CheckpointMode::Full: | |||
7005 | // Ensures that the database is completely checkpointed and flushed to | |||
7006 | // disk. | |||
7007 | stmtString.AppendLiteral("FULL"); | |||
7008 | break; | |||
7009 | ||||
7010 | case CheckpointMode::Restart: | |||
7011 | // Like Full, but also ensures that the next write will start overwriting | |||
7012 | // the existing WAL file rather than letting the WAL file grow. | |||
7013 | stmtString.AppendLiteral("RESTART"); | |||
7014 | break; | |||
7015 | ||||
7016 | case CheckpointMode::Truncate: | |||
7017 | // Like Restart but also truncates the existing WAL file. | |||
7018 | stmtString.AppendLiteral("TRUNCATE"); | |||
7019 | break; | |||
7020 | ||||
7021 | default: | |||
7022 | MOZ_CRASH("Unknown CheckpointMode!")do { do { } while (false); MOZ_ReportCrash("" "Unknown CheckpointMode!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7022); AnnotateMozCrashReason("MOZ_CRASH(" "Unknown CheckpointMode!" ")"); do { *((volatile int*)__null) = 7022; __attribute__((nomerge )) ::abort(); } while (false); } while (false); | |||
7023 | } | |||
7024 | ||||
7025 | stmtString.AppendLiteral(");"); | |||
7026 | ||||
7027 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement(stmtString))){auto tryResult3183 = (ToResult(ExecuteCachedStatement(stmtString ))); static_assert(std::is_empty_v<typename decltype(tryResult3183 )::ok_type>); if ((__builtin_expect(!!(tryResult3183.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(stmtString))" , tryResult3183.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7027, mozilla::dom::quota::Severity::Error); return tryResult3183 .propagateErr(); }}; | |||
7028 | ||||
7029 | return NS_OK; | |||
7030 | } | |||
7031 | ||||
7032 | void DatabaseConnection::DoIdleProcessing(bool aNeedsCheckpoint, | |||
7033 | const Atomic<bool>& aInterrupted) { | |||
7034 | AssertIsOnConnectionThread(); | |||
7035 | MOZ_ASSERT(mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInReadTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInReadTransaction" ")"); do { *((volatile int*)__null) = 7035; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7036 | MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { *((volatile int*)__null) = 7036; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7037 | ||||
7038 | AUTO_PROFILER_LABEL("DatabaseConnection::DoIdleProcessing", DOM)mozilla::AutoProfilerLabel raiiObject7038( "DatabaseConnection::DoIdleProcessing" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7039 | ||||
7040 | CachingDatabaseConnection::CachedStatement freelistStmt; | |||
7041 | const uint32_t freelistCount = [this, &freelistStmt] { | |||
7042 | QM_TRY_RETURN(GetFreelistCount(freelistStmt), 0u){auto tryResult3184 = (GetFreelistCount(freelistStmt)); if (( __builtin_expect(!!(tryResult3184.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3184.unwrapErr(); mozilla ::dom::quota::HandleError("GetFreelistCount(freelistStmt)", tryResult3184 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7042, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "GetFreelistCount(freelistStmt)" , tryTempError, 0u); } return tryResult3184.unwrap();}; | |||
7043 | }(); | |||
7044 | ||||
7045 | CachedStatement rollbackStmt; | |||
7046 | CachedStatement beginStmt; | |||
7047 | if (aNeedsCheckpoint || freelistCount) { | |||
7048 | QM_TRY_UNWRAP(rollbackStmt, GetCachedStatement("ROLLBACK;"_ns), QM_VOID)auto tryResult3185 = (GetCachedStatement("ROLLBACK;"_ns)); if ((__builtin_expect(!!(tryResult3185.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3185.unwrapErr(); mozilla ::dom::quota::HandleError("GetCachedStatement(\"ROLLBACK;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7048, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } rollbackStmt = tryResult3185.unwrap();; | |||
7049 | QM_TRY_UNWRAP(beginStmt, GetCachedStatement("BEGIN;"_ns), QM_VOID)auto tryResult3186 = (GetCachedStatement("BEGIN;"_ns)); if (( __builtin_expect(!!(tryResult3186.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3186.unwrapErr(); mozilla ::dom::quota::HandleError("GetCachedStatement(\"BEGIN;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7049, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } beginStmt = tryResult3186.unwrap();; | |||
7050 | ||||
7051 | // Release the connection's normal transaction. It's possible that it could | |||
7052 | // fail, but that isn't a problem here. | |||
7053 | Unused << rollbackStmt.Borrow()->Execute(); | |||
7054 | ||||
7055 | mInReadTransaction = false; | |||
7056 | } | |||
7057 | ||||
7058 | const bool freedSomePages = | |||
7059 | freelistCount && [this, &freelistStmt, &rollbackStmt, freelistCount, | |||
7060 | aNeedsCheckpoint, &aInterrupted] { | |||
7061 | // Warn in case of an error, but do not propagate it. Just indicate we | |||
7062 | // didn't free any pages. | |||
7063 | QM_TRY_INSPECT(auto tryResult3187 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted) ); if ((__builtin_expect(!!(tryResult3187.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3187.unwrapErr (); mozilla::dom::quota::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7067, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, false); } const bool& res = tryResult3187 .inspect(); | |||
7064 | const bool& res,auto tryResult3187 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted) ); if ((__builtin_expect(!!(tryResult3187.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3187.unwrapErr (); mozilla::dom::quota::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7067, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, false); } const bool& res = tryResult3187 .inspect(); | |||
7065 | ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount,auto tryResult3187 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted) ); if ((__builtin_expect(!!(tryResult3187.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3187.unwrapErr (); mozilla::dom::quota::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7067, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, false); } const bool& res = tryResult3187 .inspect(); | |||
7066 | aNeedsCheckpoint, aInterrupted),auto tryResult3187 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted) ); if ((__builtin_expect(!!(tryResult3187.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3187.unwrapErr (); mozilla::dom::quota::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7067, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, false); } const bool& res = tryResult3187 .inspect(); | |||
7067 | false)auto tryResult3187 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted) ); if ((__builtin_expect(!!(tryResult3187.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3187.unwrapErr (); mozilla::dom::quota::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7067, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, false); } const bool& res = tryResult3187 .inspect();; | |||
7068 | ||||
7069 | // Make sure we didn't leave a transaction running. | |||
7070 | MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7070); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { *((volatile int*)__null) = 7070; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7071 | MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7071); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { *((volatile int*)__null) = 7071; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7072 | ||||
7073 | return res; | |||
7074 | }(); | |||
7075 | ||||
7076 | // Truncate the WAL if we were asked to or if we managed to free some space. | |||
7077 | if (aNeedsCheckpoint || freedSomePages) { | |||
7078 | QM_WARNONLY_TRY(QM_TO_RESULT(CheckpointInternal(CheckpointMode::Truncate))){auto tryResult3188 = (ToResult<QMResult>(CheckpointInternal (CheckpointMode::Truncate))); static_assert(std::is_empty_v< typename decltype(tryResult3188)::ok_type>); if ((__builtin_expect (!!(tryResult3188.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult<QMResult>(CheckpointInternal(CheckpointMode::Truncate))" , tryResult3188.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7078, mozilla::dom::quota::Severity::Warning); }}; | |||
7079 | } | |||
7080 | ||||
7081 | // Finally try to restart the read transaction if we rolled it back earlier. | |||
7082 | if (beginStmt) { | |||
7083 | QM_WARNONLY_TRY({auto tryResult3189 = (ToResult(beginStmt.Borrow()->Execute ()) .andThen([&self = *this](const Ok) -> Result<Ok , nsresult> { self.mInReadTransaction = true; return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3189 )::ok_type>); if ((__builtin_expect(!!(tryResult3189.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult3189.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7088, mozilla::dom::quota::Severity::Warning); }} | |||
7084 | MOZ_TO_RESULT(beginStmt.Borrow()->Execute()){auto tryResult3189 = (ToResult(beginStmt.Borrow()->Execute ()) .andThen([&self = *this](const Ok) -> Result<Ok , nsresult> { self.mInReadTransaction = true; return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3189 )::ok_type>); if ((__builtin_expect(!!(tryResult3189.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult3189.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7088, mozilla::dom::quota::Severity::Warning); }} | |||
7085 | .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> {{auto tryResult3189 = (ToResult(beginStmt.Borrow()->Execute ()) .andThen([&self = *this](const Ok) -> Result<Ok , nsresult> { self.mInReadTransaction = true; return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3189 )::ok_type>); if ((__builtin_expect(!!(tryResult3189.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult3189.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7088, mozilla::dom::quota::Severity::Warning); }} | |||
7086 | self.mInReadTransaction = true;{auto tryResult3189 = (ToResult(beginStmt.Borrow()->Execute ()) .andThen([&self = *this](const Ok) -> Result<Ok , nsresult> { self.mInReadTransaction = true; return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3189 )::ok_type>); if ((__builtin_expect(!!(tryResult3189.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult3189.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7088, mozilla::dom::quota::Severity::Warning); }} | |||
7087 | return Ok{};{auto tryResult3189 = (ToResult(beginStmt.Borrow()->Execute ()) .andThen([&self = *this](const Ok) -> Result<Ok , nsresult> { self.mInReadTransaction = true; return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3189 )::ok_type>); if ((__builtin_expect(!!(tryResult3189.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult3189.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7088, mozilla::dom::quota::Severity::Warning); }} | |||
7088 | })){auto tryResult3189 = (ToResult(beginStmt.Borrow()->Execute ()) .andThen([&self = *this](const Ok) -> Result<Ok , nsresult> { self.mInReadTransaction = true; return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3189 )::ok_type>); if ((__builtin_expect(!!(tryResult3189.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult3189.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7088, mozilla::dom::quota::Severity::Warning); }}; | |||
7089 | } | |||
7090 | } | |||
7091 | ||||
7092 | Result<bool, nsresult> DatabaseConnection::ReclaimFreePagesWhileIdle( | |||
7093 | CachedStatement& aFreelistStatement, CachedStatement& aRollbackStatement, | |||
7094 | uint32_t aFreelistCount, bool aNeedsCheckpoint, | |||
7095 | const Atomic<bool>& aInterrupted) { | |||
7096 | AssertIsOnConnectionThread(); | |||
7097 | MOZ_ASSERT(aFreelistStatement)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aFreelistStatement)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aFreelistStatement))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFreelistStatement" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7097); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFreelistStatement" ")"); do { *((volatile int*)__null) = 7097; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7098 | MOZ_ASSERT(aRollbackStatement)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aRollbackStatement)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aRollbackStatement))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aRollbackStatement" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7098); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRollbackStatement" ")"); do { *((volatile int*)__null) = 7098; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7099 | MOZ_ASSERT(aFreelistCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aFreelistCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aFreelistCount))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFreelistCount" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7099); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFreelistCount" ")"); do { *((volatile int*)__null) = 7099; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7100 | MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInReadTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7100); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { *((volatile int*)__null) = 7100; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7101 | MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7101); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { *((volatile int*)__null) = 7101; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7102 | ||||
7103 | AUTO_PROFILER_LABEL("DatabaseConnection::ReclaimFreePagesWhileIdle", DOM)mozilla::AutoProfilerLabel raiiObject7103( "DatabaseConnection::ReclaimFreePagesWhileIdle" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7104 | ||||
7105 | uint32_t pauseOnConnectionThreadMs = StaticPrefs:: | |||
7106 | dom_indexedDB_connectionIdleMaintenance_pauseOnConnectionThreadMs(); | |||
7107 | if (pauseOnConnectionThreadMs > 0) { | |||
7108 | PR_Sleep(PR_MillisecondsToInterval(pauseOnConnectionThreadMs)); | |||
7109 | } | |||
7110 | ||||
7111 | // Make sure we don't keep working if anything else needs this thread. | |||
7112 | if (aInterrupted) { | |||
7113 | return false; | |||
7114 | } | |||
7115 | ||||
7116 | // Make all the statements we'll need up front. | |||
7117 | ||||
7118 | // Only try to free 10% at a time so that we can bail out if this connection | |||
7119 | // suddenly becomes active or if the thread is needed otherwise. | |||
7120 | QM_TRY_INSPECT(auto tryResult3190 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult3190. isErr()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult3190.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7125, mozilla::dom::quota::Severity::Error); return tryResult3190 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult3190 .inspect(); | |||
7121 | const auto& incrementalVacuumStmt,auto tryResult3190 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult3190. isErr()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult3190.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7125, mozilla::dom::quota::Severity::Error); return tryResult3190 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult3190 .inspect(); | |||
7122 | GetCachedStatement(auto tryResult3190 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult3190. isErr()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult3190.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7125, mozilla::dom::quota::Severity::Error); return tryResult3190 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult3190 .inspect(); | |||
7123 | "PRAGMA incremental_vacuum("_ns +auto tryResult3190 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult3190. isErr()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult3190.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7125, mozilla::dom::quota::Severity::Error); return tryResult3190 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult3190 .inspect(); | |||
7124 | IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) +auto tryResult3190 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult3190. isErr()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult3190.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7125, mozilla::dom::quota::Severity::Error); return tryResult3190 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult3190 .inspect(); | |||
7125 | ");"_ns))auto tryResult3190 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult3190. isErr()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult3190.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7125, mozilla::dom::quota::Severity::Error); return tryResult3190 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult3190 .inspect();; | |||
7126 | ||||
7127 | QM_TRY_INSPECT(const auto& beginImmediateStmt,auto tryResult3191 = (GetCachedStatement("BEGIN IMMEDIATE;"_ns )); if ((__builtin_expect(!!(tryResult3191.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetCachedStatement(\"BEGIN IMMEDIATE;\"_ns)" , tryResult3191.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7128, mozilla::dom::quota::Severity::Error); return tryResult3191 .propagateErr(); } const auto& beginImmediateStmt = tryResult3191 .inspect(); | |||
7128 | GetCachedStatement("BEGIN IMMEDIATE;"_ns))auto tryResult3191 = (GetCachedStatement("BEGIN IMMEDIATE;"_ns )); if ((__builtin_expect(!!(tryResult3191.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetCachedStatement(\"BEGIN IMMEDIATE;\"_ns)" , tryResult3191.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7128, mozilla::dom::quota::Severity::Error); return tryResult3191 .propagateErr(); } const auto& beginImmediateStmt = tryResult3191 .inspect();; | |||
7129 | ||||
7130 | QM_TRY_INSPECT(const auto& commitStmt, GetCachedStatement("COMMIT;"_ns))auto tryResult3192 = (GetCachedStatement("COMMIT;"_ns)); if ( (__builtin_expect(!!(tryResult3192.isErr()), 0))) { mozilla:: dom::quota::HandleError("GetCachedStatement(\"COMMIT;\"_ns)", tryResult3192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7130, mozilla::dom::quota::Severity::Error); return tryResult3192 .propagateErr(); } const auto& commitStmt = tryResult3192 .inspect();; | |||
7131 | ||||
7132 | if (aNeedsCheckpoint) { | |||
7133 | // Freeing pages is a journaled operation, so it will require additional WAL | |||
7134 | // space. However, we're idle and are about to checkpoint anyway, so doing a | |||
7135 | // RESTART checkpoint here should allow us to reuse any existing space. | |||
7136 | QM_TRY(MOZ_TO_RESULT(CheckpointInternal(CheckpointMode::Restart))){auto tryResult3193 = (ToResult(CheckpointInternal(CheckpointMode ::Restart))); static_assert(std::is_empty_v<typename decltype (tryResult3193)::ok_type>); if ((__builtin_expect(!!(tryResult3193 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(CheckpointInternal(CheckpointMode::Restart))" , tryResult3193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7136, mozilla::dom::quota::Severity::Error); return tryResult3193 .propagateErr(); }}; | |||
7137 | } | |||
7138 | ||||
7139 | // Start the write transaction. | |||
7140 | QM_TRY(MOZ_TO_RESULT(beginImmediateStmt.Borrow()->Execute())){auto tryResult3194 = (ToResult(beginImmediateStmt.Borrow()-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3194)::ok_type>); if ((__builtin_expect(!!(tryResult3194 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(beginImmediateStmt.Borrow()->Execute())" , tryResult3194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7140, mozilla::dom::quota::Severity::Error); return tryResult3194 .propagateErr(); }}; | |||
7141 | ||||
7142 | mInWriteTransaction = true; | |||
7143 | ||||
7144 | bool freedSomePages = false; | |||
7145 | ||||
7146 | const auto rollback = [&aRollbackStatement, this](const auto&) { | |||
7147 | MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7147); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction" ")"); do { *((volatile int*)__null) = 7147; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7148 | ||||
7149 | // Something failed, make sure we roll everything back. | |||
7150 | Unused << aRollbackStatement.Borrow()->Execute(); | |||
7151 | ||||
7152 | // XXX Is rollback infallible? Shouldn't we check the result? | |||
7153 | ||||
7154 | mInWriteTransaction = false; | |||
7155 | }; | |||
7156 | ||||
7157 | uint64_t previousFreelistCount = (uint64_t)aFreelistCount + 1; | |||
7158 | ||||
7159 | QM_TRY(CollectWhile({auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7160 | [&aFreelistCount, &previousFreelistCount,{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7161 | &aInterrupted]() -> Result<bool, nsresult> {{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7162 | if (aInterrupted) {{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7163 | // On interrupt, abort and roll back this transaction. It's ok{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7164 | // if we never make progress here because the idle service{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7165 | // should eventually reclaim this space.{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7166 | return false;{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7167 | }{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7168 | // If we were not able to free anything, we might either see{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7169 | // a DB that has no auto-vacuum support at all or some other{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7170 | // (hopefully temporary) condition that prevents vacuum from{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7171 | // working. Just carry on in non-DEBUG.{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7172 | bool madeProgress = previousFreelistCount != aFreelistCount;{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7173 | previousFreelistCount = aFreelistCount;{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7174 | MOZ_ASSERT(madeProgress);{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7175 | QM_WARNONLY_TRY(MOZ_TO_RESULT(madeProgress));{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7176 | return madeProgress && (aFreelistCount != 0);{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7177 | },{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7178 | [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt,{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7179 | &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> {{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7180 | QM_TRY(MOZ_TO_RESULT(incrementalVacuumStmt.Borrow()->Execute()));{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7181 | ||||
7182 | freedSomePages = true;{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7183 | ||||
7184 | QM_TRY_UNWRAP(aFreelistCount,{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7185 | GetFreelistCount(aFreelistStatement));{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7186 | ||||
7187 | return Ok{};{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7188 | }){auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7189 | .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback,{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7190 | this](Ok) -> Result<Ok, nsresult> {{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7191 | if (aInterrupted) {{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7192 | rollback(Ok{});{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7193 | freedSomePages = false;{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7194 | }{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7195 | ||||
7196 | if (freedSomePages) {{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7197 | // Commit the write transaction.{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7198 | QM_TRY(MOZ_TO_RESULT(commitStmt.Borrow()->Execute()),{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7199 | QM_PROPAGATE,{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7200 | [](const auto&) { NS_WARNING("Failed to commit!"); });{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7201 | ||||
7202 | mInWriteTransaction = false;{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7203 | }{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7204 | ||||
7205 | return Ok{};{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7206 | }),{auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | |||
7207 | QM_PROPAGATE, rollback){auto tryResult3199 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect (!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult3195.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3196)::ok_type >); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult3196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7180, mozilla::dom::quota::Severity::Error); return tryResult3196 .propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult3197.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Error); return tryResult3197 .propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect (!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7200); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError , Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3199)::ok_type>); if ((__builtin_expect(!!(tryResult3199 .isErr()), 0))) { auto tryTempError = tryResult3199.unwrapErr (); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7207, mozilla::dom::quota::Severity::Error); rollback(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7174); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7174; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult3195 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult3195)::ok_type>); if ((__builtin_expect(!!(tryResult3195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult3195.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7175, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult3196 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3196)::ok_type>); if ((__builtin_expect(!!(tryResult3196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult3196.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7180, mozilla::dom::quota::Severity::Error); return tryResult3196.propagateErr(); }}; freedSomePages = true; auto tryResult3197 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult3197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult3197.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7185, mozilla::dom::quota::Severity::Error); return tryResult3197.propagateErr(); } aFreelistCount = tryResult3197.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult3198 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3198)::ok_type>); if ((__builtin_expect(!!(tryResult3198.isErr()), 0))) { auto tryTempError = tryResult3198.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7200); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }}; | |||
7208 | ||||
7209 | return freedSomePages; | |||
7210 | } | |||
7211 | ||||
7212 | Result<uint32_t, nsresult> DatabaseConnection::GetFreelistCount( | |||
7213 | CachedStatement& aCachedStatement) { | |||
7214 | AssertIsOnConnectionThread(); | |||
7215 | ||||
7216 | AUTO_PROFILER_LABEL("DatabaseConnection::GetFreelistCount", DOM)mozilla::AutoProfilerLabel raiiObject7216( "DatabaseConnection::GetFreelistCount" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7217 | ||||
7218 | if (!aCachedStatement) { | |||
7219 | QM_TRY_UNWRAP(aCachedStatement,auto tryResult3200 = (GetCachedStatement("PRAGMA freelist_count;"_ns )); if ((__builtin_expect(!!(tryResult3200.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetCachedStatement(\"PRAGMA freelist_count;\"_ns)" , tryResult3200.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7220, mozilla::dom::quota::Severity::Error); return tryResult3200 .propagateErr(); } aCachedStatement = tryResult3200.unwrap(); | |||
7220 | GetCachedStatement("PRAGMA freelist_count;"_ns))auto tryResult3200 = (GetCachedStatement("PRAGMA freelist_count;"_ns )); if ((__builtin_expect(!!(tryResult3200.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetCachedStatement(\"PRAGMA freelist_count;\"_ns)" , tryResult3200.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7220, mozilla::dom::quota::Severity::Error); return tryResult3200 .propagateErr(); } aCachedStatement = tryResult3200.unwrap();; | |||
7221 | } | |||
7222 | ||||
7223 | const auto borrowedStatement = aCachedStatement.Borrow(); | |||
7224 | ||||
7225 | QM_TRY_UNWRAP(const DebugOnly<bool> hasResult,auto tryResult3201 = (::mozilla::ToResultInvokeMember( (& *borrowedStatement), &::mozilla::detail::DerefedType<decltype (&*borrowedStatement)>::ExecuteStep)); if ((__builtin_expect (!!(tryResult3201.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (&*borrowedStatement), &::mozilla::detail::DerefedType<decltype(&*borrowedStatement)>::ExecuteStep)" , tryResult3201.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7226, mozilla::dom::quota::Severity::Error); return tryResult3201 .propagateErr(); } const DebugOnly<bool> hasResult = tryResult3201 .unwrap(); | |||
7226 | MOZ_TO_RESULT_INVOKE_MEMBER(&*borrowedStatement, ExecuteStep))auto tryResult3201 = (::mozilla::ToResultInvokeMember( (& *borrowedStatement), &::mozilla::detail::DerefedType<decltype (&*borrowedStatement)>::ExecuteStep)); if ((__builtin_expect (!!(tryResult3201.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (&*borrowedStatement), &::mozilla::detail::DerefedType<decltype(&*borrowedStatement)>::ExecuteStep)" , tryResult3201.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7226, mozilla::dom::quota::Severity::Error); return tryResult3201 .propagateErr(); } const DebugOnly<bool> hasResult = tryResult3201 .unwrap();; | |||
7227 | ||||
7228 | MOZ_ASSERT(hasResult)do { static_assert( mozilla::detail::AssertionConditionType< decltype(hasResult)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(hasResult))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("hasResult", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7228); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasResult" ")" ); do { *((volatile int*)__null) = 7228; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7229 | ||||
7230 | QM_TRY_INSPECT(const int32_t& freelistCount,auto tryResult3202 = (::mozilla::ToResultInvokeMember( (*borrowedStatement ), &::mozilla::detail::DerefedType<decltype(*borrowedStatement )>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3202. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*borrowedStatement), &::mozilla::detail::DerefedType<decltype(*borrowedStatement)>::GetInt32, 0)" , tryResult3202.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7231, mozilla::dom::quota::Severity::Error); return tryResult3202 .propagateErr(); } const int32_t& freelistCount = tryResult3202 .inspect(); | |||
7231 | MOZ_TO_RESULT_INVOKE_MEMBER(*borrowedStatement, GetInt32, 0))auto tryResult3202 = (::mozilla::ToResultInvokeMember( (*borrowedStatement ), &::mozilla::detail::DerefedType<decltype(*borrowedStatement )>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3202. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*borrowedStatement), &::mozilla::detail::DerefedType<decltype(*borrowedStatement)>::GetInt32, 0)" , tryResult3202.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7231, mozilla::dom::quota::Severity::Error); return tryResult3202 .propagateErr(); } const int32_t& freelistCount = tryResult3202 .inspect();; | |||
7232 | ||||
7233 | MOZ_ASSERT(freelistCount >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(freelistCount >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(freelistCount >= 0))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("freelistCount >= 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7233); AnnotateMozCrashReason("MOZ_ASSERT" "(" "freelistCount >= 0" ")"); do { *((volatile int*)__null) = 7233; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7234 | ||||
7235 | return uint32_t(freelistCount); | |||
7236 | } | |||
7237 | ||||
7238 | void DatabaseConnection::Close() { | |||
7239 | AssertIsOnConnectionThread(); | |||
7240 | MOZ_ASSERT(!mDEBUGSavepointCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDEBUGSavepointCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDEBUGSavepointCount))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGSavepointCount" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7240); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGSavepointCount" ")"); do { *((volatile int*)__null) = 7240; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7241 | MOZ_DIAGNOSTIC_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7241); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!mInWriteTransaction" ")"); do { *((volatile int*)__null) = 7241; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7242 | ||||
7243 | AUTO_PROFILER_LABEL("DatabaseConnection::Close", DOM)mozilla::AutoProfilerLabel raiiObject7243( "DatabaseConnection::Close" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7244 | ||||
7245 | if (mUpdateRefcountFunction) { | |||
7246 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (MutableStorageConnection().RemoveFunction("update_refcount"_ns ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7247); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))" ")"); do { *((volatile int*)__null) = 7247; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
7247 | MutableStorageConnection().RemoveFunction("update_refcount"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (MutableStorageConnection().RemoveFunction("update_refcount"_ns ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7247); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))" ")"); do { *((volatile int*)__null) = 7247; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
7248 | mUpdateRefcountFunction = nullptr; | |||
7249 | } | |||
7250 | ||||
7251 | CachingDatabaseConnection::Close(); | |||
7252 | ||||
7253 | mFileManager.destroy(); | |||
7254 | } | |||
7255 | ||||
7256 | nsresult DatabaseConnection::DisableQuotaChecks() { | |||
7257 | AssertIsOnConnectionThread(); | |||
7258 | MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasStorageConnection())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7258); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { *((volatile int*)__null) = 7258; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7259 | ||||
7260 | if (!mQuotaObject) { | |||
7261 | MOZ_ASSERT(!mJournalQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mJournalQuotaObject)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mJournalQuotaObject))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mJournalQuotaObject" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7261); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mJournalQuotaObject" ")"); do { *((volatile int*)__null) = 7261; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7262 | ||||
7263 | QM_TRY(MOZ_TO_RESULT(MutableStorageConnection().GetQuotaObjects({auto tryResult3203 = (ToResult(MutableStorageConnection().GetQuotaObjects ( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject )))); static_assert(std::is_empty_v<typename decltype(tryResult3203 )::ok_type>); if ((__builtin_expect(!!(tryResult3203.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MutableStorageConnection().GetQuotaObjects( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))" , tryResult3203.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7264, mozilla::dom::quota::Severity::Error); return tryResult3203 .propagateErr(); }} | |||
7264 | getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))){auto tryResult3203 = (ToResult(MutableStorageConnection().GetQuotaObjects ( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject )))); static_assert(std::is_empty_v<typename decltype(tryResult3203 )::ok_type>); if ((__builtin_expect(!!(tryResult3203.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MutableStorageConnection().GetQuotaObjects( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))" , tryResult3203.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7264, mozilla::dom::quota::Severity::Error); return tryResult3203 .propagateErr(); }}; | |||
7265 | ||||
7266 | MOZ_ASSERT(mQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mQuotaObject)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mQuotaObject))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mQuotaObject", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7266); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQuotaObject" ")"); do { *((volatile int*)__null) = 7266; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7267 | MOZ_ASSERT(mJournalQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mJournalQuotaObject)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mJournalQuotaObject))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mJournalQuotaObject" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7267); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mJournalQuotaObject" ")"); do { *((volatile int*)__null) = 7267; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7268 | } | |||
7269 | ||||
7270 | mQuotaObject->DisableQuotaCheck(); | |||
7271 | mJournalQuotaObject->DisableQuotaCheck(); | |||
7272 | ||||
7273 | return NS_OK; | |||
7274 | } | |||
7275 | ||||
7276 | void DatabaseConnection::EnableQuotaChecks() { | |||
7277 | AssertIsOnConnectionThread(); | |||
7278 | if (!mQuotaObject) { | |||
7279 | MOZ_ASSERT(!mJournalQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mJournalQuotaObject)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mJournalQuotaObject))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mJournalQuotaObject" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7279); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mJournalQuotaObject" ")"); do { *((volatile int*)__null) = 7279; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7280 | ||||
7281 | // DisableQuotaChecks failed earlier, so we don't need to enable quota | |||
7282 | // checks again. | |||
7283 | return; | |||
7284 | } | |||
7285 | ||||
7286 | MOZ_ASSERT(mJournalQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mJournalQuotaObject)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mJournalQuotaObject))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mJournalQuotaObject" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7286); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mJournalQuotaObject" ")"); do { *((volatile int*)__null) = 7286; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7287 | ||||
7288 | const RefPtr<QuotaObject> quotaObject = std::move(mQuotaObject); | |||
7289 | const RefPtr<QuotaObject> journalQuotaObject = std::move(mJournalQuotaObject); | |||
7290 | ||||
7291 | quotaObject->EnableQuotaCheck(); | |||
7292 | journalQuotaObject->EnableQuotaCheck(); | |||
7293 | ||||
7294 | QM_TRY_INSPECT(const int64_t& fileSize, GetFileSize(quotaObject->Path()),auto tryResult3204 = (GetFileSize(quotaObject->Path())); if ((__builtin_expect(!!(tryResult3204.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3204.unwrapErr(); mozilla ::dom::quota::HandleError("GetFileSize(quotaObject->Path())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7295, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const int64_t& fileSize = tryResult3204.inspect(); | |||
7295 | QM_VOID)auto tryResult3204 = (GetFileSize(quotaObject->Path())); if ((__builtin_expect(!!(tryResult3204.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3204.unwrapErr(); mozilla ::dom::quota::HandleError("GetFileSize(quotaObject->Path())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7295, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const int64_t& fileSize = tryResult3204.inspect();; | |||
7296 | QM_TRY_INSPECT(const int64_t& journalFileSize,auto tryResult3205 = (GetFileSize(journalQuotaObject->Path ())); if ((__builtin_expect(!!(tryResult3205.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3205 .unwrapErr(); mozilla::dom::quota::HandleError("GetFileSize(journalQuotaObject->Path())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const int64_t& journalFileSize = tryResult3205.inspect (); | |||
7297 | GetFileSize(journalQuotaObject->Path()), QM_VOID)auto tryResult3205 = (GetFileSize(journalQuotaObject->Path ())); if ((__builtin_expect(!!(tryResult3205.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3205 .unwrapErr(); mozilla::dom::quota::HandleError("GetFileSize(journalQuotaObject->Path())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const int64_t& journalFileSize = tryResult3205.inspect ();; | |||
7298 | ||||
7299 | DebugOnly<bool> result = journalQuotaObject->MaybeUpdateSize( | |||
7300 | journalFileSize, /* aTruncate */ true); | |||
7301 | MOZ_ASSERT(result)do { static_assert( mozilla::detail::AssertionConditionType< decltype(result)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(result))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("result", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "result" ")" ); do { *((volatile int*)__null) = 7301; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7302 | ||||
7303 | result = quotaObject->MaybeUpdateSize(fileSize, /* aTruncate */ true); | |||
7304 | MOZ_ASSERT(result)do { static_assert( mozilla::detail::AssertionConditionType< decltype(result)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(result))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("result", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7304); AnnotateMozCrashReason("MOZ_ASSERT" "(" "result" ")" ); do { *((volatile int*)__null) = 7304; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7305 | } | |||
7306 | ||||
7307 | Result<int64_t, nsresult> DatabaseConnection::GetFileSize( | |||
7308 | const nsAString& aPath) { | |||
7309 | MOZ_ASSERT(!aPath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aPath.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aPath.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aPath.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7309); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aPath.IsEmpty()" ")"); do { *((volatile int*)__null) = 7309; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7310 | ||||
7311 | QM_TRY_INSPECT(const auto& file, QM_NewLocalFile(aPath))auto tryResult3206 = (QM_NewLocalFile(aPath)); if ((__builtin_expect (!!(tryResult3206.isErr()), 0))) { mozilla::dom::quota::HandleError ("QM_NewLocalFile(aPath)", tryResult3206.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7311, mozilla::dom::quota::Severity::Error); return tryResult3206 .propagateErr(); } const auto& file = tryResult3206.inspect ();; | |||
7312 | QM_TRY_INSPECT(const bool& exists, MOZ_TO_RESULT_INVOKE_MEMBER(file, Exists))auto tryResult3207 = (::mozilla::ToResultInvokeMember( (file) , &::mozilla::detail::DerefedType<decltype(file)>:: Exists)); if ((__builtin_expect(!!(tryResult3207.isErr()), 0) )) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::Exists)" , tryResult3207.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7312, mozilla::dom::quota::Severity::Error); return tryResult3207 .propagateErr(); } const bool& exists = tryResult3207.inspect ();; | |||
7313 | ||||
7314 | if (exists) { | |||
7315 | QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(file, GetFileSize)){auto tryResult3208 = (::mozilla::ToResultInvokeMember( (file ), &::mozilla::detail::DerefedType<decltype(file)>:: GetFileSize)); if ((__builtin_expect(!!(tryResult3208.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize)" , tryResult3208.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7315, mozilla::dom::quota::Severity::Error); } return tryResult3208 ;}; | |||
7316 | } | |||
7317 | ||||
7318 | return 0; | |||
7319 | } | |||
7320 | ||||
7321 | DatabaseConnection::AutoSavepoint::AutoSavepoint() | |||
7322 | : mConnection(nullptr) | |||
7323 | #ifdef DEBUG1 | |||
7324 | , | |||
7325 | mDEBUGTransaction(nullptr) | |||
7326 | #endif | |||
7327 | { | |||
7328 | MOZ_COUNT_CTOR(DatabaseConnection::AutoSavepoint)do { static_assert(std::is_class_v<DatabaseConnection::AutoSavepoint >, "Token '" "DatabaseConnection::AutoSavepoint" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, DatabaseConnection ::AutoSavepoint>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "DatabaseConnection::AutoSavepoint" , sizeof(*this)); } while (0); | |||
7329 | } | |||
7330 | ||||
7331 | DatabaseConnection::AutoSavepoint::~AutoSavepoint() { | |||
7332 | MOZ_COUNT_DTOR(DatabaseConnection::AutoSavepoint)do { static_assert(std::is_class_v<DatabaseConnection::AutoSavepoint >, "Token '" "DatabaseConnection::AutoSavepoint" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, DatabaseConnection ::AutoSavepoint>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "DatabaseConnection::AutoSavepoint" , sizeof(*this)); } while (0); | |||
7333 | ||||
7334 | if (mConnection) { | |||
7335 | mConnection->AssertIsOnConnectionThread(); | |||
7336 | MOZ_ASSERT(mDEBUGTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7336); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction" ")"); do { *((volatile int*)__null) = 7336; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7337 | MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode ::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode () == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction-> GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::VersionChange))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7341); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 7341; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
7338 | mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode ::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode () == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction-> GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::VersionChange))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7341); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 7341; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
7339 | mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode ::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode () == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction-> GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::VersionChange))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7341); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 7341; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
7340 | mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode ::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode () == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction-> GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::VersionChange))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7341); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 7341; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
7341 | mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode ::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode () == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction-> GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction ->GetMode() == IDBTransaction::Mode::VersionChange))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7341); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 7341; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7342 | ||||
7343 | QM_WARNONLY_TRY(QM_TO_RESULT(mConnection->RollbackSavepoint())){auto tryResult3209 = (ToResult<QMResult>(mConnection-> RollbackSavepoint())); static_assert(std::is_empty_v<typename decltype(tryResult3209)::ok_type>); if ((__builtin_expect (!!(tryResult3209.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult<QMResult>(mConnection->RollbackSavepoint())" , tryResult3209.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7343, mozilla::dom::quota::Severity::Warning); }}; | |||
7344 | } | |||
7345 | } | |||
7346 | ||||
7347 | nsresult DatabaseConnection::AutoSavepoint::Start( | |||
7348 | const TransactionBase& aTransaction) { | |||
7349 | MOZ_ASSERT(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7352); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 7352; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
7350 | aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7352); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 7352; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
7351 | aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7352); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 7352; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
7352 | aTransaction.GetMode() == IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7352); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 7352; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7353 | ||||
7354 | DatabaseConnection* connection = aTransaction.GetDatabase().GetConnection(); | |||
7355 | MOZ_ASSERT(connection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(connection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(connection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("connection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7355); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection" ")"); do { *((volatile int*)__null) = 7355; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7356 | connection->AssertIsOnConnectionThread(); | |||
7357 | ||||
7358 | // The previous operation failed to begin a write transaction and the | |||
7359 | // following opertion jumped to the connection thread before the previous | |||
7360 | // operation has updated its failure to the transaction. | |||
7361 | if (!connection->GetUpdateRefcountFunction()) { | |||
7362 | NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation " "failed!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7364) | |||
7363 | "The connection was closed because the previous operation "NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation " "failed!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7364) | |||
7364 | "failed!")NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation " "failed!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7364); | |||
7365 | return NS_ERROR_DOM_INDEXEDDB_ABORT_ERR; | |||
7366 | } | |||
7367 | ||||
7368 | MOZ_ASSERT(!mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7368); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection" ")"); do { *((volatile int*)__null) = 7368; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7369 | MOZ_ASSERT(!mDEBUGTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDEBUGTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDEBUGTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7369); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGTransaction" ")"); do { *((volatile int*)__null) = 7369; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7370 | ||||
7371 | QM_TRY(MOZ_TO_RESULT(connection->StartSavepoint())){auto tryResult3210 = (ToResult(connection->StartSavepoint ())); static_assert(std::is_empty_v<typename decltype(tryResult3210 )::ok_type>); if ((__builtin_expect(!!(tryResult3210.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->StartSavepoint())" , tryResult3210.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7371, mozilla::dom::quota::Severity::Error); return tryResult3210 .propagateErr(); }}; | |||
7372 | ||||
7373 | mConnection = connection; | |||
7374 | #ifdef DEBUG1 | |||
7375 | mDEBUGTransaction = &aTransaction; | |||
7376 | #endif | |||
7377 | ||||
7378 | return NS_OK; | |||
7379 | } | |||
7380 | ||||
7381 | nsresult DatabaseConnection::AutoSavepoint::Commit() { | |||
7382 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7382); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { *((volatile int*)__null) = 7382; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7383 | mConnection->AssertIsOnConnectionThread(); | |||
7384 | MOZ_ASSERT(mDEBUGTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7384); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction" ")"); do { *((volatile int*)__null) = 7384; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7385 | ||||
7386 | QM_TRY(MOZ_TO_RESULT(mConnection->ReleaseSavepoint())){auto tryResult3211 = (ToResult(mConnection->ReleaseSavepoint ())); static_assert(std::is_empty_v<typename decltype(tryResult3211 )::ok_type>); if ((__builtin_expect(!!(tryResult3211.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mConnection->ReleaseSavepoint())" , tryResult3211.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7386, mozilla::dom::quota::Severity::Error); return tryResult3211 .propagateErr(); }}; | |||
7387 | ||||
7388 | mConnection = nullptr; | |||
7389 | #ifdef DEBUG1 | |||
7390 | mDEBUGTransaction = nullptr; | |||
7391 | #endif | |||
7392 | ||||
7393 | return NS_OK; | |||
7394 | } | |||
7395 | ||||
7396 | DatabaseConnection::UpdateRefcountFunction::UpdateRefcountFunction( | |||
7397 | DatabaseConnection* const aConnection, DatabaseFileManager& aFileManager) | |||
7398 | : mConnection(aConnection), | |||
7399 | mFileManager(aFileManager), | |||
7400 | mInSavepoint(false) { | |||
7401 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7401); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 7401; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7402 | aConnection->AssertIsOnConnectionThread(); | |||
7403 | } | |||
7404 | ||||
7405 | nsresult DatabaseConnection::UpdateRefcountFunction::WillCommit() { | |||
7406 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7406); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { *((volatile int*)__null) = 7406; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7407 | mConnection->AssertIsOnConnectionThread(); | |||
7408 | MOZ_ASSERT(mConnection->HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection->HasStorageConnection())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mConnection->HasStorageConnection()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection->HasStorageConnection()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7408); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection->HasStorageConnection()" ")"); do { *((volatile int*)__null) = 7408; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7409 | ||||
7410 | AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::WillCommit",mozilla::AutoProfilerLabel raiiObject7411( "DatabaseConnection::UpdateRefcountFunction::WillCommit" , nullptr, JS::ProfilingCategoryPair::DOM) | |||
7411 | DOM)mozilla::AutoProfilerLabel raiiObject7411( "DatabaseConnection::UpdateRefcountFunction::WillCommit" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7412 | ||||
7413 | // The parameter names are not used, parameters are bound by index | |||
7414 | // only locally in the same function. | |||
7415 | auto update = | |||
7416 | [updateStatement = LazyStatement{*mConnection, | |||
7417 | "UPDATE file " | |||
7418 | "SET refcount = refcount + :delta " | |||
7419 | "WHERE id = :id"_ns}, | |||
7420 | selectStatement = LazyStatement{*mConnection, | |||
7421 | "SELECT id " | |||
7422 | "FROM file " | |||
7423 | "WHERE id = :id"_ns}, | |||
7424 | insertStatement = | |||
7425 | LazyStatement{ | |||
7426 | *mConnection, | |||
7427 | "INSERT INTO file (id, refcount) VALUES(:id, :delta)"_ns}, | |||
7428 | this](int64_t aId, int32_t aDelta) mutable -> Result<Ok, nsresult> { | |||
7429 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7430( "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update" , nullptr, JS::ProfilingCategoryPair::DOM) | |||
7430 | "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update", DOM)mozilla::AutoProfilerLabel raiiObject7430( "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7431 | { | |||
7432 | QM_TRY_INSPECT(const auto& borrowedUpdateStatement,auto tryResult3212 = (updateStatement.Borrow()); if ((__builtin_expect (!!(tryResult3212.isErr()), 0))) { mozilla::dom::quota::HandleError ("updateStatement.Borrow()", tryResult3212.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7433, mozilla::dom::quota::Severity::Error); return tryResult3212 .propagateErr(); } const auto& borrowedUpdateStatement = tryResult3212 .inspect(); | |||
7433 | updateStatement.Borrow())auto tryResult3212 = (updateStatement.Borrow()); if ((__builtin_expect (!!(tryResult3212.isErr()), 0))) { mozilla::dom::quota::HandleError ("updateStatement.Borrow()", tryResult3212.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7433, mozilla::dom::quota::Severity::Error); return tryResult3212 .propagateErr(); } const auto& borrowedUpdateStatement = tryResult3212 .inspect();; | |||
7434 | ||||
7435 | QM_TRY({auto tryResult3213 = (ToResult(borrowedUpdateStatement->BindInt32ByIndex (0, aDelta))); static_assert(std::is_empty_v<typename decltype (tryResult3213)::ok_type>); if ((__builtin_expect(!!(tryResult3213 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))" , tryResult3213.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7436, mozilla::dom::quota::Severity::Error); return tryResult3213 .propagateErr(); }} | |||
7436 | MOZ_TO_RESULT(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))){auto tryResult3213 = (ToResult(borrowedUpdateStatement->BindInt32ByIndex (0, aDelta))); static_assert(std::is_empty_v<typename decltype (tryResult3213)::ok_type>); if ((__builtin_expect(!!(tryResult3213 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))" , tryResult3213.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7436, mozilla::dom::quota::Severity::Error); return tryResult3213 .propagateErr(); }}; | |||
7437 | QM_TRY(MOZ_TO_RESULT(borrowedUpdateStatement->BindInt64ByIndex(1, aId))){auto tryResult3214 = (ToResult(borrowedUpdateStatement->BindInt64ByIndex (1, aId))); static_assert(std::is_empty_v<typename decltype (tryResult3214)::ok_type>); if ((__builtin_expect(!!(tryResult3214 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt64ByIndex(1, aId))" , tryResult3214.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7437, mozilla::dom::quota::Severity::Error); return tryResult3214 .propagateErr(); }}; | |||
7438 | QM_TRY(MOZ_TO_RESULT(borrowedUpdateStatement->Execute())){auto tryResult3215 = (ToResult(borrowedUpdateStatement->Execute ())); static_assert(std::is_empty_v<typename decltype(tryResult3215 )::ok_type>); if ((__builtin_expect(!!(tryResult3215.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->Execute())" , tryResult3215.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7438, mozilla::dom::quota::Severity::Error); return tryResult3215 .propagateErr(); }}; | |||
7439 | } | |||
7440 | ||||
7441 | QM_TRY_INSPECT(auto tryResult3216 = (::mozilla::ToResultInvokeMember( (mConnection ->MutableStorageConnection()), &::mozilla::detail::DerefedType <decltype(mConnection->MutableStorageConnection())>:: GetAffectedRows)); if ((__builtin_expect(!!(tryResult3216.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows)" , tryResult3216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7444, mozilla::dom::quota::Severity::Error); return tryResult3216 .propagateErr(); } const int32_t& rows = tryResult3216.inspect (); | |||
7442 | const int32_t& rows,auto tryResult3216 = (::mozilla::ToResultInvokeMember( (mConnection ->MutableStorageConnection()), &::mozilla::detail::DerefedType <decltype(mConnection->MutableStorageConnection())>:: GetAffectedRows)); if ((__builtin_expect(!!(tryResult3216.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows)" , tryResult3216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7444, mozilla::dom::quota::Severity::Error); return tryResult3216 .propagateErr(); } const int32_t& rows = tryResult3216.inspect (); | |||
7443 | MOZ_TO_RESULT_INVOKE_MEMBER(mConnection->MutableStorageConnection(),auto tryResult3216 = (::mozilla::ToResultInvokeMember( (mConnection ->MutableStorageConnection()), &::mozilla::detail::DerefedType <decltype(mConnection->MutableStorageConnection())>:: GetAffectedRows)); if ((__builtin_expect(!!(tryResult3216.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows)" , tryResult3216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7444, mozilla::dom::quota::Severity::Error); return tryResult3216 .propagateErr(); } const int32_t& rows = tryResult3216.inspect (); | |||
7444 | GetAffectedRows))auto tryResult3216 = (::mozilla::ToResultInvokeMember( (mConnection ->MutableStorageConnection()), &::mozilla::detail::DerefedType <decltype(mConnection->MutableStorageConnection())>:: GetAffectedRows)); if ((__builtin_expect(!!(tryResult3216.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows)" , tryResult3216.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7444, mozilla::dom::quota::Severity::Error); return tryResult3216 .propagateErr(); } const int32_t& rows = tryResult3216.inspect ();; | |||
7445 | ||||
7446 | if (rows > 0) { | |||
7447 | QM_TRY_INSPECT(auto tryResult3218 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult3217)::ok_type >); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult3217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7452, mozilla::dom::quota::Severity::Error); return tryResult3217 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3218.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult3217)::ok_type>); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult3217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7452, mozilla::dom::quota::Severity::Error); return tryResult3217.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7455, mozilla::dom::quota::Severity::Error); return tryResult3218 .propagateErr(); } const bool& hasResult = tryResult3218. inspect(); | |||
7448 | const bool& hasResult,auto tryResult3218 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult3217)::ok_type >); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult3217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7452, mozilla::dom::quota::Severity::Error); return tryResult3217 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3218.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult3217)::ok_type>); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult3217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7452, mozilla::dom::quota::Severity::Error); return tryResult3217.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7455, mozilla::dom::quota::Severity::Error); return tryResult3218 .propagateErr(); } const bool& hasResult = tryResult3218. inspect(); | |||
7449 | selectStatementauto tryResult3218 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult3217)::ok_type >); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult3217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7452, mozilla::dom::quota::Severity::Error); return tryResult3217 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3218.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult3217)::ok_type>); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult3217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7452, mozilla::dom::quota::Severity::Error); return tryResult3217.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7455, mozilla::dom::quota::Severity::Error); return tryResult3218 .propagateErr(); } const bool& hasResult = tryResult3218. inspect(); | |||
7450 | .BorrowAndExecuteSingleStep(auto tryResult3218 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult3217)::ok_type >); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult3217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7452, mozilla::dom::quota::Severity::Error); return tryResult3217 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3218.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult3217)::ok_type>); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult3217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7452, mozilla::dom::quota::Severity::Error); return tryResult3217.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7455, mozilla::dom::quota::Severity::Error); return tryResult3218 .propagateErr(); } const bool& hasResult = tryResult3218. inspect(); | |||
7451 | [aId](auto& stmt) -> Result<Ok, nsresult> {auto tryResult3218 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult3217)::ok_type >); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult3217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7452, mozilla::dom::quota::Severity::Error); return tryResult3217 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3218.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult3217)::ok_type>); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult3217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7452, mozilla::dom::quota::Severity::Error); return tryResult3217.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7455, mozilla::dom::quota::Severity::Error); return tryResult3218 .propagateErr(); } const bool& hasResult = tryResult3218. inspect(); | |||
7452 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, aId)));auto tryResult3218 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult3217)::ok_type >); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult3217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7452, mozilla::dom::quota::Severity::Error); return tryResult3217 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3218.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult3217)::ok_type>); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult3217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7452, mozilla::dom::quota::Severity::Error); return tryResult3217.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7455, mozilla::dom::quota::Severity::Error); return tryResult3218 .propagateErr(); } const bool& hasResult = tryResult3218. inspect(); | |||
7453 | return Ok{};auto tryResult3218 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult3217)::ok_type >); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult3217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7452, mozilla::dom::quota::Severity::Error); return tryResult3217 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3218.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult3217)::ok_type>); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult3217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7452, mozilla::dom::quota::Severity::Error); return tryResult3217.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7455, mozilla::dom::quota::Severity::Error); return tryResult3218 .propagateErr(); } const bool& hasResult = tryResult3218. inspect(); | |||
7454 | })auto tryResult3218 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult3217)::ok_type >); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult3217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7452, mozilla::dom::quota::Severity::Error); return tryResult3217 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3218.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult3217)::ok_type>); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult3217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7452, mozilla::dom::quota::Severity::Error); return tryResult3217.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7455, mozilla::dom::quota::Severity::Error); return tryResult3218 .propagateErr(); } const bool& hasResult = tryResult3218. inspect(); | |||
7455 | .map(IsSome))auto tryResult3218 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult3217)::ok_type >); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult3217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7452, mozilla::dom::quota::Severity::Error); return tryResult3217 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3218.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3217 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult3217)::ok_type>); if ((__builtin_expect(!!(tryResult3217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult3217.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7452, mozilla::dom::quota::Severity::Error); return tryResult3217.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7455, mozilla::dom::quota::Severity::Error); return tryResult3218 .propagateErr(); } const bool& hasResult = tryResult3218. inspect();; | |||
7456 | ||||
7457 | if (!hasResult) { | |||
7458 | // Don't have to create the journal here, we can create all at once, | |||
7459 | // just before commit | |||
7460 | mJournalsToCreateBeforeCommit.AppendElement(aId); | |||
7461 | } | |||
7462 | ||||
7463 | return Ok{}; | |||
7464 | } | |||
7465 | ||||
7466 | QM_TRY_INSPECT(const auto& borrowedInsertStatement,auto tryResult3219 = (insertStatement.Borrow()); if ((__builtin_expect (!!(tryResult3219.isErr()), 0))) { mozilla::dom::quota::HandleError ("insertStatement.Borrow()", tryResult3219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7467, mozilla::dom::quota::Severity::Error); return tryResult3219 .propagateErr(); } const auto& borrowedInsertStatement = tryResult3219 .inspect(); | |||
7467 | insertStatement.Borrow())auto tryResult3219 = (insertStatement.Borrow()); if ((__builtin_expect (!!(tryResult3219.isErr()), 0))) { mozilla::dom::quota::HandleError ("insertStatement.Borrow()", tryResult3219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7467, mozilla::dom::quota::Severity::Error); return tryResult3219 .propagateErr(); } const auto& borrowedInsertStatement = tryResult3219 .inspect();; | |||
7468 | ||||
7469 | QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->BindInt64ByIndex(0, aId))){auto tryResult3220 = (ToResult(borrowedInsertStatement->BindInt64ByIndex (0, aId))); static_assert(std::is_empty_v<typename decltype (tryResult3220)::ok_type>); if ((__builtin_expect(!!(tryResult3220 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->BindInt64ByIndex(0, aId))" , tryResult3220.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7469, mozilla::dom::quota::Severity::Error); return tryResult3220 .propagateErr(); }}; | |||
7470 | QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->BindInt32ByIndex(1, aDelta))){auto tryResult3221 = (ToResult(borrowedInsertStatement->BindInt32ByIndex (1, aDelta))); static_assert(std::is_empty_v<typename decltype (tryResult3221)::ok_type>); if ((__builtin_expect(!!(tryResult3221 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->BindInt32ByIndex(1, aDelta))" , tryResult3221.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7470, mozilla::dom::quota::Severity::Error); return tryResult3221 .propagateErr(); }}; | |||
7471 | QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->Execute())){auto tryResult3222 = (ToResult(borrowedInsertStatement->Execute ())); static_assert(std::is_empty_v<typename decltype(tryResult3222 )::ok_type>); if ((__builtin_expect(!!(tryResult3222.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->Execute())" , tryResult3222.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7471, mozilla::dom::quota::Severity::Error); return tryResult3222 .propagateErr(); }}; | |||
7472 | ||||
7473 | mJournalsToRemoveAfterCommit.AppendElement(aId); | |||
7474 | ||||
7475 | return Ok{}; | |||
7476 | }; | |||
7477 | ||||
7478 | QM_TRY(CollectEachInRange({auto tryResult3224 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult3223 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult3223)::ok_type >); if ((__builtin_expect(!!(tryResult3223.isErr()), 0))) { mozilla::dom::quota::HandleError("update(entry.GetKey(), delta)" , tryResult3223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7482, mozilla::dom::quota::Severity::Error); return tryResult3223 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3224)::ok_type>); if ((__builtin_expect (!!(tryResult3224.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult3223 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult3223)::ok_type>); if ((__builtin_expect(!!(tryResult3223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult3223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7482, mozilla::dom::quota::Severity::Error); return tryResult3223.propagateErr(); }}; } return Ok{}; })" , tryResult3224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7486, mozilla::dom::quota::Severity::Error); return tryResult3224 .propagateErr(); }} | |||
7479 | mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> {{auto tryResult3224 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult3223 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult3223)::ok_type >); if ((__builtin_expect(!!(tryResult3223.isErr()), 0))) { mozilla::dom::quota::HandleError("update(entry.GetKey(), delta)" , tryResult3223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7482, mozilla::dom::quota::Severity::Error); return tryResult3223 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3224)::ok_type>); if ((__builtin_expect (!!(tryResult3224.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult3223 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult3223)::ok_type>); if ((__builtin_expect(!!(tryResult3223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult3223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7482, mozilla::dom::quota::Severity::Error); return tryResult3223.propagateErr(); }}; } return Ok{}; })" , tryResult3224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7486, mozilla::dom::quota::Severity::Error); return tryResult3224 .propagateErr(); }} | |||
7480 | const auto delta = entry.GetData()->Delta();{auto tryResult3224 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult3223 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult3223)::ok_type >); if ((__builtin_expect(!!(tryResult3223.isErr()), 0))) { mozilla::dom::quota::HandleError("update(entry.GetKey(), delta)" , tryResult3223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7482, mozilla::dom::quota::Severity::Error); return tryResult3223 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3224)::ok_type>); if ((__builtin_expect (!!(tryResult3224.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult3223 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult3223)::ok_type>); if ((__builtin_expect(!!(tryResult3223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult3223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7482, mozilla::dom::quota::Severity::Error); return tryResult3223.propagateErr(); }}; } return Ok{}; })" , tryResult3224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7486, mozilla::dom::quota::Severity::Error); return tryResult3224 .propagateErr(); }} | |||
7481 | if (delta) {{auto tryResult3224 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult3223 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult3223)::ok_type >); if ((__builtin_expect(!!(tryResult3223.isErr()), 0))) { mozilla::dom::quota::HandleError("update(entry.GetKey(), delta)" , tryResult3223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7482, mozilla::dom::quota::Severity::Error); return tryResult3223 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3224)::ok_type>); if ((__builtin_expect (!!(tryResult3224.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult3223 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult3223)::ok_type>); if ((__builtin_expect(!!(tryResult3223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult3223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7482, mozilla::dom::quota::Severity::Error); return tryResult3223.propagateErr(); }}; } return Ok{}; })" , tryResult3224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7486, mozilla::dom::quota::Severity::Error); return tryResult3224 .propagateErr(); }} | |||
7482 | QM_TRY(update(entry.GetKey(), delta));{auto tryResult3224 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult3223 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult3223)::ok_type >); if ((__builtin_expect(!!(tryResult3223.isErr()), 0))) { mozilla::dom::quota::HandleError("update(entry.GetKey(), delta)" , tryResult3223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7482, mozilla::dom::quota::Severity::Error); return tryResult3223 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3224)::ok_type>); if ((__builtin_expect (!!(tryResult3224.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult3223 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult3223)::ok_type>); if ((__builtin_expect(!!(tryResult3223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult3223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7482, mozilla::dom::quota::Severity::Error); return tryResult3223.propagateErr(); }}; } return Ok{}; })" , tryResult3224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7486, mozilla::dom::quota::Severity::Error); return tryResult3224 .propagateErr(); }} | |||
7483 | }{auto tryResult3224 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult3223 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult3223)::ok_type >); if ((__builtin_expect(!!(tryResult3223.isErr()), 0))) { mozilla::dom::quota::HandleError("update(entry.GetKey(), delta)" , tryResult3223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7482, mozilla::dom::quota::Severity::Error); return tryResult3223 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3224)::ok_type>); if ((__builtin_expect (!!(tryResult3224.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult3223 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult3223)::ok_type>); if ((__builtin_expect(!!(tryResult3223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult3223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7482, mozilla::dom::quota::Severity::Error); return tryResult3223.propagateErr(); }}; } return Ok{}; })" , tryResult3224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7486, mozilla::dom::quota::Severity::Error); return tryResult3224 .propagateErr(); }} | |||
7484 | ||||
7485 | return Ok{};{auto tryResult3224 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult3223 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult3223)::ok_type >); if ((__builtin_expect(!!(tryResult3223.isErr()), 0))) { mozilla::dom::quota::HandleError("update(entry.GetKey(), delta)" , tryResult3223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7482, mozilla::dom::quota::Severity::Error); return tryResult3223 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3224)::ok_type>); if ((__builtin_expect (!!(tryResult3224.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult3223 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult3223)::ok_type>); if ((__builtin_expect(!!(tryResult3223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult3223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7482, mozilla::dom::quota::Severity::Error); return tryResult3223.propagateErr(); }}; } return Ok{}; })" , tryResult3224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7486, mozilla::dom::quota::Severity::Error); return tryResult3224 .propagateErr(); }} | |||
7486 | })){auto tryResult3224 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult3223 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult3223)::ok_type >); if ((__builtin_expect(!!(tryResult3223.isErr()), 0))) { mozilla::dom::quota::HandleError("update(entry.GetKey(), delta)" , tryResult3223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7482, mozilla::dom::quota::Severity::Error); return tryResult3223 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3224)::ok_type>); if ((__builtin_expect (!!(tryResult3224.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult3223 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult3223)::ok_type>); if ((__builtin_expect(!!(tryResult3223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult3223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7482, mozilla::dom::quota::Severity::Error); return tryResult3223.propagateErr(); }}; } return Ok{}; })" , tryResult3224.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7486, mozilla::dom::quota::Severity::Error); return tryResult3224 .propagateErr(); }}; | |||
7487 | ||||
7488 | QM_TRY(MOZ_TO_RESULT(CreateJournals())){auto tryResult3225 = (ToResult(CreateJournals())); static_assert (std::is_empty_v<typename decltype(tryResult3225)::ok_type >); if ((__builtin_expect(!!(tryResult3225.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(CreateJournals())" , tryResult3225.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7488, mozilla::dom::quota::Severity::Error); return tryResult3225 .propagateErr(); }}; | |||
7489 | ||||
7490 | return NS_OK; | |||
7491 | } | |||
7492 | ||||
7493 | void DatabaseConnection::UpdateRefcountFunction::DidCommit() { | |||
7494 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { *((volatile int*)__null) = 7494; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7495 | mConnection->AssertIsOnConnectionThread(); | |||
7496 | ||||
7497 | AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::DidCommit",mozilla::AutoProfilerLabel raiiObject7498( "DatabaseConnection::UpdateRefcountFunction::DidCommit" , nullptr, JS::ProfilingCategoryPair::DOM) | |||
7498 | DOM)mozilla::AutoProfilerLabel raiiObject7498( "DatabaseConnection::UpdateRefcountFunction::DidCommit" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7499 | ||||
7500 | for (const auto& entry : mFileInfoEntries.Values()) { | |||
7501 | entry->MaybeUpdateDBRefs(); | |||
7502 | } | |||
7503 | ||||
7504 | QM_WARNONLY_TRY(QM_TO_RESULT(RemoveJournals(mJournalsToRemoveAfterCommit))){auto tryResult3226 = (ToResult<QMResult>(RemoveJournals (mJournalsToRemoveAfterCommit))); static_assert(std::is_empty_v <typename decltype(tryResult3226)::ok_type>); if ((__builtin_expect (!!(tryResult3226.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult<QMResult>(RemoveJournals(mJournalsToRemoveAfterCommit))" , tryResult3226.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7504, mozilla::dom::quota::Severity::Warning); }}; | |||
7505 | } | |||
7506 | ||||
7507 | void DatabaseConnection::UpdateRefcountFunction::DidAbort() { | |||
7508 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7508); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { *((volatile int*)__null) = 7508; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7509 | mConnection->AssertIsOnConnectionThread(); | |||
7510 | ||||
7511 | AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::DidAbort",mozilla::AutoProfilerLabel raiiObject7512( "DatabaseConnection::UpdateRefcountFunction::DidAbort" , nullptr, JS::ProfilingCategoryPair::DOM) | |||
7512 | DOM)mozilla::AutoProfilerLabel raiiObject7512( "DatabaseConnection::UpdateRefcountFunction::DidAbort" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7513 | ||||
7514 | QM_WARNONLY_TRY(QM_TO_RESULT(RemoveJournals(mJournalsToRemoveAfterAbort))){auto tryResult3227 = (ToResult<QMResult>(RemoveJournals (mJournalsToRemoveAfterAbort))); static_assert(std::is_empty_v <typename decltype(tryResult3227)::ok_type>); if ((__builtin_expect (!!(tryResult3227.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult<QMResult>(RemoveJournals(mJournalsToRemoveAfterAbort))" , tryResult3227.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7514, mozilla::dom::quota::Severity::Warning); }}; | |||
7515 | } | |||
7516 | ||||
7517 | void DatabaseConnection::UpdateRefcountFunction::StartSavepoint() { | |||
7518 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7518); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { *((volatile int*)__null) = 7518; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7519 | mConnection->AssertIsOnConnectionThread(); | |||
7520 | MOZ_ASSERT(!mInSavepoint)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInSavepoint)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInSavepoint))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInSavepoint", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7520); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInSavepoint" ")"); do { *((volatile int*)__null) = 7520; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7521 | MOZ_ASSERT(!mSavepointEntriesIndex.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mSavepointEntriesIndex.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mSavepointEntriesIndex.Count ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mSavepointEntriesIndex.Count()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mSavepointEntriesIndex.Count()" ")"); do { *((volatile int*)__null) = 7521; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7522 | ||||
7523 | mInSavepoint = true; | |||
7524 | } | |||
7525 | ||||
7526 | void DatabaseConnection::UpdateRefcountFunction::ReleaseSavepoint() { | |||
7527 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { *((volatile int*)__null) = 7527; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7528 | mConnection->AssertIsOnConnectionThread(); | |||
7529 | MOZ_ASSERT(mInSavepoint)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInSavepoint)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInSavepoint))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInSavepoint", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInSavepoint" ")"); do { *((volatile int*)__null) = 7529; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7530 | ||||
7531 | mSavepointEntriesIndex.Clear(); | |||
7532 | mInSavepoint = false; | |||
7533 | } | |||
7534 | ||||
7535 | void DatabaseConnection::UpdateRefcountFunction::RollbackSavepoint() { | |||
7536 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7536); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { *((volatile int*)__null) = 7536; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7537 | mConnection->AssertIsOnConnectionThread(); | |||
7538 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7538); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 7538; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7539 | MOZ_ASSERT(mInSavepoint)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInSavepoint)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInSavepoint))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInSavepoint", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7539); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInSavepoint" ")"); do { *((volatile int*)__null) = 7539; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7540 | ||||
7541 | for (const auto& entry : mSavepointEntriesIndex.Values()) { | |||
7542 | entry->DecBySavepointDelta(); | |||
7543 | } | |||
7544 | ||||
7545 | mInSavepoint = false; | |||
7546 | mSavepointEntriesIndex.Clear(); | |||
7547 | } | |||
7548 | ||||
7549 | void DatabaseConnection::UpdateRefcountFunction::Reset() { | |||
7550 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7550); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { *((volatile int*)__null) = 7550; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7551 | mConnection->AssertIsOnConnectionThread(); | |||
7552 | MOZ_ASSERT(!mSavepointEntriesIndex.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mSavepointEntriesIndex.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mSavepointEntriesIndex.Count ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mSavepointEntriesIndex.Count()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mSavepointEntriesIndex.Count()" ")"); do { *((volatile int*)__null) = 7552; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7553 | MOZ_ASSERT(!mInSavepoint)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInSavepoint)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInSavepoint))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInSavepoint", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInSavepoint" ")"); do { *((volatile int*)__null) = 7553; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7554 | ||||
7555 | mJournalsToCreateBeforeCommit.Clear(); | |||
7556 | mJournalsToRemoveAfterCommit.Clear(); | |||
7557 | mJournalsToRemoveAfterAbort.Clear(); | |||
7558 | ||||
7559 | // DatabaseFileInfo implementation automatically removes unreferenced files, | |||
7560 | // but it's done asynchronously and with a delay. We want to remove them (and | |||
7561 | // decrease quota usage) before we fire the commit event. | |||
7562 | for (const auto& entry : mFileInfoEntries.Values()) { | |||
7563 | // We need to move mFileInfo into a raw pointer in order to release it | |||
7564 | // explicitly with aSyncDeleteFile == true. | |||
7565 | DatabaseFileInfo* const fileInfo = entry->ReleaseFileInfo().forget().take(); | |||
7566 | MOZ_ASSERT(fileInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileInfo", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7566); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileInfo" ")" ); do { *((volatile int*)__null) = 7566; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7567 | ||||
7568 | fileInfo->Release(/* aSyncDeleteFile */ true); | |||
7569 | } | |||
7570 | ||||
7571 | mFileInfoEntries.Clear(); | |||
7572 | } | |||
7573 | ||||
7574 | nsresult DatabaseConnection::UpdateRefcountFunction::ProcessValue( | |||
7575 | mozIStorageValueArray* aValues, int32_t aIndex, UpdateType aUpdateType) { | |||
7576 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7576); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { *((volatile int*)__null) = 7576; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7577 | mConnection->AssertIsOnConnectionThread(); | |||
7578 | MOZ_ASSERT(aValues)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aValues)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aValues))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aValues", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7578); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")" ); do { *((volatile int*)__null) = 7578; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7579 | ||||
7580 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7581( "DatabaseConnection::UpdateRefcountFunction::ProcessValue" , nullptr, JS::ProfilingCategoryPair::DOM) | |||
7581 | "DatabaseConnection::UpdateRefcountFunction::ProcessValue", DOM)mozilla::AutoProfilerLabel raiiObject7581( "DatabaseConnection::UpdateRefcountFunction::ProcessValue" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7582 | ||||
7583 | QM_TRY_INSPECT(const int32_t& type,auto tryResult3228 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex, aIndex)); if ((__builtin_expect(!!(tryResult3228 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, aIndex)" , tryResult3228.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7584, mozilla::dom::quota::Severity::Error); return tryResult3228 .propagateErr(); } const int32_t& type = tryResult3228.inspect (); | |||
7584 | MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, aIndex))auto tryResult3228 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex, aIndex)); if ((__builtin_expect(!!(tryResult3228 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, aIndex)" , tryResult3228.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7584, mozilla::dom::quota::Severity::Error); return tryResult3228 .propagateErr(); } const int32_t& type = tryResult3228.inspect ();; | |||
7585 | ||||
7586 | if (type == mozIStorageValueArray::VALUE_TYPE_NULL) { | |||
7587 | return NS_OK; | |||
7588 | } | |||
7589 | ||||
7590 | QM_TRY_INSPECT(const auto& ids, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3229 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (aValues)>::GetString), (aValues), aIndex)); if ((__builtin_expect (!!(tryResult3229.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aValues)>::GetString), (aValues), aIndex)" , tryResult3229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7591, mozilla::dom::quota::Severity::Error); return tryResult3229 .propagateErr(); } const auto& ids = tryResult3229.inspect (); | |||
7591 | nsString, aValues, GetString, aIndex))auto tryResult3229 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (aValues)>::GetString), (aValues), aIndex)); if ((__builtin_expect (!!(tryResult3229.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aValues)>::GetString), (aValues), aIndex)" , tryResult3229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7591, mozilla::dom::quota::Severity::Error); return tryResult3229 .propagateErr(); } const auto& ids = tryResult3229.inspect ();; | |||
7592 | ||||
7593 | QM_TRY_INSPECT(const auto& files,auto tryResult3230 = (DeserializeStructuredCloneFiles(mFileManager , ids)); if ((__builtin_expect(!!(tryResult3230.isErr()), 0)) ) { mozilla::dom::quota::HandleError("DeserializeStructuredCloneFiles(mFileManager, ids)" , tryResult3230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7594, mozilla::dom::quota::Severity::Error); return tryResult3230 .propagateErr(); } const auto& files = tryResult3230.inspect (); | |||
7594 | DeserializeStructuredCloneFiles(mFileManager, ids))auto tryResult3230 = (DeserializeStructuredCloneFiles(mFileManager , ids)); if ((__builtin_expect(!!(tryResult3230.isErr()), 0)) ) { mozilla::dom::quota::HandleError("DeserializeStructuredCloneFiles(mFileManager, ids)" , tryResult3230.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7594, mozilla::dom::quota::Severity::Error); return tryResult3230 .propagateErr(); } const auto& files = tryResult3230.inspect ();; | |||
7595 | ||||
7596 | for (const StructuredCloneFileParent& file : files) { | |||
7597 | const int64_t id = file.FileInfo().Id(); | |||
7598 | MOZ_ASSERT(id > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(id > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(id > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("id > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7598); AnnotateMozCrashReason("MOZ_ASSERT" "(" "id > 0" ")" ); do { *((volatile int*)__null) = 7598; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7599 | ||||
7600 | const auto entry = | |||
7601 | WrapNotNull(mFileInfoEntries.GetOrInsertNew(id, file.FileInfoPtr())); | |||
7602 | ||||
7603 | if (mInSavepoint) { | |||
7604 | mSavepointEntriesIndex.InsertOrUpdate(id, entry); | |||
7605 | } | |||
7606 | ||||
7607 | switch (aUpdateType) { | |||
7608 | case UpdateType::Increment: | |||
7609 | entry->IncDeltas(mInSavepoint); | |||
7610 | break; | |||
7611 | case UpdateType::Decrement: | |||
7612 | entry->DecDeltas(mInSavepoint); | |||
7613 | break; | |||
7614 | default: | |||
7615 | MOZ_CRASH("Unknown update type!")do { do { } while (false); MOZ_ReportCrash("" "Unknown update type!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7615); AnnotateMozCrashReason("MOZ_CRASH(" "Unknown update type!" ")"); do { *((volatile int*)__null) = 7615; __attribute__((nomerge )) ::abort(); } while (false); } while (false); | |||
7616 | } | |||
7617 | } | |||
7618 | ||||
7619 | return NS_OK; | |||
7620 | } | |||
7621 | ||||
7622 | nsresult DatabaseConnection::UpdateRefcountFunction::CreateJournals() { | |||
7623 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7623); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { *((volatile int*)__null) = 7623; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7624 | mConnection->AssertIsOnConnectionThread(); | |||
7625 | ||||
7626 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7627( "DatabaseConnection::UpdateRefcountFunction::CreateJournals" , nullptr, JS::ProfilingCategoryPair::DOM) | |||
7627 | "DatabaseConnection::UpdateRefcountFunction::CreateJournals", DOM)mozilla::AutoProfilerLabel raiiObject7627( "DatabaseConnection::UpdateRefcountFunction::CreateJournals" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7628 | ||||
7629 | const nsCOMPtr<nsIFile> journalDirectory = mFileManager.GetJournalDirectory(); | |||
7630 | QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult3231 = (OkIf(journalDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3231)::ok_type >); if ((__builtin_expect(!!(tryResult3231.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3231 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(journalDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)" , tryTempError, NS_ERROR_FAILURE); }}; | |||
7631 | ||||
7632 | for (const int64_t id : mJournalsToCreateBeforeCommit) { | |||
7633 | const nsCOMPtr<nsIFile> file = | |||
7634 | DatabaseFileManager::GetFileForId(journalDirectory, id); | |||
7635 | QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult3232 = (OkIf(file)); static_assert(std::is_empty_v <typename decltype(tryResult3232)::ok_type>); if ((__builtin_expect (!!(tryResult3232.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3232.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(file)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7635, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError , NS_ERROR_FAILURE); }}; | |||
7636 | ||||
7637 | QM_TRY(MOZ_TO_RESULT(file->Create(nsIFile::NORMAL_FILE_TYPE, 0644))){auto tryResult3233 = (ToResult(file->Create(nsIFile::NORMAL_FILE_TYPE , 0644))); static_assert(std::is_empty_v<typename decltype (tryResult3233)::ok_type>); if ((__builtin_expect(!!(tryResult3233 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Create(nsIFile::NORMAL_FILE_TYPE, 0644))" , tryResult3233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7637, mozilla::dom::quota::Severity::Error); return tryResult3233 .propagateErr(); }}; | |||
7638 | ||||
7639 | mJournalsToRemoveAfterAbort.AppendElement(id); | |||
7640 | } | |||
7641 | ||||
7642 | return NS_OK; | |||
7643 | } | |||
7644 | ||||
7645 | nsresult DatabaseConnection::UpdateRefcountFunction::RemoveJournals( | |||
7646 | const nsTArray<int64_t>& aJournals) { | |||
7647 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7647); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { *((volatile int*)__null) = 7647; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7648 | mConnection->AssertIsOnConnectionThread(); | |||
7649 | ||||
7650 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7651( "DatabaseConnection::UpdateRefcountFunction::RemoveJournals" , nullptr, JS::ProfilingCategoryPair::DOM) | |||
7651 | "DatabaseConnection::UpdateRefcountFunction::RemoveJournals", DOM)mozilla::AutoProfilerLabel raiiObject7651( "DatabaseConnection::UpdateRefcountFunction::RemoveJournals" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7652 | ||||
7653 | nsCOMPtr<nsIFile> journalDirectory = mFileManager.GetJournalDirectory(); | |||
7654 | QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult3234 = (OkIf(journalDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3234)::ok_type >); if ((__builtin_expect(!!(tryResult3234.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3234 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(journalDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7654, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)" , tryTempError, NS_ERROR_FAILURE); }}; | |||
7655 | ||||
7656 | for (const auto& journal : aJournals) { | |||
7657 | nsCOMPtr<nsIFile> file = | |||
7658 | DatabaseFileManager::GetFileForId(journalDirectory, journal); | |||
7659 | QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult3235 = (OkIf(file)); static_assert(std::is_empty_v <typename decltype(tryResult3235)::ok_type>); if ((__builtin_expect (!!(tryResult3235.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3235.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(file)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7659, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError , NS_ERROR_FAILURE); }}; | |||
7660 | ||||
7661 | QM_WARNONLY_TRY(QM_TO_RESULT(file->Remove(false))){auto tryResult3236 = (ToResult<QMResult>(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult3236)::ok_type>); if ((__builtin_expect(!!(tryResult3236 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult<QMResult>(file->Remove(false))" , tryResult3236.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7661, mozilla::dom::quota::Severity::Warning); }}; | |||
7662 | } | |||
7663 | ||||
7664 | return NS_OK; | |||
7665 | } | |||
7666 | ||||
7667 | NS_IMPL_ISUPPORTS(DatabaseConnection::UpdateRefcountFunction,MozExternalRefCountType DatabaseConnection::UpdateRefcountFunction ::AddRef(void) { static_assert(!std::is_destructible_v<DatabaseConnection ::UpdateRefcountFunction>, "Reference-counted class " "DatabaseConnection::UpdateRefcountFunction" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 7668; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("DatabaseConnection::UpdateRefcountFunction" != nullptr )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!("DatabaseConnection::UpdateRefcountFunction" != nullptr ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" " (" "Must specify a name" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" ") (" "Must specify a name" ")"); do { *((volatile int*)__null ) = 7668; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("DatabaseConnection::UpdateRefcountFunction" " not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef ((this), (count), ("DatabaseConnection::UpdateRefcountFunction" ), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType DatabaseConnection::UpdateRefcountFunction::Release(void) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 7668 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("DatabaseConnection::UpdateRefcountFunction" != nullptr )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!("DatabaseConnection::UpdateRefcountFunction" != nullptr ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" " (" "Must specify a name" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" ") (" "Must specify a name" ")"); do { *((volatile int*)__null ) = 7668; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("DatabaseConnection::UpdateRefcountFunction" " not thread-safe"); const char* const nametmp = "DatabaseConnection::UpdateRefcountFunction" ; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), ( nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return 0; } return count; } nsresult DatabaseConnection::UpdateRefcountFunction ::QueryInterface(const nsIID& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION , "QueryInterface requires a non-NULL destination!", "aInstancePtr" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7668); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE ; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE" ); static const QITableEntry table[] = { {&mozilla::detail ::kImplementedIID<DatabaseConnection::UpdateRefcountFunction , mozIStorageFunction>, int32_t( reinterpret_cast<char* >(static_cast<mozIStorageFunction*>((DatabaseConnection ::UpdateRefcountFunction*)0x1000)) - reinterpret_cast<char *>((DatabaseConnection::UpdateRefcountFunction*)0x1000))}, {&mozilla::detail::kImplementedIID<DatabaseConnection ::UpdateRefcountFunction, nsISupports>, int32_t(reinterpret_cast <char*>(static_cast<nsISupports*>( static_cast< mozIStorageFunction*>((DatabaseConnection::UpdateRefcountFunction *)0x1000))) - reinterpret_cast<char*>((DatabaseConnection ::UpdateRefcountFunction*)0x1000))}, { nullptr, 0 } } ; static_assert ((sizeof(table) / sizeof(table[0])) > 1, "need at least 1 interface" ); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID , aInstancePtr, table); return rv; } | |||
7668 | mozIStorageFunction)MozExternalRefCountType DatabaseConnection::UpdateRefcountFunction ::AddRef(void) { static_assert(!std::is_destructible_v<DatabaseConnection ::UpdateRefcountFunction>, "Reference-counted class " "DatabaseConnection::UpdateRefcountFunction" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 7668; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("DatabaseConnection::UpdateRefcountFunction" != nullptr )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!("DatabaseConnection::UpdateRefcountFunction" != nullptr ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" " (" "Must specify a name" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" ") (" "Must specify a name" ")"); do { *((volatile int*)__null ) = 7668; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("DatabaseConnection::UpdateRefcountFunction" " not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef ((this), (count), ("DatabaseConnection::UpdateRefcountFunction" ), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType DatabaseConnection::UpdateRefcountFunction::Release(void) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 7668 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("DatabaseConnection::UpdateRefcountFunction" != nullptr )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!("DatabaseConnection::UpdateRefcountFunction" != nullptr ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" " (" "Must specify a name" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" ") (" "Must specify a name" ")"); do { *((volatile int*)__null ) = 7668; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("DatabaseConnection::UpdateRefcountFunction" " not thread-safe"); const char* const nametmp = "DatabaseConnection::UpdateRefcountFunction" ; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), ( nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return 0; } return count; } nsresult DatabaseConnection::UpdateRefcountFunction ::QueryInterface(const nsIID& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION , "QueryInterface requires a non-NULL destination!", "aInstancePtr" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7668); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE ; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE" ); static const QITableEntry table[] = { {&mozilla::detail ::kImplementedIID<DatabaseConnection::UpdateRefcountFunction , mozIStorageFunction>, int32_t( reinterpret_cast<char* >(static_cast<mozIStorageFunction*>((DatabaseConnection ::UpdateRefcountFunction*)0x1000)) - reinterpret_cast<char *>((DatabaseConnection::UpdateRefcountFunction*)0x1000))}, {&mozilla::detail::kImplementedIID<DatabaseConnection ::UpdateRefcountFunction, nsISupports>, int32_t(reinterpret_cast <char*>(static_cast<nsISupports*>( static_cast< mozIStorageFunction*>((DatabaseConnection::UpdateRefcountFunction *)0x1000))) - reinterpret_cast<char*>((DatabaseConnection ::UpdateRefcountFunction*)0x1000))}, { nullptr, 0 } } ; static_assert ((sizeof(table) / sizeof(table[0])) > 1, "need at least 1 interface" ); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID , aInstancePtr, table); return rv; } | |||
7669 | ||||
7670 | NS_IMETHODIMPnsresult | |||
7671 | DatabaseConnection::UpdateRefcountFunction::OnFunctionCall( | |||
7672 | mozIStorageValueArray* aValues, nsIVariant** _retval) { | |||
7673 | MOZ_ASSERT(aValues)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aValues)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aValues))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aValues", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")" ); do { *((volatile int*)__null) = 7673; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7674 | MOZ_ASSERT(_retval)do { static_assert( mozilla::detail::AssertionConditionType< decltype(_retval)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(_retval))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("_retval", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7674); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")" ); do { *((volatile int*)__null) = 7674; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7675 | ||||
7676 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7677( "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall" , nullptr, JS::ProfilingCategoryPair::DOM) | |||
7677 | "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall", DOM)mozilla::AutoProfilerLabel raiiObject7677( "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7678 | ||||
7679 | #ifdef DEBUG1 | |||
7680 | { | |||
7681 | QM_TRY_INSPECT(const uint32_t& numEntries,auto tryResult3237 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetNumEntries)); if ((__builtin_expect(!!(tryResult3237.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3237 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7683, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7683); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 7683; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const uint32_t & numEntries = tryResult3237.inspect(); | |||
7682 | MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetNumEntries),auto tryResult3237 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetNumEntries)); if ((__builtin_expect(!!(tryResult3237.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3237 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7683, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7683); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 7683; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const uint32_t & numEntries = tryResult3237.inspect(); | |||
7683 | QM_ASSERT_UNREACHABLE)auto tryResult3237 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetNumEntries)); if ((__builtin_expect(!!(tryResult3237.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3237 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7683, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7683); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 7683; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const uint32_t & numEntries = tryResult3237.inspect();; | |||
7684 | ||||
7685 | MOZ_ASSERT(numEntries == 2)do { static_assert( mozilla::detail::AssertionConditionType< decltype(numEntries == 2)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(numEntries == 2))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("numEntries == 2" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7685); AnnotateMozCrashReason("MOZ_ASSERT" "(" "numEntries == 2" ")"); do { *((volatile int*)__null) = 7685; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7686 | ||||
7687 | QM_TRY_INSPECT(const int32_t& type1,auto tryResult3238 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex, 0)); if ((__builtin_expect(!!(tryResult3238 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3238.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7689, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 0)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7689); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 7689; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type1 = tryResult3238.inspect(); | |||
7688 | MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 0),auto tryResult3238 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex, 0)); if ((__builtin_expect(!!(tryResult3238 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3238.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7689, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 0)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7689); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 7689; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type1 = tryResult3238.inspect(); | |||
7689 | QM_ASSERT_UNREACHABLE)auto tryResult3238 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex, 0)); if ((__builtin_expect(!!(tryResult3238 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3238.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7689, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 0)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7689); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 7689; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type1 = tryResult3238.inspect();; | |||
7690 | ||||
7691 | QM_TRY_INSPECT(const int32_t& type2,auto tryResult3239 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult3239 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3239.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7693, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7693); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 7693; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type2 = tryResult3239.inspect(); | |||
7692 | MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 1),auto tryResult3239 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult3239 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3239.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7693, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7693); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 7693; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type2 = tryResult3239.inspect(); | |||
7693 | QM_ASSERT_UNREACHABLE)auto tryResult3239 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult3239 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3239.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7693, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7693); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 7693; __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type2 = tryResult3239.inspect();; | |||
7694 | ||||
7695 | MOZ_ASSERT(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL &&do { static_assert( mozilla::detail::AssertionConditionType< decltype(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7696); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)" ")"); do { *((volatile int*)__null) = 7696; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
7696 | type2 == mozIStorageValueArray::VALUE_TYPE_NULL))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7696); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)" ")"); do { *((volatile int*)__null) = 7696; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7697 | } | |||
7698 | #endif | |||
7699 | ||||
7700 | QM_TRY(MOZ_TO_RESULT(ProcessValue(aValues, 0, UpdateType::Decrement))){auto tryResult3240 = (ToResult(ProcessValue(aValues, 0, UpdateType ::Decrement))); static_assert(std::is_empty_v<typename decltype (tryResult3240)::ok_type>); if ((__builtin_expect(!!(tryResult3240 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ProcessValue(aValues, 0, UpdateType::Decrement))" , tryResult3240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7700, mozilla::dom::quota::Severity::Error); return tryResult3240 .propagateErr(); }}; | |||
7701 | ||||
7702 | QM_TRY(MOZ_TO_RESULT(ProcessValue(aValues, 1, UpdateType::Increment))){auto tryResult3241 = (ToResult(ProcessValue(aValues, 1, UpdateType ::Increment))); static_assert(std::is_empty_v<typename decltype (tryResult3241)::ok_type>); if ((__builtin_expect(!!(tryResult3241 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ProcessValue(aValues, 1, UpdateType::Increment))" , tryResult3241.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7702, mozilla::dom::quota::Severity::Error); return tryResult3241 .propagateErr(); }}; | |||
7703 | ||||
7704 | return NS_OK; | |||
7705 | } | |||
7706 | ||||
7707 | /******************************************************************************* | |||
7708 | * ConnectionPool implementation | |||
7709 | ******************************************************************************/ | |||
7710 | ||||
7711 | ConnectionPool::ConnectionPool() | |||
7712 | : mDatabasesMutex("ConnectionPool::mDatabasesMutex"), | |||
7713 | mIOTarget(MakeConnectionIOTarget()), | |||
7714 | mIdleTimer(NS_NewTimer()), | |||
7715 | mNextTransactionId(0) { | |||
7716 | AssertIsOnOwningThread(); | |||
7717 | AssertIsOnBackgroundThread(); | |||
7718 | MOZ_ASSERT(mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mIdleTimer)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mIdleTimer))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mIdleTimer", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7718); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer" ")"); do { *((volatile int*)__null) = 7718; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7719 | } | |||
7720 | ||||
7721 | ConnectionPool::~ConnectionPool() { | |||
7722 | AssertIsOnOwningThread(); | |||
7723 | MOZ_ASSERT(mIdleDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mIdleDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mIdleDatabases.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mIdleDatabases.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7723); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.IsEmpty()" ")"); do { *((volatile int*)__null) = 7723; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7724 | MOZ_ASSERT(!mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mIdleTimer)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mIdleTimer))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mIdleTimer", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7724); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleTimer" ")"); do { *((volatile int*)__null) = 7724; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7725 | MOZ_ASSERT(mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTargetIdleTime.IsNull()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTargetIdleTime.IsNull()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7725); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()" ")"); do { *((volatile int*)__null) = 7725; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7726 | MOZ_ASSERT(!mDatabases.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabases.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabases.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabases.Count()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7726); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabases.Count()" ")"); do { *((volatile int*)__null) = 7726; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7727 | MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransactions.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7727); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()" ")"); do { *((volatile int*)__null) = 7727; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7728 | MOZ_ASSERT(mQueuedTransactions.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mQueuedTransactions.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mQueuedTransactions.IsEmpty( )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mQueuedTransactions.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7728); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQueuedTransactions.IsEmpty()" ")"); do { *((volatile int*)__null) = 7728; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7729 | MOZ_ASSERT(mCompleteCallbacks.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCompleteCallbacks.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCompleteCallbacks.IsEmpty() ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mCompleteCallbacks.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7729); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCompleteCallbacks.IsEmpty()" ")"); do { *((volatile int*)__null) = 7729; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7730 | MOZ_ASSERT(mShutdownRequested)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mShutdownRequested)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mShutdownRequested))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mShutdownRequested" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7730); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested" ")"); do { *((volatile int*)__null) = 7730; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7731 | MOZ_ASSERT(mShutdownComplete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mShutdownComplete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mShutdownComplete))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mShutdownComplete" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7731); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownComplete" ")"); do { *((volatile int*)__null) = 7731; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7732 | } | |||
7733 | ||||
7734 | // static | |||
7735 | void ConnectionPool::IdleTimerCallback(nsITimer* aTimer, void* aClosure) { | |||
7736 | MOZ_ASSERT(aTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aTimer)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aTimer))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aTimer", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7736); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTimer" ")" ); do { *((volatile int*)__null) = 7736; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7737 | MOZ_ASSERT(aClosure)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aClosure)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aClosure))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aClosure", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7737); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aClosure" ")" ); do { *((volatile int*)__null) = 7737; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7738 | ||||
7739 | AUTO_PROFILER_LABEL("ConnectionPool::IdleTimerCallback", DOM)mozilla::AutoProfilerLabel raiiObject7739( "ConnectionPool::IdleTimerCallback" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7740 | ||||
7741 | auto& self = *static_cast<ConnectionPool*>(aClosure); | |||
7742 | MOZ_ASSERT(self.mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(self.mIdleTimer)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(self.mIdleTimer))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("self.mIdleTimer" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7742); AnnotateMozCrashReason("MOZ_ASSERT" "(" "self.mIdleTimer" ")"); do { *((volatile int*)__null) = 7742; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7743 | MOZ_ASSERT(SameCOMIdentity(self.mIdleTimer, aTimer))do { static_assert( mozilla::detail::AssertionConditionType< decltype(SameCOMIdentity(self.mIdleTimer, aTimer))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(SameCOMIdentity(self.mIdleTimer, aTimer)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("SameCOMIdentity(self.mIdleTimer, aTimer)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7743); AnnotateMozCrashReason("MOZ_ASSERT" "(" "SameCOMIdentity(self.mIdleTimer, aTimer)" ")"); do { *((volatile int*)__null) = 7743; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7744 | MOZ_ASSERT(!self.mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!self.mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!self.mTargetIdleTime.IsNull ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!self.mTargetIdleTime.IsNull()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7744); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!self.mTargetIdleTime.IsNull()" ")"); do { *((volatile int*)__null) = 7744; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7745 | ||||
7746 | self.mTargetIdleTime = TimeStamp(); | |||
7747 | ||||
7748 | // Cheat a little. | |||
7749 | const TimeStamp now = | |||
7750 | TimeStamp::NowLoRes() + TimeDuration::FromMilliseconds(500); | |||
7751 | ||||
7752 | // XXX Move this to ArrayAlgorithm.h? | |||
7753 | const auto removeUntil = [](auto& array, auto&& cond) { | |||
7754 | const auto begin = array.begin(), end = array.end(); | |||
7755 | array.RemoveElementsRange( | |||
7756 | begin, std::find_if(begin, end, std::forward<decltype(cond)>(cond))); | |||
7757 | }; | |||
7758 | ||||
7759 | removeUntil(self.mIdleDatabases, [now, &self](const auto& info) { | |||
7760 | if (now >= info.mIdleTime) { | |||
7761 | if ((*info.mDatabaseInfo)->mIdle) { | |||
7762 | self.PerformIdleDatabaseMaintenance(*info.mDatabaseInfo.ref()); | |||
7763 | } else { | |||
7764 | self.CloseDatabase(*info.mDatabaseInfo.ref()); | |||
7765 | } | |||
7766 | ||||
7767 | return false; | |||
7768 | } | |||
7769 | ||||
7770 | return true; | |||
7771 | }); | |||
7772 | ||||
7773 | self.AdjustIdleTimer(); | |||
7774 | } | |||
7775 | ||||
7776 | Result<RefPtr<DatabaseConnection>, nsresult> | |||
7777 | ConnectionPool::GetOrCreateConnection(const Database& aDatabase) { | |||
7778 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7778); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 7778; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7779 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7779); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 7779; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7780 | ||||
7781 | AUTO_PROFILER_LABEL("ConnectionPool::GetOrCreateConnection", DOM)mozilla::AutoProfilerLabel raiiObject7781( "ConnectionPool::GetOrCreateConnection" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7782 | ||||
7783 | DatabaseInfo* dbInfo; | |||
7784 | { | |||
7785 | MutexAutoLock lock(mDatabasesMutex); | |||
7786 | ||||
7787 | dbInfo = mDatabases.Get(aDatabase.Id()); | |||
7788 | } | |||
7789 | ||||
7790 | MOZ_ASSERT(dbInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(dbInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbInfo", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7790); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo" ")" ); do { *((volatile int*)__null) = 7790; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7791 | ||||
7792 | if (dbInfo->mConnection) { | |||
7793 | dbInfo->AssertIsOnConnectionThread(); | |||
7794 | ||||
7795 | return dbInfo->mConnection; | |||
7796 | } | |||
7797 | ||||
7798 | MOZ_ASSERT(!dbInfo->mDEBUGConnectionEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!dbInfo->mDEBUGConnectionEventTarget)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!dbInfo->mDEBUGConnectionEventTarget))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!dbInfo->mDEBUGConnectionEventTarget" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo->mDEBUGConnectionEventTarget" ")"); do { *((volatile int*)__null) = 7798; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7799 | ||||
7800 | QM_TRY_UNWRAP(auto tryResult3242 = (GetStorageConnection(aDatabase.FilePath (), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase .MaybeKeyRef())); if ((__builtin_expect(!!(tryResult3242.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())" , tryResult3242.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7803, mozilla::dom::quota::Severity::Error); return tryResult3242 .propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection >> storageConnection = tryResult3242.unwrap(); | |||
7801 | MovingNotNull<nsCOMPtr<mozIStorageConnection>> storageConnection,auto tryResult3242 = (GetStorageConnection(aDatabase.FilePath (), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase .MaybeKeyRef())); if ((__builtin_expect(!!(tryResult3242.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())" , tryResult3242.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7803, mozilla::dom::quota::Severity::Error); return tryResult3242 .propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection >> storageConnection = tryResult3242.unwrap(); | |||
7802 | GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(),auto tryResult3242 = (GetStorageConnection(aDatabase.FilePath (), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase .MaybeKeyRef())); if ((__builtin_expect(!!(tryResult3242.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())" , tryResult3242.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7803, mozilla::dom::quota::Severity::Error); return tryResult3242 .propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection >> storageConnection = tryResult3242.unwrap(); | |||
7803 | aDatabase.TelemetryId(), aDatabase.MaybeKeyRef()))auto tryResult3242 = (GetStorageConnection(aDatabase.FilePath (), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase .MaybeKeyRef())); if ((__builtin_expect(!!(tryResult3242.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())" , tryResult3242.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7803, mozilla::dom::quota::Severity::Error); return tryResult3242 .propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection >> storageConnection = tryResult3242.unwrap();; | |||
7804 | ||||
7805 | RefPtr<DatabaseConnection> connection = new DatabaseConnection( | |||
7806 | std::move(storageConnection), aDatabase.GetFileManagerPtr()); | |||
7807 | ||||
7808 | QM_TRY(MOZ_TO_RESULT(connection->Init())){auto tryResult3243 = (ToResult(connection->Init())); static_assert (std::is_empty_v<typename decltype(tryResult3243)::ok_type >); if ((__builtin_expect(!!(tryResult3243.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->Init())" , tryResult3243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7808, mozilla::dom::quota::Severity::Error); return tryResult3243 .propagateErr(); }}; | |||
7809 | ||||
7810 | dbInfo->mConnection = connection; | |||
7811 | ||||
7812 | IDB_DEBUG_LOG(("ConnectionPool created connection 0x%p for '%s'", | |||
7813 | dbInfo->mConnection.get(), | |||
7814 | NS_ConvertUTF16toUTF8(aDatabase.FilePath()).get())); | |||
7815 | ||||
7816 | #ifdef DEBUG1 | |||
7817 | dbInfo->mDEBUGConnectionEventTarget = GetCurrentSerialEventTarget(); | |||
7818 | #endif | |||
7819 | ||||
7820 | return connection; | |||
7821 | } | |||
7822 | ||||
7823 | uint64_t ConnectionPool::Start( | |||
7824 | const nsID& aBackgroundChildLoggingId, const nsACString& aDatabaseId, | |||
7825 | int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames, | |||
7826 | bool aIsWriteTransaction, | |||
7827 | TransactionDatabaseOperationBase* aTransactionOp) { | |||
7828 | AssertIsOnOwningThread(); | |||
7829 | MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7829); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()" ")"); do { *((volatile int*)__null) = 7829; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7830 | MOZ_ASSERT(mNextTransactionId < UINT64_MAX)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mNextTransactionId < (18446744073709551615UL))> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mNextTransactionId < (18446744073709551615UL)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mNextTransactionId < (18446744073709551615UL)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7830); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mNextTransactionId < (18446744073709551615UL)" ")"); do { *((volatile int*)__null) = 7830; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7831 | MOZ_ASSERT(!mShutdownRequested)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mShutdownRequested)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mShutdownRequested))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mShutdownRequested" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7831); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownRequested" ")"); do { *((volatile int*)__null) = 7831; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7832 | ||||
7833 | AUTO_PROFILER_LABEL("ConnectionPool::Start", DOM)mozilla::AutoProfilerLabel raiiObject7833( "ConnectionPool::Start" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7834 | ||||
7835 | const uint64_t transactionId = ++mNextTransactionId; | |||
7836 | ||||
7837 | // To avoid always acquiring a lock, we don't use WithEntryHandle here, which | |||
7838 | // would require a lock in any case. | |||
7839 | DatabaseInfo* dbInfo = mDatabases.Get(aDatabaseId); | |||
7840 | ||||
7841 | const bool databaseInfoIsNew = !dbInfo; | |||
7842 | ||||
7843 | if (databaseInfoIsNew) { | |||
7844 | MutexAutoLock lock(mDatabasesMutex); | |||
7845 | ||||
7846 | dbInfo = mDatabases | |||
7847 | .InsertOrUpdate(aDatabaseId, | |||
7848 | MakeUnique<DatabaseInfo>(this, aDatabaseId)) | |||
7849 | .get(); | |||
7850 | } | |||
7851 | ||||
7852 | MOZ_ASSERT(!mTransactions.Contains(transactionId))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransactions.Contains(transactionId))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mTransactions.Contains(transactionId)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Contains(transactionId)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7852); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Contains(transactionId)" ")"); do { *((volatile int*)__null) = 7852; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7853 | auto& transactionInfo = *mTransactions.InsertOrUpdate( | |||
7854 | transactionId, MakeUnique<TransactionInfo>( | |||
7855 | *dbInfo, aBackgroundChildLoggingId, aDatabaseId, | |||
7856 | transactionId, aLoggingSerialNumber, aObjectStoreNames, | |||
7857 | aIsWriteTransaction, aTransactionOp)); | |||
7858 | ||||
7859 | if (aIsWriteTransaction) { | |||
7860 | MOZ_ASSERT(dbInfo->mWriteTransactionCount < UINT32_MAX)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo->mWriteTransactionCount < (4294967295U) )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(dbInfo->mWriteTransactionCount < (4294967295U) ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "dbInfo->mWriteTransactionCount < (4294967295U)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7860); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo->mWriteTransactionCount < (4294967295U)" ")"); do { *((volatile int*)__null) = 7860; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7861 | dbInfo->mWriteTransactionCount++; | |||
7862 | } else { | |||
7863 | MOZ_ASSERT(dbInfo->mReadTransactionCount < UINT32_MAX)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo->mReadTransactionCount < (4294967295U)) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(dbInfo->mReadTransactionCount < (4294967295U)) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbInfo->mReadTransactionCount < (4294967295U)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7863); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo->mReadTransactionCount < (4294967295U)" ")"); do { *((volatile int*)__null) = 7863; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7864 | dbInfo->mReadTransactionCount++; | |||
7865 | } | |||
7866 | ||||
7867 | auto& blockingTransactions = dbInfo->mBlockingTransactions; | |||
7868 | ||||
7869 | for (const nsAString& objectStoreName : aObjectStoreNames) { | |||
7870 | TransactionInfoPair* blockInfo = | |||
7871 | blockingTransactions.GetOrInsertNew(objectStoreName); | |||
7872 | ||||
7873 | // Mark what we are blocking on. | |||
7874 | if (const auto maybeBlockingRead = blockInfo->mLastBlockingReads) { | |||
7875 | transactionInfo.mBlockedOn.Insert(&maybeBlockingRead.ref()); | |||
7876 | maybeBlockingRead->AddBlockingTransaction(transactionInfo); | |||
7877 | } | |||
7878 | ||||
7879 | if (aIsWriteTransaction) { | |||
7880 | for (const auto blockingWrite : blockInfo->mLastBlockingWrites) { | |||
7881 | transactionInfo.mBlockedOn.Insert(blockingWrite); | |||
7882 | blockingWrite->AddBlockingTransaction(transactionInfo); | |||
7883 | } | |||
7884 | ||||
7885 | blockInfo->mLastBlockingReads = SomeRef(transactionInfo); | |||
7886 | blockInfo->mLastBlockingWrites.Clear(); | |||
7887 | } else { | |||
7888 | blockInfo->mLastBlockingWrites.AppendElement( | |||
7889 | WrapNotNullUnchecked(&transactionInfo)); | |||
7890 | } | |||
7891 | } | |||
7892 | ||||
7893 | if (!transactionInfo.mBlockedOn.Count()) { | |||
7894 | Unused << ScheduleTransaction(transactionInfo, | |||
7895 | /* aFromQueuedTransactions */ false); | |||
7896 | } | |||
7897 | ||||
7898 | if (!databaseInfoIsNew && | |||
7899 | (mIdleDatabases.RemoveElement(dbInfo) || | |||
7900 | mDatabasesPerformingIdleMaintenance.RemoveElement(dbInfo))) { | |||
7901 | AdjustIdleTimer(); | |||
7902 | } | |||
7903 | ||||
7904 | return transactionId; | |||
7905 | } | |||
7906 | ||||
7907 | void ConnectionPool::Dispatch(uint64_t aTransactionId, nsIRunnable* aRunnable) { | |||
7908 | AssertIsOnOwningThread(); | |||
7909 | MOZ_ASSERT(aRunnable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aRunnable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aRunnable))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aRunnable", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7909); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRunnable" ")" ); do { *((volatile int*)__null) = 7909; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7910 | ||||
7911 | AUTO_PROFILER_LABEL("ConnectionPool::Dispatch", DOM)mozilla::AutoProfilerLabel raiiObject7911( "ConnectionPool::Dispatch" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7912 | ||||
7913 | auto* const transactionInfo = mTransactions.Get(aTransactionId); | |||
7914 | MOZ_ASSERT(transactionInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(transactionInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(transactionInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("transactionInfo" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7914); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")"); do { *((volatile int*)__null) = 7914; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7915 | MOZ_ASSERT(!transactionInfo->mFinished)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!transactionInfo->mFinished)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!transactionInfo->mFinished ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!transactionInfo->mFinished", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7915); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!transactionInfo->mFinished" ")"); do { *((volatile int*)__null) = 7915; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7916 | ||||
7917 | if (transactionInfo->mRunning) { | |||
7918 | DatabaseInfo& dbInfo = transactionInfo->mDatabaseInfo; | |||
7919 | MOZ_ASSERT(dbInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo.mEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbInfo.mEventTarget))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbInfo.mEventTarget" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7919); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget" ")"); do { *((volatile int*)__null) = 7919; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7920 | MOZ_ASSERT(!dbInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!dbInfo.mClosing)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!dbInfo.mClosing))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!dbInfo.mClosing" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7920); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mClosing" ")"); do { *((volatile int*)__null) = 7920; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7921 | MOZ_ASSERT_IF(do { if (transactionInfo->mIsWriteTransaction) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(dbInfo. mRunningWriteTransaction && dbInfo.mRunningWriteTransaction .refEquals(*transactionInfo))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7924); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)" ")"); do { *((volatile int*)__null) = 7924; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
7922 | transactionInfo->mIsWriteTransaction,do { if (transactionInfo->mIsWriteTransaction) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(dbInfo. mRunningWriteTransaction && dbInfo.mRunningWriteTransaction .refEquals(*transactionInfo))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7924); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)" ")"); do { *((volatile int*)__null) = 7924; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
7923 | dbInfo.mRunningWriteTransaction &&do { if (transactionInfo->mIsWriteTransaction) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(dbInfo. mRunningWriteTransaction && dbInfo.mRunningWriteTransaction .refEquals(*transactionInfo))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7924); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)" ")"); do { *((volatile int*)__null) = 7924; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
7924 | dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo))do { if (transactionInfo->mIsWriteTransaction) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(dbInfo. mRunningWriteTransaction && dbInfo.mRunningWriteTransaction .refEquals(*transactionInfo))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7924); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)" ")"); do { *((volatile int*)__null) = 7924; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
7925 | ||||
7926 | MOZ_ALWAYS_SUCCEEDS(dbInfo.Dispatch(do_AddRef(aRunnable)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (dbInfo.Dispatch(do_AddRef(aRunnable)))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(dbInfo.Dispatch(do_AddRef(aRunnable)))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7926); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(dbInfo.Dispatch(do_AddRef(aRunnable)))" ")" ); do { *((volatile int*)__null) = 7926; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
7927 | } else { | |||
7928 | transactionInfo->mQueuedRunnables.AppendElement(aRunnable); | |||
7929 | } | |||
7930 | } | |||
7931 | ||||
7932 | void ConnectionPool::Finish(uint64_t aTransactionId, | |||
7933 | FinishCallback* aCallback) { | |||
7934 | AssertIsOnOwningThread(); | |||
7935 | ||||
7936 | #ifdef DEBUG1 | |||
7937 | auto* const transactionInfo = mTransactions.Get(aTransactionId); | |||
7938 | MOZ_ASSERT(transactionInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(transactionInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(transactionInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("transactionInfo" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7938); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")"); do { *((volatile int*)__null) = 7938; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7939 | MOZ_ASSERT(!transactionInfo->mFinished)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!transactionInfo->mFinished)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!transactionInfo->mFinished ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!transactionInfo->mFinished", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7939); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!transactionInfo->mFinished" ")"); do { *((volatile int*)__null) = 7939; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7940 | #endif | |||
7941 | ||||
7942 | AUTO_PROFILER_LABEL("ConnectionPool::Finish", DOM)mozilla::AutoProfilerLabel raiiObject7942( "ConnectionPool::Finish" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7943 | ||||
7944 | RefPtr<FinishCallbackWrapper> wrapper = | |||
7945 | new FinishCallbackWrapper(this, aTransactionId, aCallback); | |||
7946 | ||||
7947 | Dispatch(aTransactionId, wrapper); | |||
7948 | ||||
7949 | #ifdef DEBUG1 | |||
7950 | transactionInfo->mFinished.Flip(); | |||
7951 | #endif | |||
7952 | } | |||
7953 | ||||
7954 | void ConnectionPool::WaitForDatabaseToComplete(const nsCString& aDatabaseId, | |||
7955 | nsIRunnable* aCallback) { | |||
7956 | AssertIsOnOwningThread(); | |||
7957 | MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7957); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()" ")"); do { *((volatile int*)__null) = 7957; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7958 | MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aCallback", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7958); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")" ); do { *((volatile int*)__null) = 7958; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7959 | ||||
7960 | AUTO_PROFILER_LABEL("ConnectionPool::WaitForDatabaseToComplete", DOM)mozilla::AutoProfilerLabel raiiObject7960( "ConnectionPool::WaitForDatabaseToComplete" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7961 | ||||
7962 | if (!CloseDatabaseWhenIdleInternal(aDatabaseId)) { | |||
7963 | Unused << aCallback->Run(); | |||
7964 | return; | |||
7965 | } | |||
7966 | ||||
7967 | mCompleteCallbacks.EmplaceBack( | |||
7968 | MakeUnique<DatabaseCompleteCallback>(aDatabaseId, aCallback)); | |||
7969 | } | |||
7970 | ||||
7971 | void ConnectionPool::Shutdown() { | |||
7972 | AssertIsOnOwningThread(); | |||
7973 | MOZ_ASSERT(!mShutdownComplete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mShutdownComplete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mShutdownComplete))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mShutdownComplete" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7973); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownComplete" ")"); do { *((volatile int*)__null) = 7973; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7974 | ||||
7975 | AUTO_PROFILER_LABEL("ConnectionPool::Shutdown", DOM)mozilla::AutoProfilerLabel raiiObject7975( "ConnectionPool::Shutdown" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
7976 | ||||
7977 | mShutdownRequested.Flip(); | |||
7978 | ||||
7979 | CancelIdleTimer(); | |||
7980 | MOZ_ASSERT(mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTargetIdleTime.IsNull()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTargetIdleTime.IsNull()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7980); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()" ")"); do { *((volatile int*)__null) = 7980; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7981 | ||||
7982 | mIdleTimer = nullptr; | |||
7983 | ||||
7984 | CloseIdleDatabases(); | |||
7985 | ||||
7986 | if (!mDatabases.Count()) { | |||
7987 | MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransactions.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7987); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()" ")"); do { *((volatile int*)__null) = 7987; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7988 | ||||
7989 | Cleanup(); | |||
7990 | ||||
7991 | MOZ_ASSERT(mShutdownComplete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mShutdownComplete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mShutdownComplete))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mShutdownComplete" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 7991); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownComplete" ")"); do { *((volatile int*)__null) = 7991; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
7992 | ||||
7993 | mIOTarget->Shutdown(); | |||
7994 | ||||
7995 | return; | |||
7996 | } | |||
7997 | ||||
7998 | MOZ_ALWAYS_TRUE(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns, [&]() {do { if ((__builtin_expect(!!(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns , [&]() { return static_cast<bool>(mShutdownComplete ); })), 1))) { } else { do { static_assert( mozilla::detail:: AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8000); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })" ")"); do { *((volatile int*)__null) = 8000; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
7999 | return static_cast<bool>(mShutdownComplete);do { if ((__builtin_expect(!!(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns , [&]() { return static_cast<bool>(mShutdownComplete ); })), 1))) { } else { do { static_assert( mozilla::detail:: AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8000); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })" ")"); do { *((volatile int*)__null) = 8000; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
8000 | }))do { if ((__builtin_expect(!!(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns , [&]() { return static_cast<bool>(mShutdownComplete ); })), 1))) { } else { do { static_assert( mozilla::detail:: AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8000); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })" ")"); do { *((volatile int*)__null) = 8000; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
8001 | ||||
8002 | mIOTarget->Shutdown(); | |||
8003 | } | |||
8004 | ||||
8005 | void ConnectionPool::Cleanup() { | |||
8006 | AssertIsOnOwningThread(); | |||
8007 | MOZ_ASSERT(mShutdownRequested)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mShutdownRequested)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mShutdownRequested))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mShutdownRequested" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8007); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested" ")"); do { *((volatile int*)__null) = 8007; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8008 | MOZ_ASSERT(!mShutdownComplete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mShutdownComplete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mShutdownComplete))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mShutdownComplete" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8008); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownComplete" ")"); do { *((volatile int*)__null) = 8008; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8009 | MOZ_ASSERT(!mDatabases.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabases.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabases.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabases.Count()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8009); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabases.Count()" ")"); do { *((volatile int*)__null) = 8009; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8010 | MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransactions.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8010); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()" ")"); do { *((volatile int*)__null) = 8010; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8011 | ||||
8012 | AUTO_PROFILER_LABEL("ConnectionPool::Cleanup", DOM)mozilla::AutoProfilerLabel raiiObject8012( "ConnectionPool::Cleanup" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
8013 | ||||
8014 | if (!mCompleteCallbacks.IsEmpty()) { | |||
8015 | // Run all callbacks manually now. | |||
8016 | ||||
8017 | { | |||
8018 | auto completeCallbacks = std::move(mCompleteCallbacks); | |||
8019 | for (const auto& completeCallback : completeCallbacks) { | |||
8020 | MOZ_ASSERT(completeCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(completeCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(completeCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("completeCallback" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8020); AnnotateMozCrashReason("MOZ_ASSERT" "(" "completeCallback" ")"); do { *((volatile int*)__null) = 8020; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8021 | MOZ_ASSERT(completeCallback->mCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(completeCallback->mCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(completeCallback->mCallback ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "completeCallback->mCallback", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8021); AnnotateMozCrashReason("MOZ_ASSERT" "(" "completeCallback->mCallback" ")"); do { *((volatile int*)__null) = 8021; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8022 | ||||
8023 | Unused << completeCallback->mCallback->Run(); | |||
8024 | } | |||
8025 | ||||
8026 | // We expect no new callbacks being completed by running the existing | |||
8027 | // ones. | |||
8028 | MOZ_ASSERT(mCompleteCallbacks.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCompleteCallbacks.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCompleteCallbacks.IsEmpty() ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mCompleteCallbacks.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCompleteCallbacks.IsEmpty()" ")"); do { *((volatile int*)__null) = 8028; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8029 | } | |||
8030 | ||||
8031 | // And make sure they get processed. | |||
8032 | nsIThread* currentThread = NS_GetCurrentThread(); | |||
8033 | MOZ_ASSERT(currentThread)do { static_assert( mozilla::detail::AssertionConditionType< decltype(currentThread)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(currentThread))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("currentThread", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8033); AnnotateMozCrashReason("MOZ_ASSERT" "(" "currentThread" ")"); do { *((volatile int*)__null) = 8033; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8034 | ||||
8035 | MOZ_ALWAYS_SUCCEEDS(NS_ProcessPendingEvents(currentThread))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (NS_ProcessPendingEvents(currentThread))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(NS_ProcessPendingEvents(currentThread))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8035); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(NS_ProcessPendingEvents(currentThread))" ")"); do { *((volatile int*)__null) = 8035; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
8036 | } | |||
8037 | ||||
8038 | mShutdownComplete.Flip(); | |||
8039 | } | |||
8040 | ||||
8041 | void ConnectionPool::AdjustIdleTimer() { | |||
8042 | AssertIsOnOwningThread(); | |||
8043 | MOZ_ASSERT(mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mIdleTimer)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mIdleTimer))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mIdleTimer", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8043); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer" ")"); do { *((volatile int*)__null) = 8043; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8044 | ||||
8045 | AUTO_PROFILER_LABEL("ConnectionPool::AdjustIdleTimer", DOM)mozilla::AutoProfilerLabel raiiObject8045( "ConnectionPool::AdjustIdleTimer" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
8046 | ||||
8047 | // Figure out the next time at which we should release idle resources. This | |||
8048 | // includes both databases and threads. | |||
8049 | TimeStamp newTargetIdleTime; | |||
8050 | MOZ_ASSERT(newTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType< decltype(newTargetIdleTime.IsNull())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(newTargetIdleTime.IsNull())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("newTargetIdleTime.IsNull()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8050); AnnotateMozCrashReason("MOZ_ASSERT" "(" "newTargetIdleTime.IsNull()" ")"); do { *((volatile int*)__null) = 8050; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8051 | ||||
8052 | if (!mIdleDatabases.IsEmpty()) { | |||
8053 | newTargetIdleTime = mIdleDatabases[0].mIdleTime; | |||
8054 | } | |||
8055 | ||||
8056 | MOZ_ASSERT_IF(newTargetIdleTime.IsNull(), mIdleDatabases.IsEmpty())do { if (newTargetIdleTime.IsNull()) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(mIdleDatabases.IsEmpty ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mIdleDatabases.IsEmpty()))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mIdleDatabases.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8056); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.IsEmpty()" ")"); do { *((volatile int*)__null) = 8056; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
8057 | ||||
8058 | // Cancel the timer if it was running and the new target time is different. | |||
8059 | if (!mTargetIdleTime.IsNull() && | |||
8060 | (newTargetIdleTime.IsNull() || mTargetIdleTime != newTargetIdleTime)) { | |||
8061 | CancelIdleTimer(); | |||
8062 | ||||
8063 | MOZ_ASSERT(mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTargetIdleTime.IsNull()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTargetIdleTime.IsNull()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8063); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()" ")"); do { *((volatile int*)__null) = 8063; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8064 | } | |||
8065 | ||||
8066 | // Schedule the timer if we have a target time different than before. | |||
8067 | if (!newTargetIdleTime.IsNull() && | |||
8068 | (mTargetIdleTime.IsNull() || mTargetIdleTime != newTargetIdleTime)) { | |||
8069 | double delta = (newTargetIdleTime - TimeStamp::NowLoRes()).ToMilliseconds(); | |||
8070 | ||||
8071 | uint32_t delay; | |||
8072 | if (delta > 0) { | |||
8073 | delay = uint32_t(std::min(delta, double(UINT32_MAX(4294967295U)))); | |||
8074 | } else { | |||
8075 | delay = 0; | |||
8076 | } | |||
8077 | ||||
8078 | MOZ_ALWAYS_SUCCEEDS(mIdleTimer->InitWithNamedFuncCallback(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, "ConnectionPool::IdleTimerCallback" ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8080); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))" ")"); do { *((volatile int*)__null) = 8080; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
8079 | IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT,do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, "ConnectionPool::IdleTimerCallback" ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8080); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))" ")"); do { *((volatile int*)__null) = 8080; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
8080 | "ConnectionPool::IdleTimerCallback"))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, "ConnectionPool::IdleTimerCallback" ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8080); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))" ")"); do { *((volatile int*)__null) = 8080; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
8081 | ||||
8082 | mTargetIdleTime = newTargetIdleTime; | |||
8083 | } | |||
8084 | } | |||
8085 | ||||
8086 | void ConnectionPool::CancelIdleTimer() { | |||
8087 | AssertIsOnOwningThread(); | |||
8088 | MOZ_ASSERT(mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mIdleTimer)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mIdleTimer))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mIdleTimer", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8088); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer" ")"); do { *((volatile int*)__null) = 8088; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8089 | ||||
8090 | if (!mTargetIdleTime.IsNull()) { | |||
8091 | MOZ_ALWAYS_SUCCEEDS(mIdleTimer->Cancel())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mIdleTimer->Cancel())), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(mIdleTimer->Cancel())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8091); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mIdleTimer->Cancel())" ")"); do { *(( volatile int*)__null) = 8091; __attribute__((nomerge)) ::abort (); } while (false); } } while (false); } } while (false); | |||
8092 | ||||
8093 | mTargetIdleTime = TimeStamp(); | |||
8094 | MOZ_ASSERT(mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTargetIdleTime.IsNull()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTargetIdleTime.IsNull()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8094); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()" ")"); do { *((volatile int*)__null) = 8094; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8095 | } | |||
8096 | } | |||
8097 | ||||
8098 | void ConnectionPool::CloseIdleDatabases() { | |||
8099 | AssertIsOnOwningThread(); | |||
8100 | MOZ_ASSERT(mShutdownRequested)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mShutdownRequested)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mShutdownRequested))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mShutdownRequested" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8100); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested" ")"); do { *((volatile int*)__null) = 8100; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8101 | ||||
8102 | AUTO_PROFILER_LABEL("ConnectionPool::CloseIdleDatabases", DOM)mozilla::AutoProfilerLabel raiiObject8102( "ConnectionPool::CloseIdleDatabases" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
8103 | ||||
8104 | if (!mIdleDatabases.IsEmpty()) { | |||
8105 | for (IdleDatabaseInfo& idleInfo : mIdleDatabases) { | |||
8106 | CloseDatabase(*idleInfo.mDatabaseInfo.ref()); | |||
8107 | } | |||
8108 | mIdleDatabases.Clear(); | |||
8109 | } | |||
8110 | ||||
8111 | if (!mDatabasesPerformingIdleMaintenance.IsEmpty()) { | |||
8112 | for (PerformingIdleMaintenanceDatabaseInfo& performingIdleMaintenanceInfo : | |||
8113 | mDatabasesPerformingIdleMaintenance) { | |||
8114 | CloseDatabase(*performingIdleMaintenanceInfo.mDatabaseInfo); | |||
8115 | } | |||
8116 | mDatabasesPerformingIdleMaintenance.Clear(); | |||
8117 | } | |||
8118 | } | |||
8119 | ||||
8120 | bool ConnectionPool::ScheduleTransaction(TransactionInfo& aTransactionInfo, | |||
8121 | bool aFromQueuedTransactions) { | |||
8122 | AssertIsOnOwningThread(); | |||
8123 | ||||
8124 | AUTO_PROFILER_LABEL("ConnectionPool::ScheduleTransaction", DOM)mozilla::AutoProfilerLabel raiiObject8124( "ConnectionPool::ScheduleTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
8125 | ||||
8126 | DatabaseInfo& dbInfo = aTransactionInfo.mDatabaseInfo; | |||
8127 | ||||
8128 | dbInfo.mIdle = false; | |||
8129 | ||||
8130 | if (dbInfo.mClosing) { | |||
8131 | MOZ_ASSERT(!mIdleDatabases.Contains(&dbInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mIdleDatabases.Contains(&dbInfo))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(!mIdleDatabases.Contains(&dbInfo)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mIdleDatabases.Contains(&dbInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8131); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&dbInfo)" ")"); do { *((volatile int*)__null) = 8131; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8132 | MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType< decltype(!dbInfo.mTransactionsScheduledDuringClose.Contains(& aTransactionInfo))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!dbInfo.mTransactionsScheduledDuringClose .Contains(&aTransactionInfo)))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8133); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)" ")"); do { *((volatile int*)__null) = 8133; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
8133 | !dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!dbInfo.mTransactionsScheduledDuringClose.Contains(& aTransactionInfo))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!dbInfo.mTransactionsScheduledDuringClose .Contains(&aTransactionInfo)))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8133); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)" ")"); do { *((volatile int*)__null) = 8133; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8134 | ||||
8135 | dbInfo.mTransactionsScheduledDuringClose.AppendElement( | |||
8136 | WrapNotNullUnchecked(&aTransactionInfo)); | |||
8137 | return true; | |||
8138 | } | |||
8139 | ||||
8140 | if (!dbInfo.mEventTarget) { | |||
8141 | const uint32_t serialNumber = SerialNumber(); | |||
8142 | const nsCString serialName = | |||
8143 | nsPrintfCString("IndexedDB #%" PRIu32"u", serialNumber); | |||
8144 | ||||
8145 | dbInfo.mEventTarget = | |||
8146 | TaskQueue::Create(do_AddRef(mIOTarget), serialName.get()); | |||
8147 | MOZ_ASSERT(dbInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo.mEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbInfo.mEventTarget))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbInfo.mEventTarget" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8147); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget" ")"); do { *((volatile int*)__null) = 8147; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8148 | IDB_DEBUG_LOG(("ConnectionPool created task queue %" PRIu32"u", serialNumber)); | |||
8149 | } | |||
8150 | ||||
8151 | // The number of active operations equals the number of databases minus idle | |||
8152 | // databases. The maximum number of database operations which can make | |||
8153 | // progress at the same time is kMaxConnectionThreadCount. If we are at this | |||
8154 | // limit, all idle processing is interrupted to make room for user | |||
8155 | // transactions. | |||
8156 | if (mDatabases.Count() >= | |||
8157 | (mIdleDatabases.Length() + kMaxConnectionThreadCount) && | |||
8158 | !mDatabasesPerformingIdleMaintenance.IsEmpty()) { | |||
8159 | const auto& busyDbs = mDatabasesPerformingIdleMaintenance; | |||
8160 | for (auto dbInfo = busyDbs.rbegin(); dbInfo != busyDbs.rend(); ++dbInfo) { | |||
8161 | (*dbInfo).mIdleConnectionRunnable->Interrupt(); | |||
8162 | } | |||
8163 | } | |||
8164 | ||||
8165 | if (aTransactionInfo.mIsWriteTransaction) { | |||
8166 | if (dbInfo.mRunningWriteTransaction) { | |||
8167 | // SQLite only allows one write transaction at a time so queue this | |||
8168 | // transaction for later. | |||
8169 | MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType< decltype(!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo ))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8170); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)" ")"); do { *((volatile int*)__null) = 8170; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
8170 | !dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo ))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8170); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)" ")"); do { *((volatile int*)__null) = 8170; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8171 | ||||
8172 | dbInfo.mScheduledWriteTransactions.AppendElement( | |||
8173 | WrapNotNullUnchecked(&aTransactionInfo)); | |||
8174 | return true; | |||
8175 | } | |||
8176 | ||||
8177 | dbInfo.mRunningWriteTransaction = SomeRef(aTransactionInfo); | |||
8178 | dbInfo.mNeedsCheckpoint = true; | |||
8179 | } | |||
8180 | ||||
8181 | MOZ_ASSERT(!aTransactionInfo.mRunning)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aTransactionInfo.mRunning)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aTransactionInfo.mRunning)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aTransactionInfo.mRunning" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8181); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aTransactionInfo.mRunning" ")"); do { *((volatile int*)__null) = 8181; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8182 | aTransactionInfo.mRunning = true; | |||
8183 | ||||
8184 | nsTArray<nsCOMPtr<nsIRunnable>>& queuedRunnables = | |||
8185 | aTransactionInfo.mQueuedRunnables; | |||
8186 | ||||
8187 | if (!queuedRunnables.IsEmpty()) { | |||
8188 | for (auto& queuedRunnable : queuedRunnables) { | |||
8189 | MOZ_ALWAYS_SUCCEEDS(dbInfo.Dispatch(queuedRunnable.forget()))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (dbInfo.Dispatch(queuedRunnable.forget()))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(dbInfo.Dispatch(queuedRunnable.forget()))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8189); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(dbInfo.Dispatch(queuedRunnable.forget()))" ")"); do { *((volatile int*)__null) = 8189; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
8190 | } | |||
8191 | ||||
8192 | queuedRunnables.Clear(); | |||
8193 | } | |||
8194 | ||||
8195 | return true; | |||
8196 | } | |||
8197 | ||||
8198 | void ConnectionPool::NoteFinishedTransaction(uint64_t aTransactionId) { | |||
8199 | AssertIsOnOwningThread(); | |||
8200 | ||||
8201 | AUTO_PROFILER_LABEL("ConnectionPool::NoteFinishedTransaction", DOM)mozilla::AutoProfilerLabel raiiObject8201( "ConnectionPool::NoteFinishedTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
8202 | ||||
8203 | auto* const transactionInfo = mTransactions.Get(aTransactionId); | |||
8204 | MOZ_ASSERT(transactionInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(transactionInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(transactionInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("transactionInfo" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8204); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")"); do { *((volatile int*)__null) = 8204; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8205 | MOZ_ASSERT(transactionInfo->mRunning)do { static_assert( mozilla::detail::AssertionConditionType< decltype(transactionInfo->mRunning)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(transactionInfo->mRunning ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "transactionInfo->mRunning", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mRunning" ")"); do { *((volatile int*)__null) = 8205; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8206 | MOZ_ASSERT(transactionInfo->mFinished)do { static_assert( mozilla::detail::AssertionConditionType< decltype(transactionInfo->mFinished)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(transactionInfo->mFinished ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "transactionInfo->mFinished", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8206); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mFinished" ")"); do { *((volatile int*)__null) = 8206; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8207 | ||||
8208 | transactionInfo->mRunning = false; | |||
8209 | ||||
8210 | DatabaseInfo& dbInfo = transactionInfo->mDatabaseInfo; | |||
8211 | MOZ_ASSERT(mDatabases.Get(transactionInfo->mDatabaseId) == &dbInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabases.Get(transactionInfo->mDatabaseId) == & dbInfo)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mDatabases.Get(transactionInfo->mDatabaseId) == & dbInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mDatabases.Get(transactionInfo->mDatabaseId) == &dbInfo" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8211); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabases.Get(transactionInfo->mDatabaseId) == &dbInfo" ")"); do { *((volatile int*)__null) = 8211; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8212 | MOZ_ASSERT(dbInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo.mEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbInfo.mEventTarget))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbInfo.mEventTarget" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8212); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget" ")"); do { *((volatile int*)__null) = 8212; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8213 | ||||
8214 | // Schedule the next write transaction if there are any queued. | |||
8215 | if (dbInfo.mRunningWriteTransaction && | |||
8216 | dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)) { | |||
8217 | MOZ_ASSERT(transactionInfo->mIsWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(transactionInfo->mIsWriteTransaction)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(transactionInfo->mIsWriteTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("transactionInfo->mIsWriteTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8217); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mIsWriteTransaction" ")"); do { *((volatile int*)__null) = 8217; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8218 | MOZ_ASSERT(dbInfo.mNeedsCheckpoint)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo.mNeedsCheckpoint)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbInfo.mNeedsCheckpoint))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("dbInfo.mNeedsCheckpoint" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8218); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mNeedsCheckpoint" ")"); do { *((volatile int*)__null) = 8218; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8219 | ||||
8220 | dbInfo.mRunningWriteTransaction = Nothing(); | |||
8221 | ||||
8222 | if (!dbInfo.mScheduledWriteTransactions.IsEmpty()) { | |||
8223 | const auto nextWriteTransaction = dbInfo.mScheduledWriteTransactions[0]; | |||
8224 | ||||
8225 | dbInfo.mScheduledWriteTransactions.RemoveElementAt(0); | |||
8226 | ||||
8227 | MOZ_ALWAYS_TRUE(ScheduleTransaction(*nextWriteTransaction,do { if ((__builtin_expect(!!(ScheduleTransaction(*nextWriteTransaction , false)), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "ScheduleTransaction(*nextWriteTransaction, false)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8228); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "ScheduleTransaction(*nextWriteTransaction, false)" ")" ); do { *((volatile int*)__null) = 8228; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
8228 | /* aFromQueuedTransactions */ false))do { if ((__builtin_expect(!!(ScheduleTransaction(*nextWriteTransaction , false)), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "ScheduleTransaction(*nextWriteTransaction, false)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8228); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "ScheduleTransaction(*nextWriteTransaction, false)" ")" ); do { *((volatile int*)__null) = 8228; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
8229 | } | |||
8230 | } | |||
8231 | ||||
8232 | for (const auto& objectStoreName : transactionInfo->mObjectStoreNames) { | |||
8233 | TransactionInfoPair* blockInfo = | |||
8234 | dbInfo.mBlockingTransactions.Get(objectStoreName); | |||
8235 | MOZ_ASSERT(blockInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(blockInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(blockInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("blockInfo", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8235); AnnotateMozCrashReason("MOZ_ASSERT" "(" "blockInfo" ")" ); do { *((volatile int*)__null) = 8235; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8236 | ||||
8237 | if (transactionInfo->mIsWriteTransaction && blockInfo->mLastBlockingReads && | |||
8238 | blockInfo->mLastBlockingReads.refEquals(*transactionInfo)) { | |||
8239 | blockInfo->mLastBlockingReads = Nothing(); | |||
8240 | } | |||
8241 | ||||
8242 | blockInfo->mLastBlockingWrites.RemoveElement(transactionInfo); | |||
8243 | } | |||
8244 | ||||
8245 | transactionInfo->RemoveBlockingTransactions(); | |||
8246 | ||||
8247 | if (transactionInfo->mIsWriteTransaction) { | |||
8248 | MOZ_ASSERT(dbInfo.mWriteTransactionCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo.mWriteTransactionCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbInfo.mWriteTransactionCount ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "dbInfo.mWriteTransactionCount", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8248); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mWriteTransactionCount" ")"); do { *((volatile int*)__null) = 8248; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8249 | dbInfo.mWriteTransactionCount--; | |||
8250 | } else { | |||
8251 | MOZ_ASSERT(dbInfo.mReadTransactionCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbInfo.mReadTransactionCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbInfo.mReadTransactionCount ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "dbInfo.mReadTransactionCount", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8251); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mReadTransactionCount" ")"); do { *((volatile int*)__null) = 8251; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8252 | dbInfo.mReadTransactionCount--; | |||
8253 | } | |||
8254 | ||||
8255 | mTransactions.Remove(aTransactionId); | |||
8256 | ||||
8257 | if (!dbInfo.TotalTransactionCount()) { | |||
8258 | MOZ_ASSERT(!dbInfo.mIdle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!dbInfo.mIdle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!dbInfo.mIdle))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!dbInfo.mIdle", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8258); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mIdle" ")"); do { *((volatile int*)__null) = 8258; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8259 | dbInfo.mIdle = true; | |||
8260 | ||||
8261 | NoteIdleDatabase(dbInfo); | |||
8262 | } | |||
8263 | } | |||
8264 | ||||
8265 | void ConnectionPool::ScheduleQueuedTransactions() { | |||
8266 | AssertIsOnOwningThread(); | |||
8267 | MOZ_ASSERT(!mQueuedTransactions.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mQueuedTransactions.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mQueuedTransactions.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mQueuedTransactions.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8267); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mQueuedTransactions.IsEmpty()" ")"); do { *((volatile int*)__null) = 8267; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8268 | ||||
8269 | AUTO_PROFILER_LABEL("ConnectionPool::ScheduleQueuedTransactions", DOM)mozilla::AutoProfilerLabel raiiObject8269( "ConnectionPool::ScheduleQueuedTransactions" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
8270 | ||||
8271 | const auto foundIt = std::find_if( | |||
8272 | mQueuedTransactions.begin(), mQueuedTransactions.end(), | |||
8273 | [&me = *this](const auto& queuedTransaction) { | |||
8274 | return !me.ScheduleTransaction(*queuedTransaction, | |||
8275 | /* aFromQueuedTransactions */ true); | |||
8276 | }); | |||
8277 | ||||
8278 | mQueuedTransactions.RemoveElementsRange(mQueuedTransactions.begin(), foundIt); | |||
8279 | ||||
8280 | AdjustIdleTimer(); | |||
8281 | } | |||
8282 | ||||
8283 | void ConnectionPool::NoteIdleDatabase(DatabaseInfo& aDatabaseInfo) { | |||
8284 | AssertIsOnOwningThread(); | |||
8285 | MOZ_ASSERT(!aDatabaseInfo.TotalTransactionCount())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseInfo.TotalTransactionCount())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!aDatabaseInfo.TotalTransactionCount()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.TotalTransactionCount()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8285); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()" ")"); do { *((volatile int*)__null) = 8285; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8286 | MOZ_ASSERT(aDatabaseInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseInfo.mEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mEventTarget)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mEventTarget" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8286); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget" ")"); do { *((volatile int*)__null) = 8286; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8287 | MOZ_ASSERT(!mIdleDatabases.Contains(&aDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mIdleDatabases.Contains(&aDatabaseInfo))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mIdleDatabases.Contains(&aDatabaseInfo)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mIdleDatabases.Contains(&aDatabaseInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8287); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&aDatabaseInfo)" ")"); do { *((volatile int*)__null) = 8287; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8288 | ||||
8289 | AUTO_PROFILER_LABEL("ConnectionPool::NoteIdleDatabase", DOM)mozilla::AutoProfilerLabel raiiObject8289( "ConnectionPool::NoteIdleDatabase" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
8290 | ||||
8291 | const bool otherDatabasesWaiting = !mQueuedTransactions.IsEmpty(); | |||
8292 | ||||
8293 | // We check mShutdownRequested because when it is true, mIdleTimer is null. | |||
8294 | if (mShutdownRequested || otherDatabasesWaiting || | |||
8295 | aDatabaseInfo.mCloseOnIdle) { | |||
8296 | // Make sure we close the connection if we're shutting down or giving the | |||
8297 | // thread to another database. | |||
8298 | CloseDatabase(aDatabaseInfo); | |||
8299 | ||||
8300 | if (otherDatabasesWaiting) { | |||
8301 | ScheduleQueuedTransactions(); | |||
8302 | } | |||
8303 | ||||
8304 | return; | |||
8305 | } | |||
8306 | ||||
8307 | mIdleDatabases.InsertElementSorted(IdleDatabaseInfo{aDatabaseInfo}); | |||
8308 | ||||
8309 | AdjustIdleTimer(); | |||
8310 | } | |||
8311 | ||||
8312 | void ConnectionPool::NoteClosedDatabase(DatabaseInfo& aDatabaseInfo) { | |||
8313 | AssertIsOnOwningThread(); | |||
8314 | MOZ_ASSERT(aDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseInfo.mClosing)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mClosing))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mClosing" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8314); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mClosing" ")"); do { *((volatile int*)__null) = 8314; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8315 | MOZ_ASSERT(!mIdleDatabases.Contains(&aDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mIdleDatabases.Contains(&aDatabaseInfo))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mIdleDatabases.Contains(&aDatabaseInfo)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mIdleDatabases.Contains(&aDatabaseInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8315); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&aDatabaseInfo)" ")"); do { *((volatile int*)__null) = 8315; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8316 | ||||
8317 | AUTO_PROFILER_LABEL("ConnectionPool::NoteClosedDatabase", DOM)mozilla::AutoProfilerLabel raiiObject8317( "ConnectionPool::NoteClosedDatabase" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
8318 | ||||
8319 | aDatabaseInfo.mClosing = false; | |||
8320 | ||||
8321 | // Schedule any transactions that were started while we were closing the | |||
8322 | // connection. | |||
8323 | if (!mQueuedTransactions.IsEmpty()) { | |||
8324 | ScheduleQueuedTransactions(); | |||
8325 | } else if (!aDatabaseInfo.TotalTransactionCount() && !mShutdownRequested) { | |||
8326 | AdjustIdleTimer(); | |||
8327 | } | |||
8328 | ||||
8329 | // Schedule any transactions that were started while we were closing the | |||
8330 | // connection. | |||
8331 | if (aDatabaseInfo.TotalTransactionCount()) { | |||
8332 | auto& scheduledTransactions = | |||
8333 | aDatabaseInfo.mTransactionsScheduledDuringClose; | |||
8334 | ||||
8335 | MOZ_ASSERT(!scheduledTransactions.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!scheduledTransactions.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!scheduledTransactions.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!scheduledTransactions.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8335); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!scheduledTransactions.IsEmpty()" ")"); do { *((volatile int*)__null) = 8335; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8336 | ||||
8337 | for (const auto& scheduledTransaction : scheduledTransactions) { | |||
8338 | Unused << ScheduleTransaction(*scheduledTransaction, | |||
8339 | /* aFromQueuedTransactions */ false); | |||
8340 | } | |||
8341 | ||||
8342 | scheduledTransactions.Clear(); | |||
8343 | ||||
8344 | return; | |||
8345 | } | |||
8346 | ||||
8347 | // There are no more transactions and the connection has been closed. We're | |||
8348 | // done with this database. | |||
8349 | { | |||
8350 | MutexAutoLock lock(mDatabasesMutex); | |||
8351 | ||||
8352 | mDatabases.Remove(aDatabaseInfo.mDatabaseId); | |||
8353 | } | |||
8354 | ||||
8355 | // That just deleted |aDatabaseInfo|, we must not access that below. | |||
8356 | ||||
8357 | // See if we need to fire any complete callbacks now that the database is | |||
8358 | // finished. | |||
8359 | mCompleteCallbacks.RemoveLastElements( | |||
8360 | mCompleteCallbacks.end() - | |||
8361 | std::remove_if(mCompleteCallbacks.begin(), mCompleteCallbacks.end(), | |||
8362 | [&me = *this](const auto& completeCallback) { | |||
8363 | return me.MaybeFireCallback(completeCallback.get()); | |||
8364 | })); | |||
8365 | ||||
8366 | // If that was the last database and we're supposed to be shutting down then | |||
8367 | // we are finished. | |||
8368 | if (mShutdownRequested && !mDatabases.Count()) { | |||
8369 | MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransactions.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8369); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()" ")"); do { *((volatile int*)__null) = 8369; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8370 | Cleanup(); | |||
8371 | } | |||
8372 | } | |||
8373 | ||||
8374 | bool ConnectionPool::MaybeFireCallback(DatabaseCompleteCallback* aCallback) { | |||
8375 | AssertIsOnOwningThread(); | |||
8376 | MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aCallback", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8376); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")" ); do { *((volatile int*)__null) = 8376; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8377 | MOZ_ASSERT(!aCallback->mDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aCallback->mDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aCallback->mDatabaseId.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!aCallback->mDatabaseId.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8377); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aCallback->mDatabaseId.IsEmpty()" ")"); do { *((volatile int*)__null) = 8377; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8378 | MOZ_ASSERT(aCallback->mCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aCallback->mCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aCallback->mCallback))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aCallback->mCallback" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8378); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback->mCallback" ")"); do { *((volatile int*)__null) = 8378; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8379 | ||||
8380 | AUTO_PROFILER_LABEL("ConnectionPool::MaybeFireCallback", DOM)mozilla::AutoProfilerLabel raiiObject8380( "ConnectionPool::MaybeFireCallback" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
8381 | ||||
8382 | if (mDatabases.Get(aCallback->mDatabaseId)) { | |||
8383 | return false; | |||
8384 | } | |||
8385 | ||||
8386 | Unused << aCallback->mCallback->Run(); | |||
8387 | return true; | |||
8388 | } | |||
8389 | ||||
8390 | void ConnectionPool::PerformIdleDatabaseMaintenance( | |||
8391 | DatabaseInfo& aDatabaseInfo) { | |||
8392 | AssertIsOnOwningThread(); | |||
8393 | MOZ_ASSERT(!aDatabaseInfo.TotalTransactionCount())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseInfo.TotalTransactionCount())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!aDatabaseInfo.TotalTransactionCount()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.TotalTransactionCount()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8393); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()" ")"); do { *((volatile int*)__null) = 8393; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8394 | MOZ_ASSERT(aDatabaseInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseInfo.mEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mEventTarget)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mEventTarget" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8394); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget" ")"); do { *((volatile int*)__null) = 8394; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8395 | MOZ_ASSERT(aDatabaseInfo.mIdle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseInfo.mIdle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mIdle))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mIdle" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8395); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mIdle" ")"); do { *((volatile int*)__null) = 8395; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8396 | MOZ_ASSERT(!aDatabaseInfo.mCloseOnIdle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseInfo.mCloseOnIdle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseInfo.mCloseOnIdle) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.mCloseOnIdle" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8396); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mCloseOnIdle" ")"); do { *((volatile int*)__null) = 8396; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8397 | MOZ_ASSERT(!aDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseInfo.mClosing)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseInfo.mClosing))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.mClosing" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8397); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mClosing" ")"); do { *((volatile int*)__null) = 8397; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8398 | MOZ_ASSERT(mIdleDatabases.Contains(&aDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(mIdleDatabases.Contains(&aDatabaseInfo))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mIdleDatabases.Contains(&aDatabaseInfo)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mIdleDatabases.Contains(&aDatabaseInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8398); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.Contains(&aDatabaseInfo)" ")"); do { *((volatile int*)__null) = 8398; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8399 | MOZ_ASSERT(!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo ))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8399); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo)" ")"); do { *((volatile int*)__null) = 8399; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8400 | ||||
8401 | const bool neededCheckpoint = aDatabaseInfo.mNeedsCheckpoint; | |||
8402 | ||||
8403 | aDatabaseInfo.mNeedsCheckpoint = false; | |||
8404 | aDatabaseInfo.mIdle = false; | |||
8405 | ||||
8406 | auto idleConnectionRunnable = | |||
8407 | MakeRefPtr<IdleConnectionRunnable>(aDatabaseInfo, neededCheckpoint); | |||
8408 | ||||
8409 | mDatabasesPerformingIdleMaintenance.AppendElement( | |||
8410 | PerformingIdleMaintenanceDatabaseInfo{aDatabaseInfo, | |||
8411 | idleConnectionRunnable}); | |||
8412 | ||||
8413 | MOZ_ALWAYS_SUCCEEDS(aDatabaseInfo.mEventTarget->Dispatch(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable .forget(), nsIEventTarget::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8414); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 8414; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
8414 | idleConnectionRunnable.forget(), NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable .forget(), nsIEventTarget::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8414); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 8414; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
8415 | } | |||
8416 | ||||
8417 | void ConnectionPool::CloseDatabase(DatabaseInfo& aDatabaseInfo) const { | |||
8418 | AssertIsOnOwningThread(); | |||
8419 | MOZ_DIAGNOSTIC_ASSERT(!aDatabaseInfo.TotalTransactionCount())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseInfo.TotalTransactionCount())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!aDatabaseInfo.TotalTransactionCount()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.TotalTransactionCount()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8419); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()" ")"); do { *((volatile int*)__null) = 8419; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8420 | MOZ_ASSERT(aDatabaseInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseInfo.mEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mEventTarget)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mEventTarget" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8420); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget" ")"); do { *((volatile int*)__null) = 8420; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8421 | MOZ_ASSERT(!aDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseInfo.mClosing)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseInfo.mClosing))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.mClosing" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mClosing" ")"); do { *((volatile int*)__null) = 8421; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8422 | ||||
8423 | aDatabaseInfo.mIdle = false; | |||
8424 | aDatabaseInfo.mNeedsCheckpoint = false; | |||
8425 | aDatabaseInfo.mClosing = true; | |||
8426 | ||||
8427 | MOZ_ALWAYS_SUCCEEDS(aDatabaseInfo.Dispatch(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable >(aDatabaseInfo)))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8428); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))" ")"); do { *((volatile int*)__null) = 8428; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
8428 | MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable >(aDatabaseInfo)))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8428); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))" ")"); do { *((volatile int*)__null) = 8428; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
8429 | } | |||
8430 | ||||
8431 | bool ConnectionPool::CloseDatabaseWhenIdleInternal( | |||
8432 | const nsACString& aDatabaseId) { | |||
8433 | AssertIsOnOwningThread(); | |||
8434 | MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8434); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()" ")"); do { *((volatile int*)__null) = 8434; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8435 | ||||
8436 | AUTO_PROFILER_LABEL("ConnectionPool::CloseDatabaseWhenIdleInternal", DOM)mozilla::AutoProfilerLabel raiiObject8436( "ConnectionPool::CloseDatabaseWhenIdleInternal" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
8437 | ||||
8438 | if (DatabaseInfo* dbInfo = mDatabases.Get(aDatabaseId)) { | |||
8439 | if (mIdleDatabases.RemoveElement(dbInfo) || | |||
8440 | mDatabasesPerformingIdleMaintenance.RemoveElement(dbInfo)) { | |||
8441 | CloseDatabase(*dbInfo); | |||
8442 | AdjustIdleTimer(); | |||
8443 | } else { | |||
8444 | dbInfo->mCloseOnIdle.EnsureFlipped(); | |||
8445 | } | |||
8446 | ||||
8447 | return true; | |||
8448 | } | |||
8449 | ||||
8450 | return false; | |||
8451 | } | |||
8452 | ||||
8453 | ConnectionPool::ConnectionRunnable::ConnectionRunnable( | |||
8454 | DatabaseInfo& aDatabaseInfo) | |||
8455 | : Runnable("dom::indexedDB::ConnectionPool::ConnectionRunnable"), | |||
8456 | mDatabaseInfo(aDatabaseInfo), | |||
8457 | mOwningEventTarget(GetCurrentSerialEventTarget()) { | |||
8458 | AssertIsOnBackgroundThread(); | |||
8459 | MOZ_ASSERT(aDatabaseInfo.mConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseInfo.mConnectionPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mConnectionPool ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aDatabaseInfo.mConnectionPool", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8459); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mConnectionPool" ")"); do { *((volatile int*)__null) = 8459; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8460 | aDatabaseInfo.mConnectionPool->AssertIsOnOwningThread(); | |||
8461 | MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOwningEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8461); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget" ")"); do { *((volatile int*)__null) = 8461; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8462 | } | |||
8463 | ||||
8464 | NS_IMETHODIMPnsresult | |||
8465 | ConnectionPool::IdleConnectionRunnable::Run() { | |||
8466 | MOZ_ASSERT(!mDatabaseInfo.mIdle)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabaseInfo.mIdle)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabaseInfo.mIdle))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseInfo.mIdle" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseInfo.mIdle" ")"); do { *((volatile int*)__null) = 8466; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8467 | ||||
8468 | const nsCOMPtr<nsIEventTarget> owningThread = std::move(mOwningEventTarget); | |||
8469 | ||||
8470 | if (owningThread) { | |||
8471 | mDatabaseInfo.AssertIsOnConnectionThread(); | |||
8472 | ||||
8473 | // The connection could be null if EnsureConnection() didn't run or was not | |||
8474 | // successful in TransactionDatabaseOperationBase::RunOnConnectionThread(). | |||
8475 | if (mDatabaseInfo.mConnection) { | |||
8476 | mDatabaseInfo.mConnection->DoIdleProcessing(mNeedsCheckpoint, | |||
8477 | mInterrupted); | |||
8478 | } | |||
8479 | ||||
8480 | MOZ_ALWAYS_SUCCEEDS(owningThread->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8480); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 8480; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
8481 | return NS_OK; | |||
8482 | } | |||
8483 | ||||
8484 | AssertIsOnBackgroundThread(); | |||
8485 | ||||
8486 | RefPtr<ConnectionPool> connectionPool = mDatabaseInfo.mConnectionPool; | |||
8487 | MOZ_ASSERT(connectionPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(connectionPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(connectionPool))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("connectionPool" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8487); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool" ")"); do { *((volatile int*)__null) = 8487; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8488 | ||||
8489 | if (mDatabaseInfo.mClosing || mDatabaseInfo.TotalTransactionCount()) { | |||
8490 | MOZ_ASSERT(!connectionPool->mDatabasesPerformingIdleMaintenance.Contains(do { static_assert( mozilla::detail::AssertionConditionType< decltype(!connectionPool->mDatabasesPerformingIdleMaintenance .Contains( &mDatabaseInfo))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!connectionPool->mDatabasesPerformingIdleMaintenance .Contains( &mDatabaseInfo)))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)" ")"); do { *((volatile int*)__null) = 8491; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
8491 | &mDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!connectionPool->mDatabasesPerformingIdleMaintenance .Contains( &mDatabaseInfo))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!connectionPool->mDatabasesPerformingIdleMaintenance .Contains( &mDatabaseInfo)))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)" ")"); do { *((volatile int*)__null) = 8491; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8492 | } else { | |||
8493 | MOZ_ALWAYS_TRUE(do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance .RemoveElement( &mDatabaseInfo)), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8495); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)" ")"); do { *((volatile int*)__null) = 8495; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
8494 | connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement(do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance .RemoveElement( &mDatabaseInfo)), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8495); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)" ")"); do { *((volatile int*)__null) = 8495; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
8495 | &mDatabaseInfo))do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance .RemoveElement( &mDatabaseInfo)), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8495); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)" ")"); do { *((volatile int*)__null) = 8495; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
8496 | ||||
8497 | connectionPool->NoteIdleDatabase(mDatabaseInfo); | |||
8498 | } | |||
8499 | ||||
8500 | return NS_OK; | |||
8501 | } | |||
8502 | ||||
8503 | NS_IMETHODIMPnsresult | |||
8504 | ConnectionPool::CloseConnectionRunnable::Run() { | |||
8505 | AUTO_PROFILER_LABEL("ConnectionPool::CloseConnectionRunnable::Run", DOM)mozilla::AutoProfilerLabel raiiObject8505( "ConnectionPool::CloseConnectionRunnable::Run" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
8506 | ||||
8507 | if (mOwningEventTarget) { | |||
8508 | MOZ_ASSERT(mDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabaseInfo.mClosing)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabaseInfo.mClosing))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseInfo.mClosing" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8508); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mClosing" ")"); do { *((volatile int*)__null) = 8508; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8509 | ||||
8510 | const nsCOMPtr<nsIEventTarget> owningThread = std::move(mOwningEventTarget); | |||
8511 | ||||
8512 | // The connection could be null if EnsureConnection() didn't run or was not | |||
8513 | // successful in TransactionDatabaseOperationBase::RunOnConnectionThread(). | |||
8514 | if (mDatabaseInfo.mConnection) { | |||
8515 | mDatabaseInfo.AssertIsOnConnectionThread(); | |||
8516 | ||||
8517 | mDatabaseInfo.mConnection->Close(); | |||
8518 | ||||
8519 | IDB_DEBUG_LOG(("ConnectionPool closed connection 0x%p", | |||
8520 | mDatabaseInfo.mConnection.get())); | |||
8521 | ||||
8522 | mDatabaseInfo.mConnection = nullptr; | |||
8523 | ||||
8524 | #ifdef DEBUG1 | |||
8525 | mDatabaseInfo.mDEBUGConnectionEventTarget = nullptr; | |||
8526 | #endif | |||
8527 | } | |||
8528 | ||||
8529 | MOZ_ALWAYS_SUCCEEDS(owningThread->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8529); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 8529; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
8530 | return NS_OK; | |||
8531 | } | |||
8532 | ||||
8533 | RefPtr<ConnectionPool> connectionPool = mDatabaseInfo.mConnectionPool; | |||
8534 | MOZ_ASSERT(connectionPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(connectionPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(connectionPool))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("connectionPool" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8534); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool" ")"); do { *((volatile int*)__null) = 8534; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8535 | ||||
8536 | connectionPool->NoteClosedDatabase(mDatabaseInfo); | |||
8537 | return NS_OK; | |||
8538 | } | |||
8539 | ||||
8540 | ConnectionPool::DatabaseInfo::DatabaseInfo(ConnectionPool* aConnectionPool, | |||
8541 | const nsACString& aDatabaseId) | |||
8542 | : mConnectionPool(aConnectionPool), | |||
8543 | mDatabaseId(aDatabaseId), | |||
8544 | mReadTransactionCount(0), | |||
8545 | mWriteTransactionCount(0), | |||
8546 | mNeedsCheckpoint(false), | |||
8547 | mIdle(false), | |||
8548 | mClosing(false) | |||
8549 | #ifdef DEBUG1 | |||
8550 | , | |||
8551 | mDEBUGConnectionEventTarget(nullptr) | |||
8552 | #endif | |||
8553 | { | |||
8554 | AssertIsOnBackgroundThread(); | |||
8555 | MOZ_ASSERT(aConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnectionPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnectionPool))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnectionPool" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8555); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnectionPool" ")"); do { *((volatile int*)__null) = 8555; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8556 | aConnectionPool->AssertIsOnOwningThread(); | |||
8557 | MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8557); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()" ")"); do { *((volatile int*)__null) = 8557; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8558 | ||||
8559 | MOZ_COUNT_CTOR(ConnectionPool::DatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::DatabaseInfo >, "Token '" "ConnectionPool::DatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, ConnectionPool ::DatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::DatabaseInfo" , sizeof(*this)); } while (0); | |||
8560 | } | |||
8561 | ||||
8562 | ConnectionPool::DatabaseInfo::~DatabaseInfo() { | |||
8563 | AssertIsOnBackgroundThread(); | |||
8564 | MOZ_ASSERT(!mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8564); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection" ")"); do { *((volatile int*)__null) = 8564; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8565 | MOZ_ASSERT(mScheduledWriteTransactions.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mScheduledWriteTransactions.IsEmpty())>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mScheduledWriteTransactions.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mScheduledWriteTransactions.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8565); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mScheduledWriteTransactions.IsEmpty()" ")"); do { *((volatile int*)__null) = 8565; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8566 | MOZ_ASSERT(!mRunningWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mRunningWriteTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mRunningWriteTransaction))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mRunningWriteTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8566); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunningWriteTransaction" ")"); do { *((volatile int*)__null) = 8566; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8567 | MOZ_ASSERT(!TotalTransactionCount())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!TotalTransactionCount())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!TotalTransactionCount()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!TotalTransactionCount()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8567); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!TotalTransactionCount()" ")"); do { *((volatile int*)__null) = 8567; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8568 | ||||
8569 | MOZ_COUNT_DTOR(ConnectionPool::DatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::DatabaseInfo >, "Token '" "ConnectionPool::DatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, ConnectionPool ::DatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::DatabaseInfo" , sizeof(*this)); } while (0); | |||
8570 | } | |||
8571 | ||||
8572 | nsresult ConnectionPool::DatabaseInfo::Dispatch( | |||
8573 | already_AddRefed<nsIRunnable> aRunnable) { | |||
8574 | nsCOMPtr<nsIRunnable> runnable = aRunnable; | |||
8575 | ||||
8576 | #ifdef DEBUG1 | |||
8577 | if (kDEBUGTransactionThreadSleepMS) { | |||
8578 | runnable = MakeRefPtr<TransactionRunnable>(std::move(runnable)); | |||
8579 | } | |||
8580 | #endif | |||
8581 | ||||
8582 | return mEventTarget->Dispatch(runnable.forget(), NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL); | |||
8583 | } | |||
8584 | ||||
8585 | ConnectionPool::DatabaseCompleteCallback::DatabaseCompleteCallback( | |||
8586 | const nsCString& aDatabaseId, nsIRunnable* aCallback) | |||
8587 | : mDatabaseId(aDatabaseId), mCallback(aCallback) { | |||
8588 | AssertIsOnBackgroundThread(); | |||
8589 | MOZ_ASSERT(!mDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabaseId.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseId.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8589); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.IsEmpty()" ")"); do { *((volatile int*)__null) = 8589; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8590 | MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aCallback", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8590); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")" ); do { *((volatile int*)__null) = 8590; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8591 | ||||
8592 | MOZ_COUNT_CTOR(ConnectionPool::DatabaseCompleteCallback)do { static_assert(std::is_class_v<ConnectionPool::DatabaseCompleteCallback >, "Token '" "ConnectionPool::DatabaseCompleteCallback" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, ConnectionPool ::DatabaseCompleteCallback>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::DatabaseCompleteCallback" , sizeof(*this)); } while (0); | |||
8593 | } | |||
8594 | ||||
8595 | ConnectionPool::DatabaseCompleteCallback::~DatabaseCompleteCallback() { | |||
8596 | AssertIsOnBackgroundThread(); | |||
8597 | ||||
8598 | MOZ_COUNT_DTOR(ConnectionPool::DatabaseCompleteCallback)do { static_assert(std::is_class_v<ConnectionPool::DatabaseCompleteCallback >, "Token '" "ConnectionPool::DatabaseCompleteCallback" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, ConnectionPool ::DatabaseCompleteCallback>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::DatabaseCompleteCallback" , sizeof(*this)); } while (0); | |||
8599 | } | |||
8600 | ||||
8601 | ConnectionPool::FinishCallbackWrapper::FinishCallbackWrapper( | |||
8602 | ConnectionPool* aConnectionPool, uint64_t aTransactionId, | |||
8603 | FinishCallback* aCallback) | |||
8604 | : Runnable("dom::indexedDB::ConnectionPool::FinishCallbackWrapper"), | |||
8605 | mConnectionPool(aConnectionPool), | |||
8606 | mCallback(aCallback), | |||
8607 | mOwningEventTarget(GetCurrentSerialEventTarget()), | |||
8608 | mTransactionId(aTransactionId), | |||
8609 | mHasRunOnce(false) { | |||
8610 | AssertIsOnBackgroundThread(); | |||
8611 | MOZ_ASSERT(aConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnectionPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnectionPool))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnectionPool" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8611); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnectionPool" ")"); do { *((volatile int*)__null) = 8611; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8612 | MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aCallback", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8612); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")" ); do { *((volatile int*)__null) = 8612; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8613 | MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOwningEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8613); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget" ")"); do { *((volatile int*)__null) = 8613; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8614 | } | |||
8615 | ||||
8616 | ConnectionPool::FinishCallbackWrapper::~FinishCallbackWrapper() { | |||
8617 | MOZ_ASSERT(!mConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mConnectionPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mConnectionPool))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mConnectionPool" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8617); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnectionPool" ")"); do { *((volatile int*)__null) = 8617; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8618 | MOZ_ASSERT(!mCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mCallback", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8618); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCallback" ")"); do { *((volatile int*)__null) = 8618; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8619 | } | |||
8620 | ||||
8621 | nsresult ConnectionPool::FinishCallbackWrapper::Run() { | |||
8622 | MOZ_ASSERT(mConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnectionPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnectionPool))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnectionPool" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8622); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnectionPool" ")"); do { *((volatile int*)__null) = 8622; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8623 | MOZ_ASSERT(mCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCallback", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8623); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCallback" ")" ); do { *((volatile int*)__null) = 8623; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8624 | MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOwningEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8624); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget" ")"); do { *((volatile int*)__null) = 8624; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8625 | ||||
8626 | AUTO_PROFILER_LABEL("ConnectionPool::FinishCallbackWrapper::Run", DOM)mozilla::AutoProfilerLabel raiiObject8626( "ConnectionPool::FinishCallbackWrapper::Run" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
8627 | ||||
8628 | if (!mHasRunOnce) { | |||
8629 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8629); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 8629; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8630 | ||||
8631 | mHasRunOnce = true; | |||
8632 | ||||
8633 | Unused << mCallback->Run(); | |||
8634 | ||||
8635 | MOZ_ALWAYS_SUCCEEDS(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8635); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 8635; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
8636 | ||||
8637 | return NS_OK; | |||
8638 | } | |||
8639 | ||||
8640 | mConnectionPool->AssertIsOnOwningThread(); | |||
8641 | MOZ_ASSERT(mHasRunOnce)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mHasRunOnce)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mHasRunOnce))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mHasRunOnce", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8641); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mHasRunOnce" ")"); do { *((volatile int*)__null) = 8641; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8642 | ||||
8643 | RefPtr<ConnectionPool> connectionPool = std::move(mConnectionPool); | |||
8644 | RefPtr<FinishCallback> callback = std::move(mCallback); | |||
8645 | ||||
8646 | callback->TransactionFinishedBeforeUnblock(); | |||
8647 | ||||
8648 | connectionPool->NoteFinishedTransaction(mTransactionId); | |||
8649 | ||||
8650 | callback->TransactionFinishedAfterUnblock(); | |||
8651 | ||||
8652 | return NS_OK; | |||
8653 | } | |||
8654 | ||||
8655 | uint32_t ConnectionPool::sSerialNumber = 0u; | |||
8656 | ||||
8657 | #ifdef DEBUG1 | |||
8658 | ||||
8659 | ConnectionPool::TransactionRunnable::TransactionRunnable( | |||
8660 | nsCOMPtr<nsIRunnable> aRunnable) | |||
8661 | : Runnable("dom::indexedDB::ConnectionPool::TransactionRunnable"), | |||
8662 | mRunnable(std::move(aRunnable)) { | |||
8663 | AssertIsOnBackgroundThread(); | |||
8664 | MOZ_ASSERT(kDEBUGTransactionThreadSleepMS)do { static_assert( mozilla::detail::AssertionConditionType< decltype(kDEBUGTransactionThreadSleepMS)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(kDEBUGTransactionThreadSleepMS ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "kDEBUGTransactionThreadSleepMS", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGTransactionThreadSleepMS" ")"); do { *((volatile int*)__null) = 8664; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8665 | } | |||
8666 | ||||
8667 | nsresult ConnectionPool::TransactionRunnable::Run() { | |||
8668 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 8668; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8669 | ||||
8670 | QM_TRY(MOZ_TO_RESULT(mRunnable->Run())){auto tryResult3244 = (ToResult(mRunnable->Run())); static_assert (std::is_empty_v<typename decltype(tryResult3244)::ok_type >); if ((__builtin_expect(!!(tryResult3244.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mRunnable->Run())" , tryResult3244.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8670, mozilla::dom::quota::Severity::Error); return tryResult3244 .propagateErr(); }}; | |||
8671 | ||||
8672 | MOZ_ALWAYS_TRUE(PR_Sleep(PR_MillisecondsToInterval(do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval ( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8673); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS" ")"); do { *((volatile int*)__null) = 8673; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
8673 | kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS)do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval ( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8673); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS" ")"); do { *((volatile int*)__null) = 8673; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
8674 | ||||
8675 | return NS_OK; | |||
8676 | } | |||
8677 | ||||
8678 | #endif | |||
8679 | ||||
8680 | ConnectionPool::IdleResource::IdleResource(const TimeStamp& aIdleTime) | |||
8681 | : mIdleTime(aIdleTime) { | |||
8682 | AssertIsOnBackgroundThread(); | |||
8683 | MOZ_ASSERT(!aIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aIdleTime.IsNull())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aIdleTime.IsNull()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aIdleTime.IsNull()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8683); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIdleTime.IsNull()" ")"); do { *((volatile int*)__null) = 8683; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8684 | ||||
8685 | MOZ_COUNT_CTOR(ConnectionPool::IdleResource)do { static_assert(std::is_class_v<ConnectionPool::IdleResource >, "Token '" "ConnectionPool::IdleResource" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, ConnectionPool ::IdleResource>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::IdleResource" , sizeof(*this)); } while (0); | |||
8686 | } | |||
8687 | ||||
8688 | ConnectionPool::IdleResource::~IdleResource() { | |||
8689 | AssertIsOnBackgroundThread(); | |||
8690 | ||||
8691 | MOZ_COUNT_DTOR(ConnectionPool::IdleResource)do { static_assert(std::is_class_v<ConnectionPool::IdleResource >, "Token '" "ConnectionPool::IdleResource" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, ConnectionPool ::IdleResource>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::IdleResource" , sizeof(*this)); } while (0); | |||
8692 | } | |||
8693 | ||||
8694 | ConnectionPool::IdleDatabaseInfo::IdleDatabaseInfo(DatabaseInfo& aDatabaseInfo) | |||
8695 | : IdleResource( | |||
8696 | TimeStamp::NowLoRes() + | |||
8697 | (aDatabaseInfo.mIdle | |||
8698 | ? TimeDuration::FromMilliseconds(kConnectionIdleMaintenanceMS) | |||
8699 | : TimeDuration::FromMilliseconds(kConnectionIdleCloseMS))), | |||
8700 | mDatabaseInfo(WrapNotNullUnchecked(&aDatabaseInfo)) { | |||
8701 | AssertIsOnBackgroundThread(); | |||
8702 | ||||
8703 | MOZ_COUNT_CTOR(ConnectionPool::IdleDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::IdleDatabaseInfo >, "Token '" "ConnectionPool::IdleDatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, ConnectionPool ::IdleDatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::IdleDatabaseInfo" , sizeof(*this)); } while (0); | |||
8704 | } | |||
8705 | ||||
8706 | ConnectionPool::IdleDatabaseInfo::~IdleDatabaseInfo() { | |||
8707 | AssertIsOnBackgroundThread(); | |||
8708 | ||||
8709 | MOZ_COUNT_DTOR(ConnectionPool::IdleDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::IdleDatabaseInfo >, "Token '" "ConnectionPool::IdleDatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, ConnectionPool ::IdleDatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::IdleDatabaseInfo" , sizeof(*this)); } while (0); | |||
8710 | } | |||
8711 | ||||
8712 | ConnectionPool::PerformingIdleMaintenanceDatabaseInfo:: | |||
8713 | PerformingIdleMaintenanceDatabaseInfo( | |||
8714 | DatabaseInfo& aDatabaseInfo, | |||
8715 | RefPtr<IdleConnectionRunnable> aIdleConnectionRunnable) | |||
8716 | : mDatabaseInfo(WrapNotNullUnchecked(&aDatabaseInfo)), | |||
8717 | mIdleConnectionRunnable(std::move(aIdleConnectionRunnable)) { | |||
8718 | AssertIsOnBackgroundThread(); | |||
8719 | MOZ_ASSERT(mIdleConnectionRunnable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mIdleConnectionRunnable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mIdleConnectionRunnable))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mIdleConnectionRunnable" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8719); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleConnectionRunnable" ")"); do { *((volatile int*)__null) = 8719; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8720 | ||||
8721 | MOZ_COUNT_CTOR(ConnectionPool::PerformingIdleMaintenanceDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::PerformingIdleMaintenanceDatabaseInfo >, "Token '" "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo" "' is not a class type."); static_assert(!std::is_base_of< nsISupports, ConnectionPool::PerformingIdleMaintenanceDatabaseInfo >::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo" , sizeof(*this)); } while (0); | |||
8722 | } | |||
8723 | ||||
8724 | ConnectionPool::PerformingIdleMaintenanceDatabaseInfo:: | |||
8725 | ~PerformingIdleMaintenanceDatabaseInfo() { | |||
8726 | AssertIsOnBackgroundThread(); | |||
8727 | ||||
8728 | MOZ_COUNT_DTOR(ConnectionPool::PerformingIdleMaintenanceDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::PerformingIdleMaintenanceDatabaseInfo >, "Token '" "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo" "' is not a class type."); static_assert(!std::is_base_of< nsISupports, ConnectionPool::PerformingIdleMaintenanceDatabaseInfo >::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo" , sizeof(*this)); } while (0); | |||
8729 | } | |||
8730 | ||||
8731 | ConnectionPool::TransactionInfo::TransactionInfo( | |||
8732 | DatabaseInfo& aDatabaseInfo, const nsID& aBackgroundChildLoggingId, | |||
8733 | const nsACString& aDatabaseId, uint64_t aTransactionId, | |||
8734 | int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames, | |||
8735 | bool aIsWriteTransaction, TransactionDatabaseOperationBase* aTransactionOp) | |||
8736 | : mDatabaseInfo(aDatabaseInfo), | |||
8737 | mBackgroundChildLoggingId(aBackgroundChildLoggingId), | |||
8738 | mDatabaseId(aDatabaseId), | |||
8739 | mTransactionId(aTransactionId), | |||
8740 | mLoggingSerialNumber(aLoggingSerialNumber), | |||
8741 | mObjectStoreNames(aObjectStoreNames.Clone()), | |||
8742 | mIsWriteTransaction(aIsWriteTransaction), | |||
8743 | mRunning(false) { | |||
8744 | AssertIsOnBackgroundThread(); | |||
8745 | aDatabaseInfo.mConnectionPool->AssertIsOnOwningThread(); | |||
8746 | ||||
8747 | MOZ_COUNT_CTOR(ConnectionPool::TransactionInfo)do { static_assert(std::is_class_v<ConnectionPool::TransactionInfo >, "Token '" "ConnectionPool::TransactionInfo" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, ConnectionPool ::TransactionInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::TransactionInfo" , sizeof(*this)); } while (0); | |||
8748 | ||||
8749 | if (aTransactionOp) { | |||
8750 | mQueuedRunnables.AppendElement(aTransactionOp); | |||
8751 | } | |||
8752 | } | |||
8753 | ||||
8754 | ConnectionPool::TransactionInfo::~TransactionInfo() { | |||
8755 | AssertIsOnBackgroundThread(); | |||
8756 | MOZ_ASSERT(!mBlockedOn.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mBlockedOn.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mBlockedOn.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mBlockedOn.Count()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8756); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mBlockedOn.Count()" ")"); do { *((volatile int*)__null) = 8756; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8757 | MOZ_ASSERT(mQueuedRunnables.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mQueuedRunnables.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mQueuedRunnables.IsEmpty())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mQueuedRunnables.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8757); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQueuedRunnables.IsEmpty()" ")"); do { *((volatile int*)__null) = 8757; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8758 | MOZ_ASSERT(!mRunning)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mRunning)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mRunning))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mRunning", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8758); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunning" ")" ); do { *((volatile int*)__null) = 8758; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8759 | MOZ_ASSERT(mFinished)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFinished)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFinished))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFinished", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8759); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFinished" ")" ); do { *((volatile int*)__null) = 8759; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8760 | ||||
8761 | MOZ_COUNT_DTOR(ConnectionPool::TransactionInfo)do { static_assert(std::is_class_v<ConnectionPool::TransactionInfo >, "Token '" "ConnectionPool::TransactionInfo" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, ConnectionPool ::TransactionInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::TransactionInfo" , sizeof(*this)); } while (0); | |||
8762 | } | |||
8763 | ||||
8764 | void ConnectionPool::TransactionInfo::AddBlockingTransaction( | |||
8765 | TransactionInfo& aTransactionInfo) { | |||
8766 | AssertIsOnBackgroundThread(); | |||
8767 | ||||
8768 | // XXX Does it really make sense to have both mBlocking and mBlockingOrdered, | |||
8769 | // just to reduce the algorithmic complexity of this Contains check? This was | |||
8770 | // mentioned in the context of Bug 1290853, but no real justification was | |||
8771 | // given. There was the suggestion of encapsulating this in an | |||
8772 | // insertion-ordered hashtable implementation, which seems like a good idea. | |||
8773 | // If we had that, this would be the appropriate data structure to use here. | |||
8774 | if (mBlocking.EnsureInserted(&aTransactionInfo)) { | |||
8775 | mBlockingOrdered.AppendElement(WrapNotNullUnchecked(&aTransactionInfo)); | |||
8776 | } | |||
8777 | } | |||
8778 | ||||
8779 | void ConnectionPool::TransactionInfo::RemoveBlockingTransactions() { | |||
8780 | AssertIsOnBackgroundThread(); | |||
8781 | ||||
8782 | for (const auto blockedInfo : mBlockingOrdered) { | |||
8783 | blockedInfo->MaybeUnblock(*this); | |||
8784 | } | |||
8785 | ||||
8786 | mBlocking.Clear(); | |||
8787 | mBlockingOrdered.Clear(); | |||
8788 | } | |||
8789 | ||||
8790 | void ConnectionPool::TransactionInfo::MaybeUnblock( | |||
8791 | TransactionInfo& aTransactionInfo) { | |||
8792 | AssertIsOnBackgroundThread(); | |||
8793 | MOZ_ASSERT(mBlockedOn.Contains(&aTransactionInfo))do { static_assert( mozilla::detail::AssertionConditionType< decltype(mBlockedOn.Contains(&aTransactionInfo))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mBlockedOn.Contains(&aTransactionInfo)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mBlockedOn.Contains(&aTransactionInfo)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8793); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBlockedOn.Contains(&aTransactionInfo)" ")"); do { *((volatile int*)__null) = 8793; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8794 | ||||
8795 | mBlockedOn.Remove(&aTransactionInfo); | |||
8796 | if (mBlockedOn.IsEmpty()) { | |||
8797 | ConnectionPool* connectionPool = mDatabaseInfo.mConnectionPool; | |||
8798 | MOZ_ASSERT(connectionPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(connectionPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(connectionPool))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("connectionPool" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool" ")"); do { *((volatile int*)__null) = 8798; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8799 | connectionPool->AssertIsOnOwningThread(); | |||
8800 | ||||
8801 | Unused << connectionPool->ScheduleTransaction( | |||
8802 | *this, | |||
8803 | /* aFromQueuedTransactions */ false); | |||
8804 | } | |||
8805 | } | |||
8806 | ||||
8807 | #if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1) | |||
8808 | ConnectionPool::TransactionInfoPair::TransactionInfoPair() { | |||
8809 | AssertIsOnBackgroundThread(); | |||
8810 | ||||
8811 | MOZ_COUNT_CTOR(ConnectionPool::TransactionInfoPair)do { static_assert(std::is_class_v<ConnectionPool::TransactionInfoPair >, "Token '" "ConnectionPool::TransactionInfoPair" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, ConnectionPool ::TransactionInfoPair>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::TransactionInfoPair" , sizeof(*this)); } while (0); | |||
8812 | } | |||
8813 | ||||
8814 | ConnectionPool::TransactionInfoPair::~TransactionInfoPair() { | |||
8815 | AssertIsOnBackgroundThread(); | |||
8816 | ||||
8817 | MOZ_COUNT_DTOR(ConnectionPool::TransactionInfoPair)do { static_assert(std::is_class_v<ConnectionPool::TransactionInfoPair >, "Token '" "ConnectionPool::TransactionInfoPair" "' is not a class type." ); static_assert(!std::is_base_of<nsISupports, ConnectionPool ::TransactionInfoPair>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::TransactionInfoPair" , sizeof(*this)); } while (0); | |||
8818 | } | |||
8819 | #endif | |||
8820 | ||||
8821 | /******************************************************************************* | |||
8822 | * Metadata classes | |||
8823 | ******************************************************************************/ | |||
8824 | ||||
8825 | bool FullObjectStoreMetadata::HasLiveIndexes() const { | |||
8826 | AssertIsOnBackgroundThread(); | |||
8827 | ||||
8828 | return std::any_of(mIndexes.Values().cbegin(), mIndexes.Values().cend(), | |||
8829 | [](const auto& entry) { return !entry->mDeleted; }); | |||
8830 | } | |||
8831 | ||||
8832 | SafeRefPtr<FullDatabaseMetadata> FullDatabaseMetadata::Duplicate() const { | |||
8833 | AssertIsOnBackgroundThread(); | |||
8834 | ||||
8835 | // FullDatabaseMetadata contains two hash tables of pointers that we need to | |||
8836 | // duplicate so we can't just use the copy constructor. | |||
8837 | auto newMetadata = MakeSafeRefPtr<FullDatabaseMetadata>(mCommonMetadata); | |||
8838 | ||||
8839 | newMetadata->mDatabaseId = mDatabaseId; | |||
8840 | newMetadata->mFilePath = mFilePath; | |||
8841 | newMetadata->mNextObjectStoreId = mNextObjectStoreId; | |||
8842 | newMetadata->mNextIndexId = mNextIndexId; | |||
8843 | ||||
8844 | for (const auto& objectStoreEntry : mObjectStores) { | |||
8845 | const auto& objectStoreValue = objectStoreEntry.GetData(); | |||
8846 | ||||
8847 | auto newOSMetadata = MakeSafeRefPtr<FullObjectStoreMetadata>( | |||
8848 | objectStoreValue->mCommonMetadata, [&objectStoreValue] { | |||
8849 | const auto&& srcLocked = objectStoreValue->mAutoIncrementIds.Lock(); | |||
8850 | return *srcLocked; | |||
8851 | }()); | |||
8852 | ||||
8853 | for (const auto& indexEntry : objectStoreValue->mIndexes) { | |||
8854 | const auto& value = indexEntry.GetData(); | |||
8855 | ||||
8856 | auto newIndexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); | |||
8857 | ||||
8858 | newIndexMetadata->mCommonMetadata = value->mCommonMetadata; | |||
8859 | ||||
8860 | if (NS_WARN_IF(!newOSMetadata->mIndexes.InsertOrUpdate(NS_warn_if_impl(!newOSMetadata->mIndexes.InsertOrUpdate( indexEntry .GetKey(), std::move(newIndexMetadata), fallible), "!newOSMetadata->mIndexes.InsertOrUpdate( indexEntry.GetKey(), std::move(newIndexMetadata), fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8861) | |||
8861 | indexEntry.GetKey(), std::move(newIndexMetadata), fallible))NS_warn_if_impl(!newOSMetadata->mIndexes.InsertOrUpdate( indexEntry .GetKey(), std::move(newIndexMetadata), fallible), "!newOSMetadata->mIndexes.InsertOrUpdate( indexEntry.GetKey(), std::move(newIndexMetadata), fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8861)) { | |||
8862 | return nullptr; | |||
8863 | } | |||
8864 | } | |||
8865 | ||||
8866 | MOZ_ASSERT(objectStoreValue->mIndexes.Count() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(objectStoreValue->mIndexes.Count() == newOSMetadata ->mIndexes.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(objectStoreValue->mIndexes .Count() == newOSMetadata->mIndexes.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8867); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()" ")"); do { *((volatile int*)__null) = 8867; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
8867 | newOSMetadata->mIndexes.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(objectStoreValue->mIndexes.Count() == newOSMetadata ->mIndexes.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(objectStoreValue->mIndexes .Count() == newOSMetadata->mIndexes.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8867); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()" ")"); do { *((volatile int*)__null) = 8867; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8868 | ||||
8869 | if (NS_WARN_IF(!newMetadata->mObjectStores.InsertOrUpdate(NS_warn_if_impl(!newMetadata->mObjectStores.InsertOrUpdate ( objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible ), "!newMetadata->mObjectStores.InsertOrUpdate( objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8870) | |||
8870 | objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible))NS_warn_if_impl(!newMetadata->mObjectStores.InsertOrUpdate ( objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible ), "!newMetadata->mObjectStores.InsertOrUpdate( objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8870)) { | |||
8871 | return nullptr; | |||
8872 | } | |||
8873 | } | |||
8874 | ||||
8875 | MOZ_ASSERT(mObjectStores.Count() == newMetadata->mObjectStores.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mObjectStores.Count() == newMetadata->mObjectStores .Count())>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(mObjectStores.Count() == newMetadata ->mObjectStores.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mObjectStores.Count() == newMetadata->mObjectStores.Count()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8875); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStores.Count() == newMetadata->mObjectStores.Count()" ")"); do { *((volatile int*)__null) = 8875; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8876 | ||||
8877 | return newMetadata; | |||
8878 | } | |||
8879 | ||||
8880 | DatabaseLoggingInfo::~DatabaseLoggingInfo() { | |||
8881 | AssertIsOnBackgroundThread(); | |||
8882 | ||||
8883 | if (gLoggingInfoHashtable) { | |||
8884 | const nsID& backgroundChildLoggingId = | |||
8885 | mLoggingInfo.backgroundChildLoggingId(); | |||
8886 | ||||
8887 | MOZ_ASSERT(gLoggingInfoHashtable->Get(backgroundChildLoggingId) == this)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gLoggingInfoHashtable->Get(backgroundChildLoggingId ) == this)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(gLoggingInfoHashtable->Get(backgroundChildLoggingId ) == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("gLoggingInfoHashtable->Get(backgroundChildLoggingId) == this" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable->Get(backgroundChildLoggingId) == this" ")"); do { *((volatile int*)__null) = 8887; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8888 | ||||
8889 | gLoggingInfoHashtable->Remove(backgroundChildLoggingId); | |||
8890 | } | |||
8891 | } | |||
8892 | ||||
8893 | /******************************************************************************* | |||
8894 | * Factory | |||
8895 | ******************************************************************************/ | |||
8896 | ||||
8897 | Factory::Factory(RefPtr<DatabaseLoggingInfo> aLoggingInfo, | |||
8898 | const nsACString& aSystemLocale) | |||
8899 | : mSystemLocale(aSystemLocale), | |||
8900 | mLoggingInfo(std::move(aLoggingInfo)) | |||
8901 | #ifdef DEBUG1 | |||
8902 | , | |||
8903 | mActorDestroyed(false) | |||
8904 | #endif | |||
8905 | { | |||
8906 | AssertIsOnBackgroundThread(); | |||
8907 | MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8907); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 8907; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8908 | } | |||
8909 | ||||
8910 | Factory::~Factory() { MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mActorDestroyed" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8910); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")"); do { *((volatile int*)__null) = 8910; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | |||
8911 | ||||
8912 | // static | |||
8913 | SafeRefPtr<Factory> Factory::Create(const LoggingInfo& aLoggingInfo, | |||
8914 | const nsACString& aSystemLocale) { | |||
8915 | AssertIsOnBackgroundThread(); | |||
8916 | MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 8916; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8917 | ||||
8918 | // Balanced in ActoryDestroy(). | |||
8919 | IncreaseBusyCount(); | |||
8920 | ||||
8921 | MOZ_ASSERT(gLoggingInfoHashtable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gLoggingInfoHashtable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gLoggingInfoHashtable))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("gLoggingInfoHashtable" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8921); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable" ")"); do { *((volatile int*)__null) = 8921; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8922 | RefPtr<DatabaseLoggingInfo> loggingInfo = | |||
8923 | gLoggingInfoHashtable->WithEntryHandle( | |||
8924 | aLoggingInfo.backgroundChildLoggingId(), [&](auto&& entry) { | |||
8925 | if (entry) { | |||
8926 | [[maybe_unused]] const auto& loggingInfo = entry.Data(); | |||
8927 | MOZ_ASSERT(aLoggingInfo.backgroundChildLoggingId() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(aLoggingInfo.backgroundChildLoggingId() == loggingInfo ->Id())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aLoggingInfo.backgroundChildLoggingId () == loggingInfo->Id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8928); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()" ")"); do { *((volatile int*)__null) = 8928; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
8928 | loggingInfo->Id())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aLoggingInfo.backgroundChildLoggingId() == loggingInfo ->Id())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aLoggingInfo.backgroundChildLoggingId () == loggingInfo->Id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8928); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()" ")"); do { *((volatile int*)__null) = 8928; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8929 | #if !FUZZING | |||
8930 | NS_WARNING_ASSERTION(do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo ->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak (NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8933); } } while (false) | |||
8931 | aLoggingInfo.nextTransactionSerialNumber() ==do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo ->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak (NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8933); } } while (false) | |||
8932 | loggingInfo->mLoggingInfo.nextTransactionSerialNumber(),do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo ->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak (NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8933); } } while (false) | |||
8933 | "NextTransactionSerialNumber doesn't match!")do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo ->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak (NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8933); } } while (false); | |||
8934 | NS_WARNING_ASSERTION(do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber () == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber ())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8938); } } while (false) | |||
8935 | aLoggingInfo.nextVersionChangeTransactionSerialNumber() ==do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber () == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber ())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8938); } } while (false) | |||
8936 | loggingInfo->mLoggingInfodo { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber () == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber ())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8938); } } while (false) | |||
8937 | .nextVersionChangeTransactionSerialNumber(),do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber () == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber ())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8938); } } while (false) | |||
8938 | "NextVersionChangeTransactionSerialNumber doesn't match!")do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber () == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber ())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!" , "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8938); } } while (false); | |||
8939 | NS_WARNING_ASSERTION(do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo ->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak (NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8942); } } while (false) | |||
8940 | aLoggingInfo.nextRequestSerialNumber() ==do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo ->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak (NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8942); } } while (false) | |||
8941 | loggingInfo->mLoggingInfo.nextRequestSerialNumber(),do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo ->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak (NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8942); } } while (false) | |||
8942 | "NextRequestSerialNumber doesn't match!")do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo ->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak (NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8942); } } while (false); | |||
8943 | #endif // !FUZZING | |||
8944 | } else { | |||
8945 | entry.Insert(new DatabaseLoggingInfo(aLoggingInfo)); | |||
8946 | } | |||
8947 | ||||
8948 | return do_AddRef(entry.Data()); | |||
8949 | }); | |||
8950 | ||||
8951 | return MakeSafeRefPtr<Factory>(std::move(loggingInfo), aSystemLocale); | |||
8952 | } | |||
8953 | ||||
8954 | void Factory::ActorDestroy(ActorDestroyReason aWhy) { | |||
8955 | AssertIsOnBackgroundThread(); | |||
8956 | MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"); do { *((volatile int*)__null) = 8956; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8957 | ||||
8958 | #ifdef DEBUG1 | |||
8959 | mActorDestroyed = true; | |||
8960 | #endif | |||
8961 | ||||
8962 | // Match the IncreaseBusyCount in Create(). | |||
8963 | DecreaseBusyCount(); | |||
8964 | } | |||
8965 | ||||
8966 | mozilla::ipc::IPCResult Factory::RecvDeleteMe() { | |||
8967 | AssertIsOnBackgroundThread(); | |||
8968 | MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8968); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"); do { *((volatile int*)__null) = 8968; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8969 | ||||
8970 | QM_WARNONLY_TRY(OkIf(PBackgroundIDBFactoryParent::Send__delete__(this))){auto tryResult3245 = (OkIf(PBackgroundIDBFactoryParent::Send__delete__ (this))); static_assert(std::is_empty_v<typename decltype( tryResult3245)::ok_type>); if ((__builtin_expect(!!(tryResult3245 .isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBFactoryParent::Send__delete__(this))" , tryResult3245.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8970, mozilla::dom::quota::Severity::Warning); }}; | |||
8971 | ||||
8972 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
8973 | } | |||
8974 | ||||
8975 | PBackgroundIDBFactoryRequestParent* | |||
8976 | Factory::AllocPBackgroundIDBFactoryRequestParent( | |||
8977 | const FactoryRequestParams& aParams) { | |||
8978 | AssertIsOnBackgroundThread(); | |||
8979 | MOZ_ASSERT(aParams.type() != FactoryRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != FactoryRequestParams::T__None)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() != FactoryRequestParams::T__None))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != FactoryRequestParams::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8979); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != FactoryRequestParams::T__None" ")"); do { *((volatile int*)__null) = 8979; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
8980 | ||||
8981 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 8981)) { | |||
8982 | return nullptr; | |||
8983 | } | |||
8984 | ||||
8985 | const CommonFactoryRequestParams* commonParams; | |||
8986 | ||||
8987 | switch (aParams.type()) { | |||
8988 | case FactoryRequestParams::TOpenDatabaseRequestParams: { | |||
8989 | const OpenDatabaseRequestParams& params = | |||
8990 | aParams.get_OpenDatabaseRequestParams(); | |||
8991 | commonParams = ¶ms.commonParams(); | |||
8992 | break; | |||
8993 | } | |||
8994 | ||||
8995 | case FactoryRequestParams::TDeleteDatabaseRequestParams: { | |||
8996 | const DeleteDatabaseRequestParams& params = | |||
8997 | aParams.get_DeleteDatabaseRequestParams(); | |||
8998 | commonParams = ¶ms.commonParams(); | |||
8999 | break; | |||
9000 | } | |||
9001 | ||||
9002 | default: | |||
9003 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9003); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 9003; __attribute__((nomerge )) ::abort(); } while (false); } while (false); | |||
9004 | } | |||
9005 | ||||
9006 | MOZ_ASSERT(commonParams)do { static_assert( mozilla::detail::AssertionConditionType< decltype(commonParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(commonParams))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("commonParams", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9006); AnnotateMozCrashReason("MOZ_ASSERT" "(" "commonParams" ")"); do { *((volatile int*)__null) = 9006; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9007 | ||||
9008 | const DatabaseMetadata& metadata = commonParams->metadata(); | |||
9009 | ||||
9010 | if (NS_AUUF_OR_WARN_IF(!IsValidPersistenceType(metadata.persistenceType()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!IsValidPersistenceType(metadata.persistenceType())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9010); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!IsValidPersistenceType(metadata.persistenceType())" ")"); do { *((volatile int*)__null) = 9010; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); } return aCond; } ((!IsValidPersistenceType(metadata.persistenceType())))) { | |||
9011 | return nullptr; | |||
9012 | } | |||
9013 | ||||
9014 | const PrincipalInfo& principalInfo = commonParams->principalInfo(); | |||
9015 | ||||
9016 | if (NS_AUUF_OR_WARN_IF(!QuotaManager::IsPrincipalInfoValid(principalInfo))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!QuotaManager::IsPrincipalInfoValid(principalInfo)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9016); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!QuotaManager::IsPrincipalInfoValid(principalInfo)" ")"); do { *((volatile int*)__null) = 9016; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); } return aCond; } ((!QuotaManager::IsPrincipalInfoValid(principalInfo)))) { | |||
9017 | IPC_FAIL(this, "Invalid principal!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid principal!" )); | |||
9018 | return nullptr; | |||
9019 | } | |||
9020 | ||||
9021 | MOZ_ASSERT(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9022); AnnotateMozCrashReason("MOZ_ASSERT" "(" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo" ")"); do { *((volatile int*)__null) = 9022; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
9022 | principalInfo.type() == PrincipalInfo::TContentPrincipalInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9022); AnnotateMozCrashReason("MOZ_ASSERT" "(" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo" ")"); do { *((volatile int*)__null) = 9022; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9023 | ||||
9024 | if (NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9026); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT" ")"); do { *((volatile int*)__null) = 9026; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT )) | |||
9025 | principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9026); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT" ")"); do { *((volatile int*)__null) = 9026; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT )) | |||
9026 | metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9026); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT" ")"); do { *((volatile int*)__null) = 9026; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT ))) { | |||
9027 | return nullptr; | |||
9028 | } | |||
9029 | ||||
9030 | if (NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9034); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT" ")"); do { *((volatile int*)__null) = 9034; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo ().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT)) | |||
9031 | principalInfo.type() == PrincipalInfo::TContentPrincipalInfo &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9034); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT" ")"); do { *((volatile int*)__null) = 9034; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo ().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT)) | |||
9032 | QuotaManager::IsOriginInternal([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9034); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT" ")"); do { *((volatile int*)__null) = 9034; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo ().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT)) | |||
9033 | principalInfo.get_ContentPrincipalInfo().originNoSuffix()) &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9034); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT" ")"); do { *((volatile int*)__null) = 9034; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo ().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT)) | |||
9034 | metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9034); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT" ")"); do { *((volatile int*)__null) = 9034; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo ().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT))) { | |||
9035 | return nullptr; | |||
9036 | } | |||
9037 | ||||
9038 | Maybe<ContentParentId> contentParentId = GetContentParentId(); | |||
9039 | ||||
9040 | auto actor = [&]() -> RefPtr<FactoryRequestOp> { | |||
9041 | if (aParams.type() == FactoryRequestParams::TOpenDatabaseRequestParams) { | |||
9042 | return MakeRefPtr<OpenDatabaseOp>(SafeRefPtrFromThis(), contentParentId, | |||
9043 | *commonParams); | |||
9044 | } else { | |||
9045 | return MakeRefPtr<DeleteDatabaseOp>(SafeRefPtrFromThis(), contentParentId, | |||
9046 | *commonParams); | |||
9047 | } | |||
9048 | }(); | |||
9049 | ||||
9050 | gFactoryOps->AppendElement(actor); | |||
9051 | ||||
9052 | // Balanced in CleanupMetadata() which is/must always called by SendResults(). | |||
9053 | IncreaseBusyCount(); | |||
9054 | ||||
9055 | // Transfer ownership to IPDL. | |||
9056 | return actor.forget().take(); | |||
9057 | } | |||
9058 | ||||
9059 | mozilla::ipc::IPCResult Factory::RecvPBackgroundIDBFactoryRequestConstructor( | |||
9060 | PBackgroundIDBFactoryRequestParent* aActor, | |||
9061 | const FactoryRequestParams& aParams) { | |||
9062 | AssertIsOnBackgroundThread(); | |||
9063 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9063); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { *((volatile int*)__null) = 9063; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9064 | MOZ_ASSERT(aParams.type() != FactoryRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != FactoryRequestParams::T__None)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() != FactoryRequestParams::T__None))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != FactoryRequestParams::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9064); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != FactoryRequestParams::T__None" ")"); do { *((volatile int*)__null) = 9064; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9065 | MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9065); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 9065; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9066 | ||||
9067 | auto* op = static_cast<FactoryRequestOp*>(aActor); | |||
9068 | ||||
9069 | MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(op))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (NS_DispatchToCurrentThread(op))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))" ")" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9069); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))" ")"); do { *((volatile int*)__null) = 9069; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); } } while (false ); | |||
9070 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
9071 | } | |||
9072 | ||||
9073 | bool Factory::DeallocPBackgroundIDBFactoryRequestParent( | |||
9074 | PBackgroundIDBFactoryRequestParent* aActor) { | |||
9075 | AssertIsOnBackgroundThread(); | |||
9076 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9076); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { *((volatile int*)__null) = 9076; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9077 | ||||
9078 | // Transfer ownership back from IPDL. | |||
9079 | RefPtr<FactoryRequestOp> op = | |||
9080 | dont_AddRef(static_cast<FactoryRequestOp*>(aActor)); | |||
9081 | return true; | |||
9082 | } | |||
9083 | ||||
9084 | mozilla::ipc::IPCResult Factory::RecvGetDatabases( | |||
9085 | const PersistenceType& aPersistenceType, | |||
9086 | const PrincipalInfo& aPrincipalInfo, GetDatabasesResolver&& aResolve) { | |||
9087 | AssertIsOnBackgroundThread(); | |||
9088 | ||||
9089 | auto ResolveGetDatabasesAndReturn = [&aResolve](const nsresult rv) { | |||
9090 | aResolve(rv); | |||
9091 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
9092 | }; | |||
9093 | ||||
9094 | QM_TRY(MOZ_TO_RESULT(!QuotaClient::IsShuttingDownOnBackgroundThread()),{auto tryResult3246 = (ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread ())); static_assert(std::is_empty_v<typename decltype(tryResult3246 )::ok_type>); if ((__builtin_expect(!!(tryResult3246.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3246 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9095, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())" , tryTempError, ResolveGetDatabasesAndReturn); }} | |||
9095 | ResolveGetDatabasesAndReturn){auto tryResult3246 = (ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread ())); static_assert(std::is_empty_v<typename decltype(tryResult3246 )::ok_type>); if ((__builtin_expect(!!(tryResult3246.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3246 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9095, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())" , tryTempError, ResolveGetDatabasesAndReturn); }}; | |||
9096 | ||||
9097 | QM_TRY(MOZ_TO_RESULT(IsValidPersistenceType(aPersistenceType)),{auto tryResult3247 = (ToResult(IsValidPersistenceType(aPersistenceType ))); static_assert(std::is_empty_v<typename decltype(tryResult3247 )::ok_type>); if ((__builtin_expect(!!(tryResult3247.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3247 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(IsValidPersistenceType(aPersistenceType))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9098, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IsValidPersistenceType(aPersistenceType))" , tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal (mozilla::WrapNotNull(this))); }} | |||
9098 | QM_IPC_FAIL(this)){auto tryResult3247 = (ToResult(IsValidPersistenceType(aPersistenceType ))); static_assert(std::is_empty_v<typename decltype(tryResult3247 )::ok_type>); if ((__builtin_expect(!!(tryResult3247.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3247 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(IsValidPersistenceType(aPersistenceType))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9098, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IsValidPersistenceType(aPersistenceType))" , tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal (mozilla::WrapNotNull(this))); }}; | |||
9099 | ||||
9100 | QM_TRY(MOZ_TO_RESULT(QuotaManager::IsPrincipalInfoValid(aPrincipalInfo)),{auto tryResult3248 = (ToResult(QuotaManager::IsPrincipalInfoValid (aPrincipalInfo))); static_assert(std::is_empty_v<typename decltype(tryResult3248)::ok_type>); if ((__builtin_expect (!!(tryResult3248.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3248.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(QuotaManager::IsPrincipalInfoValid(aPrincipalInfo))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9101, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(QuotaManager::IsPrincipalInfoValid(aPrincipalInfo))" , tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal (mozilla::WrapNotNull(this))); }} | |||
9101 | QM_IPC_FAIL(this)){auto tryResult3248 = (ToResult(QuotaManager::IsPrincipalInfoValid (aPrincipalInfo))); static_assert(std::is_empty_v<typename decltype(tryResult3248)::ok_type>); if ((__builtin_expect (!!(tryResult3248.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3248.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(QuotaManager::IsPrincipalInfoValid(aPrincipalInfo))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9101, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(QuotaManager::IsPrincipalInfoValid(aPrincipalInfo))" , tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal (mozilla::WrapNotNull(this))); }}; | |||
9102 | ||||
9103 | MOZ_ASSERT(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9104); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo" ")"); do { *((volatile int*)__null) = 9104; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
9104 | aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9104); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo" ")"); do { *((volatile int*)__null) = 9104; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9105 | ||||
9106 | PersistenceType persistenceType = | |||
9107 | IDBFactory::GetPersistenceType(aPrincipalInfo); | |||
9108 | ||||
9109 | QM_TRY(MOZ_TO_RESULT(aPersistenceType == persistenceType), QM_IPC_FAIL(this)){auto tryResult3249 = (ToResult(aPersistenceType == persistenceType )); static_assert(std::is_empty_v<typename decltype(tryResult3249 )::ok_type>); if ((__builtin_expect(!!(tryResult3249.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3249 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(aPersistenceType == persistenceType)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9109, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(aPersistenceType == persistenceType)" , tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal (mozilla::WrapNotNull(this))); }}; | |||
9110 | ||||
9111 | Maybe<ContentParentId> contentParentId = GetContentParentId(); | |||
9112 | ||||
9113 | auto op = MakeRefPtr<GetDatabasesOp>(SafeRefPtrFromThis(), contentParentId, | |||
9114 | aPersistenceType, aPrincipalInfo, | |||
9115 | std::move(aResolve)); | |||
9116 | ||||
9117 | gFactoryOps->AppendElement(op); | |||
9118 | ||||
9119 | // Balanced in CleanupMetadata() which is/must always called by SendResults(). | |||
9120 | IncreaseBusyCount(); | |||
9121 | ||||
9122 | MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(op))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (NS_DispatchToCurrentThread(op))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))" ")" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9122); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))" ")"); do { *((volatile int*)__null) = 9122; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); } } while (false ); | |||
9123 | ||||
9124 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
9125 | } | |||
9126 | ||||
9127 | Maybe<ContentParentId> Factory::GetContentParentId() const { | |||
9128 | uint64_t childID = BackgroundParent::GetChildID(Manager()); | |||
9129 | if (childID) { | |||
9130 | // If childID is not zero we are dealing with an other-process actor. We | |||
9131 | // want to initialize OpenDatabaseOp/DeleteDatabaseOp here with the ID | |||
9132 | // (and later also Database) in that case, so Database::IsOwnedByProcess | |||
9133 | // can find Databases belonging to a particular content process when | |||
9134 | // QuotaClient::AbortOperationsForProcess is called which is currently used | |||
9135 | // to abort operations for content processes only. | |||
9136 | return Some(ContentParentId(childID)); | |||
9137 | } | |||
9138 | ||||
9139 | return Nothing(); | |||
9140 | } | |||
9141 | ||||
9142 | /******************************************************************************* | |||
9143 | * WaitForTransactionsHelper | |||
9144 | ******************************************************************************/ | |||
9145 | ||||
9146 | void WaitForTransactionsHelper::WaitForTransactions() { | |||
9147 | MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9147); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial" ")"); do { *((volatile int*)__null) = 9147; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9148 | ||||
9149 | Unused << this->Run(); | |||
9150 | } | |||
9151 | ||||
9152 | void WaitForTransactionsHelper::MaybeWaitForTransactions() { | |||
9153 | AssertIsOnBackgroundThread(); | |||
9154 | MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9154); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial" ")"); do { *((volatile int*)__null) = 9154; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9155 | ||||
9156 | RefPtr<ConnectionPool> connectionPool = gConnectionPool.get(); | |||
9157 | if (connectionPool) { | |||
9158 | mState = State::WaitingForTransactions; | |||
9159 | ||||
9160 | connectionPool->WaitForDatabaseToComplete(mDatabaseId, this); | |||
9161 | ||||
9162 | return; | |||
9163 | } | |||
9164 | ||||
9165 | CallCallback(); | |||
9166 | } | |||
9167 | ||||
9168 | void WaitForTransactionsHelper::CallCallback() { | |||
9169 | AssertIsOnBackgroundThread(); | |||
9170 | MOZ_ASSERT(mState == State::Initial ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial || mState == State::WaitingForTransactions )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::Initial || mState == State::WaitingForTransactions ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::Initial || mState == State::WaitingForTransactions" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9171); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::WaitingForTransactions" ")"); do { *((volatile int*)__null) = 9171; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
9171 | mState == State::WaitingForTransactions)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial || mState == State::WaitingForTransactions )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::Initial || mState == State::WaitingForTransactions ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::Initial || mState == State::WaitingForTransactions" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9171); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::WaitingForTransactions" ")"); do { *((volatile int*)__null) = 9171; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9172 | ||||
9173 | const nsCOMPtr<nsIRunnable> callback = std::move(mCallback); | |||
9174 | ||||
9175 | callback->Run(); | |||
9176 | ||||
9177 | mState = State::Complete; | |||
9178 | } | |||
9179 | ||||
9180 | NS_IMETHODIMPnsresult | |||
9181 | WaitForTransactionsHelper::Run() { | |||
9182 | MOZ_ASSERT(mState != State::Complete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState != State::Complete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState != State::Complete))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState != State::Complete" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9182); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State::Complete" ")"); do { *((volatile int*)__null) = 9182; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9183 | MOZ_ASSERT(mCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCallback", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9183); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCallback" ")" ); do { *((volatile int*)__null) = 9183; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9184 | ||||
9185 | switch (mState) { | |||
9186 | case State::Initial: | |||
9187 | MaybeWaitForTransactions(); | |||
9188 | break; | |||
9189 | ||||
9190 | case State::WaitingForTransactions: | |||
9191 | CallCallback(); | |||
9192 | break; | |||
9193 | ||||
9194 | default: | |||
9195 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9195); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 9195; __attribute__((nomerge )) ::abort(); } while (false); } while (false); | |||
9196 | } | |||
9197 | ||||
9198 | return NS_OK; | |||
9199 | } | |||
9200 | ||||
9201 | /******************************************************************************* | |||
9202 | * Database | |||
9203 | ******************************************************************************/ | |||
9204 | ||||
9205 | Database::Database(SafeRefPtr<Factory> aFactory, | |||
9206 | const PrincipalInfo& aPrincipalInfo, | |||
9207 | const Maybe<ContentParentId>& aOptionalContentParentId, | |||
9208 | const quota::OriginMetadata& aOriginMetadata, | |||
9209 | uint32_t aTelemetryId, | |||
9210 | SafeRefPtr<FullDatabaseMetadata> aMetadata, | |||
9211 | SafeRefPtr<DatabaseFileManager> aFileManager, | |||
9212 | RefPtr<DirectoryLock> aDirectoryLock, | |||
9213 | bool aInPrivateBrowsing, | |||
9214 | const Maybe<const CipherKey>& aMaybeKey) | |||
9215 | : mFactory(std::move(aFactory)), | |||
9216 | mMetadata(std::move(aMetadata)), | |||
9217 | mFileManager(std::move(aFileManager)), | |||
9218 | mDirectoryLock(std::move(aDirectoryLock)), | |||
9219 | mPrincipalInfo(aPrincipalInfo), | |||
9220 | mOptionalContentParentId(aOptionalContentParentId), | |||
9221 | mOriginMetadata(aOriginMetadata), | |||
9222 | mId(mMetadata->mDatabaseId), | |||
9223 | mFilePath(mMetadata->mFilePath), | |||
9224 | mKey(aMaybeKey), | |||
9225 | mTelemetryId(aTelemetryId), | |||
9226 | mPersistenceType(mMetadata->mCommonMetadata.persistenceType()), | |||
9227 | mInPrivateBrowsing(aInPrivateBrowsing), | |||
9228 | mBackgroundThread(GetCurrentSerialEventTarget()) | |||
9229 | #ifdef DEBUG1 | |||
9230 | , | |||
9231 | mAllBlobsUnmapped(false) | |||
9232 | #endif | |||
9233 | { | |||
9234 | AssertIsOnBackgroundThread(); | |||
9235 | MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFactory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFactory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9235); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")" ); do { *((volatile int*)__null) = 9235; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9236 | MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9236); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")" ); do { *((volatile int*)__null) = 9236; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9237 | MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9237); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager" ")"); do { *((volatile int*)__null) = 9237; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9238 | ||||
9239 | MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9239); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")"); do { *((volatile int*)__null) = 9239; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9240 | MOZ_ASSERT(mDirectoryLock->Id() >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLock->Id() >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLock->Id() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mDirectoryLock->Id() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9240); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock->Id() >= 0" ")"); do { *((volatile int*)__null) = 9240; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9241 | mDirectoryLockId = mDirectoryLock->Id(); | |||
9242 | } | |||
9243 | ||||
9244 | template <typename T> | |||
9245 | bool Database::InvalidateAll(const nsTBaseHashSet<nsPtrHashKey<T>>& aTable) { | |||
9246 | AssertIsOnBackgroundThread(); | |||
9247 | ||||
9248 | const uint32_t count = aTable.Count(); | |||
9249 | if (!count) { | |||
9250 | return true; | |||
9251 | } | |||
9252 | ||||
9253 | // XXX Does this really need to be fallible? | |||
9254 | QM_TRY_INSPECT(const auto& elementsToInvalidate,auto tryResult3250 = (TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)); if ((__builtin_expect (!!(tryResult3250.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3250.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9257, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, false); } const auto& elementsToInvalidate = tryResult3250.inspect(); | |||
9255 | TransformIntoNewArray(auto tryResult3250 = (TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)); if ((__builtin_expect (!!(tryResult3250.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3250.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9257, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, false); } const auto& elementsToInvalidate = tryResult3250.inspect(); | |||
9256 | aTable, [](const auto& entry) { return entry; }, fallible),auto tryResult3250 = (TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)); if ((__builtin_expect (!!(tryResult3250.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3250.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9257, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, false); } const auto& elementsToInvalidate = tryResult3250.inspect(); | |||
9257 | false)auto tryResult3250 = (TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)); if ((__builtin_expect (!!(tryResult3250.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3250.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9257, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, false); } const auto& elementsToInvalidate = tryResult3250.inspect();; | |||
9258 | ||||
9259 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9259, "UnknownErr"); | |||
9260 | ||||
9261 | for (const auto& elementToInvalidate : elementsToInvalidate) { | |||
9262 | MOZ_ASSERT(elementToInvalidate)do { static_assert( mozilla::detail::AssertionConditionType< decltype(elementToInvalidate)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(elementToInvalidate))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("elementToInvalidate" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9262); AnnotateMozCrashReason("MOZ_ASSERT" "(" "elementToInvalidate" ")"); do { *((volatile int*)__null) = 9262; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9263 | ||||
9264 | elementToInvalidate->Invalidate(); | |||
9265 | } | |||
9266 | ||||
9267 | return true; | |||
9268 | } | |||
9269 | ||||
9270 | void Database::Invalidate() { | |||
9271 | AssertIsOnBackgroundThread(); | |||
9272 | ||||
9273 | if (mInvalidated) { | |||
9274 | return; | |||
9275 | } | |||
9276 | ||||
9277 | mInvalidated.Flip(); | |||
9278 | ||||
9279 | if (mActorWasAlive && !mActorDestroyed) { | |||
9280 | Unused << SendInvalidate(); | |||
9281 | } | |||
9282 | ||||
9283 | QM_WARNONLY_TRY(OkIf(InvalidateAll(mTransactions))){auto tryResult3251 = (OkIf(InvalidateAll(mTransactions))); static_assert (std::is_empty_v<typename decltype(tryResult3251)::ok_type >); if ((__builtin_expect(!!(tryResult3251.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(InvalidateAll(mTransactions))" , tryResult3251.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9283, mozilla::dom::quota::Severity::Warning); }}; | |||
9284 | ||||
9285 | MOZ_ALWAYS_TRUE(CloseInternal())do { if ((__builtin_expect(!!(CloseInternal()), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "CloseInternal()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9285); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "CloseInternal()" ")"); do { *((volatile int*)__null) = 9285; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
9286 | } | |||
9287 | ||||
9288 | nsresult Database::EnsureConnection() { | |||
9289 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9289); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 9289; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9290 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9290); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 9290; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9291 | ||||
9292 | AUTO_PROFILER_LABEL("Database::EnsureConnection", DOM)mozilla::AutoProfilerLabel raiiObject9292( "Database::EnsureConnection" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
9293 | ||||
9294 | if (!mConnection || !mConnection->HasStorageConnection()) { | |||
9295 | QM_TRY_UNWRAP(mConnection, gConnectionPool->GetOrCreateConnection(*this))auto tryResult3252 = (gConnectionPool->GetOrCreateConnection (*this)); if ((__builtin_expect(!!(tryResult3252.isErr()), 0) )) { mozilla::dom::quota::HandleError("gConnectionPool->GetOrCreateConnection(*this)" , tryResult3252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9295, mozilla::dom::quota::Severity::Error); return tryResult3252 .propagateErr(); } mConnection = tryResult3252.unwrap();; | |||
9296 | } | |||
9297 | ||||
9298 | AssertIsOnConnectionThread(); | |||
9299 | ||||
9300 | return NS_OK; | |||
9301 | } | |||
9302 | ||||
9303 | bool Database::RegisterTransaction(TransactionBase& aTransaction) { | |||
9304 | AssertIsOnBackgroundThread(); | |||
9305 | MOZ_ASSERT(!mTransactions.Contains(&aTransaction))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransactions.Contains(&aTransaction))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mTransactions.Contains(&aTransaction)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Contains(&aTransaction)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9305); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Contains(&aTransaction)" ")"); do { *((volatile int*)__null) = 9305; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9306 | MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9306); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")"); do { *((volatile int*)__null) = 9306; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9307 | MOZ_ASSERT(!mInvalidated)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mInvalidated)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mInvalidated))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mInvalidated", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9307); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInvalidated" ")"); do { *((volatile int*)__null) = 9307; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9308 | MOZ_ASSERT(!mClosed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mClosed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mClosed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mClosed", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mClosed" ")" ); do { *((volatile int*)__null) = 9308; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9309 | ||||
9310 | if (NS_WARN_IF(!mTransactions.Insert(&aTransaction, fallible))NS_warn_if_impl(!mTransactions.Insert(&aTransaction, fallible ), "!mTransactions.Insert(&aTransaction, fallible)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9310)) { | |||
9311 | return false; | |||
9312 | } | |||
9313 | ||||
9314 | return true; | |||
9315 | } | |||
9316 | ||||
9317 | void Database::UnregisterTransaction(TransactionBase& aTransaction) { | |||
9318 | AssertIsOnBackgroundThread(); | |||
9319 | MOZ_ASSERT(mTransactions.Contains(&aTransaction))do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransactions.Contains(&aTransaction))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mTransactions.Contains(&aTransaction)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransactions.Contains(&aTransaction)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransactions.Contains(&aTransaction)" ")"); do { *((volatile int*)__null) = 9319; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9320 | ||||
9321 | mTransactions.Remove(&aTransaction); | |||
9322 | ||||
9323 | MaybeCloseConnection(); | |||
9324 | } | |||
9325 | ||||
9326 | void Database::SetActorAlive() { | |||
9327 | AssertIsOnBackgroundThread(); | |||
9328 | MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9328); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"); do { *((volatile int*)__null) = 9328; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9329 | ||||
9330 | mActorWasAlive.Flip(); | |||
9331 | } | |||
9332 | ||||
9333 | void Database::MapBlob(const IPCBlob& aIPCBlob, | |||
9334 | SafeRefPtr<DatabaseFileInfo> aFileInfo) { | |||
9335 | AssertIsOnBackgroundThread(); | |||
9336 | ||||
9337 | const RemoteLazyStream& stream = aIPCBlob.inputStream(); | |||
9338 | MOZ_ASSERT(stream.type() == RemoteLazyStream::TRemoteLazyInputStream)do { static_assert( mozilla::detail::AssertionConditionType< decltype(stream.type() == RemoteLazyStream::TRemoteLazyInputStream )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(stream.type() == RemoteLazyStream::TRemoteLazyInputStream ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "stream.type() == RemoteLazyStream::TRemoteLazyInputStream", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9338); AnnotateMozCrashReason("MOZ_ASSERT" "(" "stream.type() == RemoteLazyStream::TRemoteLazyInputStream" ")"); do { *((volatile int*)__null) = 9338; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9339 | ||||
9340 | nsID id{}; | |||
9341 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (stream.get_RemoteLazyInputStream()->GetInternalStreamID(id ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9342); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))" ")"); do { *((volatile int*)__null) = 9342; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | |||
9342 | stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (stream.get_RemoteLazyInputStream()->GetInternalStreamID(id ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9342); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))" ")"); do { *((volatile int*)__null) = 9342; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
9343 | ||||
9344 | MOZ_ASSERT(!mMappedBlobs.Contains(id))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mMappedBlobs.Contains(id))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mMappedBlobs.Contains(id))) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mMappedBlobs.Contains(id)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9344); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMappedBlobs.Contains(id)" ")"); do { *((volatile int*)__null) = 9344; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9345 | mMappedBlobs.InsertOrUpdate(id, std::move(aFileInfo)); | |||
9346 | ||||
9347 | RefPtr<UnmapBlobCallback> callback = | |||
9348 | new UnmapBlobCallback(SafeRefPtrFromThis()); | |||
9349 | ||||
9350 | auto storage = RemoteLazyInputStreamStorage::Get(); | |||
9351 | MOZ_ASSERT(storage.isOk())do { static_assert( mozilla::detail::AssertionConditionType< decltype(storage.isOk())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(storage.isOk()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("storage.isOk()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9351); AnnotateMozCrashReason("MOZ_ASSERT" "(" "storage.isOk()" ")"); do { *((volatile int*)__null) = 9351; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9352 | storage.inspect()->StoreCallback(id, callback); | |||
9353 | } | |||
9354 | ||||
9355 | void Database::Stringify(nsACString& aResult) const { | |||
9356 | AssertIsOnBackgroundThread(); | |||
9357 | ||||
9358 | constexpr auto kQuotaGenericDelimiterString = "|"_ns; | |||
9359 | ||||
9360 | aResult.Append( | |||
9361 | "DirectoryLock:"_ns + IntToCString(!!mDirectoryLock) + | |||
9362 | kQuotaGenericDelimiterString + | |||
9363 | // | |||
9364 | "Transactions:"_ns + IntToCString(mTransactions.Count()) + | |||
9365 | kQuotaGenericDelimiterString + | |||
9366 | // | |||
9367 | "OtherProcessActor:"_ns + | |||
9368 | IntToCString( | |||
9369 | BackgroundParent::IsOtherProcessActor(GetBackgroundParent())) + | |||
9370 | kQuotaGenericDelimiterString + | |||
9371 | // | |||
9372 | "Origin:"_ns + AnonymizedOriginString(mOriginMetadata.mOrigin) + | |||
9373 | kQuotaGenericDelimiterString + | |||
9374 | // | |||
9375 | "PersistenceType:"_ns + PersistenceTypeToString(mPersistenceType) + | |||
9376 | kQuotaGenericDelimiterString + | |||
9377 | // | |||
9378 | "Closed:"_ns + IntToCString(static_cast<bool>(mClosed)) + | |||
9379 | kQuotaGenericDelimiterString + | |||
9380 | // | |||
9381 | "Invalidated:"_ns + IntToCString(static_cast<bool>(mInvalidated)) + | |||
9382 | kQuotaGenericDelimiterString + | |||
9383 | // | |||
9384 | "ActorWasAlive:"_ns + IntToCString(static_cast<bool>(mActorWasAlive)) + | |||
9385 | kQuotaGenericDelimiterString + | |||
9386 | // | |||
9387 | "ActorDestroyed:"_ns + IntToCString(static_cast<bool>(mActorDestroyed))); | |||
9388 | } | |||
9389 | ||||
9390 | SafeRefPtr<DatabaseFileInfo> Database::GetBlob(const IPCBlob& aIPCBlob) { | |||
9391 | AssertIsOnBackgroundThread(); | |||
9392 | ||||
9393 | RefPtr<RemoteLazyInputStream> lazyStream; | |||
9394 | switch (aIPCBlob.inputStream().type()) { | |||
9395 | case RemoteLazyStream::TIPCStream: { | |||
9396 | const InputStreamParams& inputStreamParams = | |||
9397 | aIPCBlob.inputStream().get_IPCStream().stream(); | |||
9398 | if (inputStreamParams.type() != | |||
9399 | InputStreamParams::TRemoteLazyInputStreamParams) { | |||
9400 | return nullptr; | |||
9401 | } | |||
9402 | lazyStream = inputStreamParams.get_RemoteLazyInputStreamParams().stream(); | |||
9403 | break; | |||
9404 | } | |||
9405 | case RemoteLazyStream::TRemoteLazyInputStream: | |||
9406 | lazyStream = aIPCBlob.inputStream().get_RemoteLazyInputStream(); | |||
9407 | break; | |||
9408 | default: | |||
9409 | MOZ_ASSERT_UNREACHABLE("Unknown RemoteLazyStream type")do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" "MOZ_ASSERT_UNREACHABLE: " "Unknown RemoteLazyStream type" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9409); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "MOZ_ASSERT_UNREACHABLE: " "Unknown RemoteLazyStream type" ")" ); do { *((volatile int*)__null) = 9409; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9410 | return nullptr; | |||
9411 | } | |||
9412 | ||||
9413 | if (!lazyStream) { | |||
9414 | MOZ_ASSERT_UNREACHABLE("Unexpected null stream")do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" "MOZ_ASSERT_UNREACHABLE: " "Unexpected null stream" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "MOZ_ASSERT_UNREACHABLE: " "Unexpected null stream" ")"); do { *((volatile int*)__null) = 9414; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | |||
9415 | return nullptr; | |||
9416 | } | |||
9417 | ||||
9418 | nsID id{}; | |||
9419 | nsresult rv = lazyStream->GetInternalStreamID(id); | |||
9420 | if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { | |||
9421 | MOZ_ASSERT_UNREACHABLE(do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" "MOZ_ASSERT_UNREACHABLE: " "Received RemoteLazyInputStream doesn't have an actor connection" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9422); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "MOZ_ASSERT_UNREACHABLE: " "Received RemoteLazyInputStream doesn't have an actor connection" ")"); do { *((volatile int*)__null) = 9422; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
9422 | "Received RemoteLazyInputStream doesn't have an actor connection")do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" "MOZ_ASSERT_UNREACHABLE: " "Received RemoteLazyInputStream doesn't have an actor connection" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9422); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "MOZ_ASSERT_UNREACHABLE: " "Received RemoteLazyInputStream doesn't have an actor connection" ")"); do { *((volatile int*)__null) = 9422; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9423 | return nullptr; | |||
9424 | } | |||
9425 | ||||
9426 | const auto fileInfo = mMappedBlobs.Lookup(id); | |||
9427 | return fileInfo ? fileInfo->clonePtr() : nullptr; | |||
9428 | } | |||
9429 | ||||
9430 | void Database::UnmapBlob(const nsID& aID) { | |||
9431 | AssertIsOnBackgroundThread(); | |||
9432 | ||||
9433 | MOZ_ASSERT_IF(!mAllBlobsUnmapped, mMappedBlobs.Contains(aID))do { if (!mAllBlobsUnmapped) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(mMappedBlobs.Contains(aID ))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mMappedBlobs.Contains(aID)))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("mMappedBlobs.Contains(aID)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9433); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMappedBlobs.Contains(aID)" ")"); do { *((volatile int*)__null) = 9433; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
9434 | mMappedBlobs.Remove(aID); | |||
9435 | } | |||
9436 | ||||
9437 | void Database::UnmapAllBlobs() { | |||
9438 | AssertIsOnBackgroundThread(); | |||
9439 | ||||
9440 | #ifdef DEBUG1 | |||
9441 | mAllBlobsUnmapped = true; | |||
9442 | #endif | |||
9443 | ||||
9444 | mMappedBlobs.Clear(); | |||
9445 | } | |||
9446 | ||||
9447 | bool Database::CloseInternal() { | |||
9448 | AssertIsOnBackgroundThread(); | |||
9449 | ||||
9450 | if (mClosed) { | |||
9451 | if (NS_WARN_IF(!IsInvalidated())NS_warn_if_impl(!IsInvalidated(), "!IsInvalidated()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9451)) { | |||
9452 | // Signal misbehaving child for sending the close message twice. | |||
9453 | return false; | |||
9454 | } | |||
9455 | ||||
9456 | // Ignore harmless race when we just invalidated the database. | |||
9457 | return true; | |||
9458 | } | |||
9459 | ||||
9460 | mClosed.Flip(); | |||
9461 | ||||
9462 | if (gConnectionPool) { | |||
9463 | gConnectionPool->CloseDatabaseWhenIdle(Id()); | |||
9464 | } | |||
9465 | ||||
9466 | DatabaseActorInfo* info; | |||
9467 | MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(Id(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get( Id(), &info)), 1))) { } else { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(false)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "gLiveDatabaseHashtable->Get(Id(), &info)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9467); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "gLiveDatabaseHashtable->Get(Id(), &info)" ")") ; do { *((volatile int*)__null) = 9467; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
9468 | ||||
9469 | MOZ_ASSERT(info->mLiveDatabases.Contains(this))do { static_assert( mozilla::detail::AssertionConditionType< decltype(info->mLiveDatabases.Contains(this))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(info->mLiveDatabases.Contains(this)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("info->mLiveDatabases.Contains(this)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9469); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.Contains(this)" ")"); do { *((volatile int*)__null) = 9469; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9470 | ||||
9471 | if (info->mWaitingFactoryOp) { | |||
9472 | info->mWaitingFactoryOp->NoteDatabaseClosed(this); | |||
9473 | } | |||
9474 | ||||
9475 | MaybeCloseConnection(); | |||
9476 | ||||
9477 | return true; | |||
9478 | } | |||
9479 | ||||
9480 | void Database::MaybeCloseConnection() { | |||
9481 | AssertIsOnBackgroundThread(); | |||
9482 | ||||
9483 | if (!mTransactions.Count() && IsClosed() && mDirectoryLock) { | |||
9484 | nsCOMPtr<nsIRunnable> callback = | |||
9485 | NewRunnableMethod("dom::indexedDB::Database::ConnectionClosedCallback", | |||
9486 | this, &Database::ConnectionClosedCallback); | |||
9487 | ||||
9488 | RefPtr<WaitForTransactionsHelper> helper = | |||
9489 | new WaitForTransactionsHelper(Id(), callback); | |||
9490 | helper->WaitForTransactions(); | |||
9491 | } | |||
9492 | } | |||
9493 | ||||
9494 | void Database::ConnectionClosedCallback() { | |||
9495 | AssertIsOnBackgroundThread(); | |||
9496 | MOZ_ASSERT(mClosed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mClosed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mClosed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mClosed", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9496); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mClosed" ")" ); do { *((volatile int*)__null) = 9496; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9497 | MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransactions.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()" ")"); do { *((volatile int*)__null) = 9497; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9498 | ||||
9499 | DropDirectoryLock(mDirectoryLock); | |||
9500 | ||||
9501 | CleanupMetadata(); | |||
9502 | ||||
9503 | UnmapAllBlobs(); | |||
9504 | ||||
9505 | if (IsInvalidated() && IsActorAlive()) { | |||
9506 | // Step 3 and 4 of "5.2 Closing a Database": | |||
9507 | // 1. Wait for all transactions to complete. | |||
9508 | // 2. Fire a close event if forced flag is set, i.e., IsInvalidated() in our | |||
9509 | // implementation. | |||
9510 | Unused << SendCloseAfterInvalidationComplete(); | |||
9511 | } | |||
9512 | } | |||
9513 | ||||
9514 | void Database::CleanupMetadata() { | |||
9515 | AssertIsOnBackgroundThread(); | |||
9516 | ||||
9517 | DatabaseActorInfo* info; | |||
9518 | MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(Id(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get( Id(), &info)), 1))) { } else { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(false)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "gLiveDatabaseHashtable->Get(Id(), &info)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9518); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "gLiveDatabaseHashtable->Get(Id(), &info)" ")") ; do { *((volatile int*)__null) = 9518; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
9519 | MOZ_ALWAYS_TRUE(info->mLiveDatabases.RemoveElement(this))do { if ((__builtin_expect(!!(info->mLiveDatabases.RemoveElement (this)), 1))) { } else { do { static_assert( mozilla::detail:: AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "info->mLiveDatabases.RemoveElement(this)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9519); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "info->mLiveDatabases.RemoveElement(this)" ")"); do { *((volatile int*)__null) = 9519; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); } } while (false ); | |||
9520 | ||||
9521 | QuotaManager::MaybeRecordQuotaClientShutdownStep( | |||
9522 | quota::Client::IDB, "Live database entry removed"_ns); | |||
9523 | ||||
9524 | if (info->mLiveDatabases.IsEmpty()) { | |||
9525 | MOZ_ASSERT(!info->mWaitingFactoryOp ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mWaitingFactoryOp || !info->mWaitingFactoryOp ->HasBlockedDatabases())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()" ")"); do { *((volatile int*)__null) = 9526; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
9526 | !info->mWaitingFactoryOp->HasBlockedDatabases())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mWaitingFactoryOp || !info->mWaitingFactoryOp ->HasBlockedDatabases())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()" ")"); do { *((volatile int*)__null) = 9526; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9527 | gLiveDatabaseHashtable->Remove(Id()); | |||
9528 | ||||
9529 | QuotaManager::MaybeRecordQuotaClientShutdownStep( | |||
9530 | quota::Client::IDB, "gLiveDatabaseHashtable entry removed"_ns); | |||
9531 | } | |||
9532 | ||||
9533 | // Match the IncreaseBusyCount in OpenDatabaseOp::EnsureDatabaseActor(). | |||
9534 | DecreaseBusyCount(); | |||
9535 | } | |||
9536 | ||||
9537 | void Database::ActorDestroy(ActorDestroyReason aWhy) { | |||
9538 | AssertIsOnBackgroundThread(); | |||
9539 | ||||
9540 | mActorDestroyed.Flip(); | |||
9541 | ||||
9542 | if (!IsInvalidated()) { | |||
9543 | Invalidate(); | |||
9544 | } | |||
9545 | } | |||
9546 | ||||
9547 | PBackgroundIDBDatabaseFileParent* | |||
9548 | Database::AllocPBackgroundIDBDatabaseFileParent(const IPCBlob& aIPCBlob) { | |||
9549 | AssertIsOnBackgroundThread(); | |||
9550 | ||||
9551 | SafeRefPtr<DatabaseFileInfo> fileInfo = GetBlob(aIPCBlob); | |||
9552 | RefPtr<DatabaseFile> actor; | |||
9553 | ||||
9554 | if (fileInfo) { | |||
9555 | actor = new DatabaseFile(std::move(fileInfo)); | |||
9556 | } else { | |||
9557 | // This is a blob we haven't seen before. | |||
9558 | fileInfo = mFileManager->CreateFileInfo(); | |||
9559 | if (NS_WARN_IF(!fileInfo)NS_warn_if_impl(!fileInfo, "!fileInfo", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9559)) { | |||
9560 | return nullptr; | |||
9561 | } | |||
9562 | ||||
9563 | actor = new DatabaseFile(IPCBlobUtils::Deserialize(aIPCBlob), | |||
9564 | std::move(fileInfo)); | |||
9565 | } | |||
9566 | ||||
9567 | MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(actor)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("actor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9567); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")") ; do { *((volatile int*)__null) = 9567; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9568 | ||||
9569 | return actor.forget().take(); | |||
9570 | } | |||
9571 | ||||
9572 | bool Database::DeallocPBackgroundIDBDatabaseFileParent( | |||
9573 | PBackgroundIDBDatabaseFileParent* aActor) { | |||
9574 | AssertIsOnBackgroundThread(); | |||
9575 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9575); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { *((volatile int*)__null) = 9575; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9576 | ||||
9577 | RefPtr<DatabaseFile> actor = dont_AddRef(static_cast<DatabaseFile*>(aActor)); | |||
9578 | return true; | |||
9579 | } | |||
9580 | ||||
9581 | already_AddRefed<PBackgroundIDBTransactionParent> | |||
9582 | Database::AllocPBackgroundIDBTransactionParent( | |||
9583 | const nsTArray<nsString>& aObjectStoreNames, const Mode& aMode, | |||
9584 | const Durability& aDurability) { | |||
9585 | AssertIsOnBackgroundThread(); | |||
9586 | ||||
9587 | // Once a database is closed it must not try to open new transactions. | |||
9588 | if (NS_WARN_IF(mClosed)NS_warn_if_impl(mClosed, "mClosed", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9588)) { | |||
9589 | MOZ_ASSERT_UNLESS_FUZZING(mInvalidated)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInvalidated)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mInvalidated))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInvalidated", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9589); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated" ")"); do { *((volatile int*)__null) = 9589; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9590 | return nullptr; | |||
9591 | } | |||
9592 | ||||
9593 | if (NS_AUUF_OR_WARN_IF(aObjectStoreNames.IsEmpty())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aObjectStoreNames.IsEmpty()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9593); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aObjectStoreNames.IsEmpty()" ")"); do { *((volatile int*)__null ) = 9593; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((aObjectStoreNames.IsEmpty ()))) { | |||
9594 | return nullptr; | |||
9595 | } | |||
9596 | ||||
9597 | if (NS_AUUF_OR_WARN_IF(aMode != IDBTransaction::Mode::ReadOnly &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9600); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")"); do { *((volatile int*)__null) = 9600; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction ::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode ::Cleanup)) | |||
9598 | aMode != IDBTransaction::Mode::ReadWrite &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9600); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")"); do { *((volatile int*)__null) = 9600; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction ::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode ::Cleanup)) | |||
9599 | aMode != IDBTransaction::Mode::ReadWriteFlush &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9600); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")"); do { *((volatile int*)__null) = 9600; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction ::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode ::Cleanup)) | |||
9600 | aMode != IDBTransaction::Mode::Cleanup)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9600); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")"); do { *((volatile int*)__null) = 9600; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction ::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode ::Cleanup))) { | |||
9601 | return nullptr; | |||
9602 | } | |||
9603 | ||||
9604 | if (NS_AUUF_OR_WARN_IF(aDurability != IDBTransaction::Durability::Default &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9606); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed" ")"); do { *((volatile int*)__null) = 9606; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed)) | |||
9605 | aDurability != IDBTransaction::Durability::Strict &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9606); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed" ")"); do { *((volatile int*)__null) = 9606; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed)) | |||
9606 | aDurability != IDBTransaction::Durability::Relaxed)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9606); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed" ")"); do { *((volatile int*)__null) = 9606; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed))) { | |||
9607 | return nullptr; | |||
9608 | } | |||
9609 | ||||
9610 | const ObjectStoreTable& objectStores = mMetadata->mObjectStores; | |||
9611 | const uint32_t nameCount = aObjectStoreNames.Length(); | |||
9612 | ||||
9613 | if (NS_AUUF_OR_WARN_IF(nameCount > objectStores.Count())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "nameCount > objectStores.Count()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9613); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "nameCount > objectStores.Count()" ")"); do { *((volatile int*)__null) = 9613; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((nameCount > objectStores.Count()))) { | |||
9614 | return nullptr; | |||
9615 | } | |||
9616 | ||||
9617 | QM_TRY_UNWRAP(auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9618 | auto objectStoreMetadatas,auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9619 | TransformIntoNewArrayAbortOnErr(auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9620 | aObjectStoreNames,auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9621 | [lastName = Maybe<const nsString&>{},auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9622 | &objectStores](const nsString& name) mutableauto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9623 | -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> {auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9624 | if (lastName) {auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9625 | // Make sure that this name is sorted properly and not aauto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9626 | // duplicate.auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9627 | if (NS_AUUF_OR_WARN_IF(name <= lastName.ref())) {auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9628 | return Err(NS_ERROR_FAILURE);auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9629 | }auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9630 | }auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9631 | lastName = SomeRef(name);auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9632 | ||||
9633 | const auto foundIt =auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9634 | std::find_if(objectStores.cbegin(), objectStores.cend(),auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9635 | [&name](const auto& entry) {auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9636 | const auto& value = entry.GetData();auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9637 | MOZ_ASSERT(entry.GetKey());auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9638 | return name == value->mCommonMetadata.name() &&auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9639 | !value->mDeleted;auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9640 | });auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9641 | if (foundIt == objectStores.cend()) {auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9642 | MOZ_ASSERT_UNLESS_FUZZING(false, "ObjectStore not found.");auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9643 | return Err(NS_ERROR_FAILURE);auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9644 | }auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9645 | ||||
9646 | return foundIt->GetData().clonePtr();auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9647 | },auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9648 | fallible),auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap(); | |||
9649 | nullptr)auto tryResult3253 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { *((volatile int*)__null ) = 9627; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((name <= lastName.ref ()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef( name); const auto foundIt = std::find_if(objectStores.cbegin( ), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(entry.GetKey())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("entry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "ObjectStore not found." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult3253.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3253.unwrapErr(); mozilla::dom::quota ::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9649, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9627); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9627; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9637); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9637; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 9642); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9642; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult3253 .unwrap();; | |||
9650 | ||||
9651 | return MakeSafeRefPtr<NormalTransaction>(SafeRefPtrFromThis(), aMode, | |||
9652 | aDurability, | |||
9653 | std::move(objectStoreMetadatas)) | |||
9654 | .forget(); | |||
9655 | } | |||
9656 | ||||
9657 | mozilla::ipc::IPCResult Database::RecvPBackgroundIDBTransactionConstructor( | |||
9658 | PBackgroundIDBTransactionParent* aActor, | |||
9659 | nsTArray<nsString>&& aObjectStoreNames, const Mode& aMode, | |||
9660 | const Durability& aDurability) { | |||
9661 | AssertIsOnBackgroundThread(); | |||
9662 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9662); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { *((volatile int*)__null) = 9662; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9663 | MOZ_ASSERT(!aObjectStoreNames.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aObjectStoreNames.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aObjectStoreNames.IsEmpty() ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!aObjectStoreNames.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9663); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreNames.IsEmpty()" ")"); do { *((volatile int*)__null) = 9663; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9664 | MOZ_ASSERT(aMode == IDBTransaction::Mode::ReadOnly ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction ::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMode == IDBTransaction::Mode ::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction ::Mode::Cleanup))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9667); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" ")"); do { *((volatile int*)__null) = 9667; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
9665 | aMode == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction ::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMode == IDBTransaction::Mode ::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction ::Mode::Cleanup))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9667); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" ")"); do { *((volatile int*)__null) = 9667; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
9666 | aMode == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction ::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMode == IDBTransaction::Mode ::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction ::Mode::Cleanup))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9667); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" ")"); do { *((volatile int*)__null) = 9667; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
9667 | aMode == IDBTransaction::Mode::Cleanup)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction ::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMode == IDBTransaction::Mode ::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction ::Mode::Cleanup))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9667); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" ")"); do { *((volatile int*)__null) = 9667; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9668 | MOZ_ASSERT(aDurability == IDBTransaction::Durability::Default ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDurability == IDBTransaction ::Durability::Default || aDurability == IDBTransaction::Durability ::Strict || aDurability == IDBTransaction::Durability::Relaxed ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9670); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed" ")"); do { *((volatile int*)__null) = 9670; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
9669 | aDurability == IDBTransaction::Durability::Strict ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDurability == IDBTransaction ::Durability::Default || aDurability == IDBTransaction::Durability ::Strict || aDurability == IDBTransaction::Durability::Relaxed ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9670); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed" ")"); do { *((volatile int*)__null) = 9670; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
9670 | aDurability == IDBTransaction::Durability::Relaxed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDurability == IDBTransaction ::Durability::Default || aDurability == IDBTransaction::Durability ::Strict || aDurability == IDBTransaction::Durability::Relaxed ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9670); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed" ")"); do { *((volatile int*)__null) = 9670; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9671 | MOZ_ASSERT(!mClosed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mClosed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mClosed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mClosed", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9671); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mClosed" ")" ); do { *((volatile int*)__null) = 9671; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9672 | ||||
9673 | if (IsInvalidated()) { | |||
9674 | // This is an expected race. We don't want the child to die here, just don't | |||
9675 | // actually do any work. | |||
9676 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
9677 | } | |||
9678 | ||||
9679 | if (!gConnectionPool) { | |||
9680 | gConnectionPool = new ConnectionPool(); | |||
9681 | } | |||
9682 | ||||
9683 | auto* transaction = static_cast<NormalTransaction*>(aActor); | |||
9684 | ||||
9685 | RefPtr<StartTransactionOp> startOp = new StartTransactionOp( | |||
9686 | SafeRefPtr{transaction, AcquireStrongRefFromRawPtr{}}); | |||
9687 | ||||
9688 | uint64_t transactionId = startOp->StartOnConnectionPool( | |||
9689 | GetLoggingInfo()->Id(), mMetadata->mDatabaseId, | |||
9690 | transaction->LoggingSerialNumber(), aObjectStoreNames, | |||
9691 | aMode != IDBTransaction::Mode::ReadOnly); | |||
9692 | ||||
9693 | transaction->Init(transactionId); | |||
9694 | ||||
9695 | if (NS_WARN_IF(!RegisterTransaction(*transaction))NS_warn_if_impl(!RegisterTransaction(*transaction), "!RegisterTransaction(*transaction)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9695)) { | |||
9696 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9696, "UnknownErr"); | |||
9697 | transaction->Abort(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, /* aForce */ false); | |||
9698 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
9699 | } | |||
9700 | ||||
9701 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
9702 | } | |||
9703 | ||||
9704 | mozilla::ipc::IPCResult Database::RecvDeleteMe() { | |||
9705 | AssertIsOnBackgroundThread(); | |||
9706 | MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"); do { *((volatile int*)__null) = 9706; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9707 | ||||
9708 | QM_WARNONLY_TRY(OkIf(PBackgroundIDBDatabaseParent::Send__delete__(this))){auto tryResult3254 = (OkIf(PBackgroundIDBDatabaseParent::Send__delete__ (this))); static_assert(std::is_empty_v<typename decltype( tryResult3254)::ok_type>); if ((__builtin_expect(!!(tryResult3254 .isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBDatabaseParent::Send__delete__(this))" , tryResult3254.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9708, mozilla::dom::quota::Severity::Warning); }}; | |||
9709 | ||||
9710 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
9711 | } | |||
9712 | ||||
9713 | mozilla::ipc::IPCResult Database::RecvBlocked() { | |||
9714 | AssertIsOnBackgroundThread(); | |||
9715 | ||||
9716 | if (NS_WARN_IF(mClosed)NS_warn_if_impl(mClosed, "mClosed", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9716)) { | |||
9717 | // Even though the sender checks the DB for not being closed, too, | |||
9718 | // there is a potential race with an ongoing origin clearing which | |||
9719 | // might have invalidated the DB in the meantime. Just ignore. | |||
9720 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
9721 | } | |||
9722 | ||||
9723 | DatabaseActorInfo* info; | |||
9724 | MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(Id(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get( Id(), &info)), 1))) { } else { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(false)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "gLiveDatabaseHashtable->Get(Id(), &info)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9724); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "gLiveDatabaseHashtable->Get(Id(), &info)" ")") ; do { *((volatile int*)__null) = 9724; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
9725 | MOZ_ASSERT(info->mLiveDatabases.Contains(this))do { static_assert( mozilla::detail::AssertionConditionType< decltype(info->mLiveDatabases.Contains(this))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(info->mLiveDatabases.Contains(this)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("info->mLiveDatabases.Contains(this)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9725); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.Contains(this)" ")"); do { *((volatile int*)__null) = 9725; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9726 | ||||
9727 | if (NS_WARN_IF(!info->mWaitingFactoryOp)NS_warn_if_impl(!info->mWaitingFactoryOp, "!info->mWaitingFactoryOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9727)) { | |||
9728 | return IPC_FAIL(this, "Database info has no mWaitingFactoryOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Database info has no mWaitingFactoryOp!" )); | |||
9729 | } | |||
9730 | ||||
9731 | info->mWaitingFactoryOp->NoteDatabaseBlocked(this); | |||
9732 | ||||
9733 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
9734 | } | |||
9735 | ||||
9736 | mozilla::ipc::IPCResult Database::RecvClose() { | |||
9737 | AssertIsOnBackgroundThread(); | |||
9738 | ||||
9739 | if (NS_WARN_IF(!CloseInternal())NS_warn_if_impl(!CloseInternal(), "!CloseInternal()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9739)) { | |||
9740 | return IPC_FAIL(this, "CloseInternal failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("CloseInternal failed!" )); | |||
9741 | } | |||
9742 | ||||
9743 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
9744 | } | |||
9745 | ||||
9746 | void Database::StartTransactionOp::RunOnConnectionThread() { | |||
9747 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9747); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 9747; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9748 | MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!HasFailed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9748); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { *((volatile int*)__null) = 9748; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9749 | ||||
9750 | IDB_LOG_MARK_PARENT_TRANSACTION("Beginning database work", "DB Start",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" ": " "Beginning database work" , "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start", mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransactionLoggingSerialNumber) | |||
9751 | IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" ": " "Beginning database work" , "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start", mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransactionLoggingSerialNumber) | |||
9752 | mTransactionLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" ": " "Beginning database work" , "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start", mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransactionLoggingSerialNumber); | |||
9753 | ||||
9754 | TransactionDatabaseOperationBase::RunOnConnectionThread(); | |||
9755 | } | |||
9756 | ||||
9757 | nsresult Database::StartTransactionOp::DoDatabaseWork( | |||
9758 | DatabaseConnection* aConnection) { | |||
9759 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9759); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 9759; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9760 | aConnection->AssertIsOnConnectionThread(); | |||
9761 | ||||
9762 | Transaction().SetActiveOnConnectionThread(); | |||
9763 | ||||
9764 | if (Transaction().GetMode() == IDBTransaction::Mode::Cleanup) { | |||
9765 | DebugOnly<nsresult> rv = aConnection->DisableQuotaChecks(); | |||
9766 | NS_WARNING_ASSERTION(NS_SUCCEEDED(rv),do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1 ))))) { NS_DebugBreak(NS_DEBUG_WARNING, "DisableQuotaChecks failed, trying to continue " "cleanup transaction with quota checks enabled", "NS_SUCCEEDED(rv)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9768); } } while (false) | |||
9767 | "DisableQuotaChecks failed, trying to continue "do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1 ))))) { NS_DebugBreak(NS_DEBUG_WARNING, "DisableQuotaChecks failed, trying to continue " "cleanup transaction with quota checks enabled", "NS_SUCCEEDED(rv)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9768); } } while (false) | |||
9768 | "cleanup transaction with quota checks enabled")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1 ))))) { NS_DebugBreak(NS_DEBUG_WARNING, "DisableQuotaChecks failed, trying to continue " "cleanup transaction with quota checks enabled", "NS_SUCCEEDED(rv)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9768); } } while (false); | |||
9769 | } | |||
9770 | ||||
9771 | if (Transaction().GetMode() != IDBTransaction::Mode::ReadOnly) { | |||
9772 | QM_TRY(MOZ_TO_RESULT({auto tryResult3255 = (ToResult(aConnection->BeginWriteTransaction (Transaction().GetDurability()))); static_assert(std::is_empty_v <typename decltype(tryResult3255)::ok_type>); if ((__builtin_expect (!!(tryResult3255.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))" , tryResult3255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9773, mozilla::dom::quota::Severity::Error); return tryResult3255 .propagateErr(); }} | |||
9773 | aConnection->BeginWriteTransaction(Transaction().GetDurability()))){auto tryResult3255 = (ToResult(aConnection->BeginWriteTransaction (Transaction().GetDurability()))); static_assert(std::is_empty_v <typename decltype(tryResult3255)::ok_type>); if ((__builtin_expect (!!(tryResult3255.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))" , tryResult3255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9773, mozilla::dom::quota::Severity::Error); return tryResult3255 .propagateErr(); }}; | |||
9774 | } | |||
9775 | ||||
9776 | return NS_OK; | |||
9777 | } | |||
9778 | ||||
9779 | nsresult Database::StartTransactionOp::SendSuccessResult() { | |||
9780 | // We don't need to do anything here. | |||
9781 | return NS_OK; | |||
9782 | } | |||
9783 | ||||
9784 | bool Database::StartTransactionOp::SendFailureResult( | |||
9785 | nsresult /* aResultCode */) { | |||
9786 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9786, "UnknownErr"); | |||
9787 | ||||
9788 | // Abort the transaction. | |||
9789 | return false; | |||
9790 | } | |||
9791 | ||||
9792 | void Database::StartTransactionOp::Cleanup() { | |||
9793 | #ifdef DEBUG1 | |||
9794 | // StartTransactionOp is not a normal database operation that is tied to an | |||
9795 | // actor. Do this to make our assertions happy. | |||
9796 | NoteActorDestroyed(); | |||
9797 | #endif | |||
9798 | ||||
9799 | TransactionDatabaseOperationBase::Cleanup(); | |||
9800 | } | |||
9801 | ||||
9802 | /******************************************************************************* | |||
9803 | * TransactionBase | |||
9804 | ******************************************************************************/ | |||
9805 | ||||
9806 | TransactionBase::TransactionBase(SafeRefPtr<Database> aDatabase, Mode aMode, | |||
9807 | Durability aDurability) | |||
9808 | : mDatabase(std::move(aDatabase)), | |||
9809 | mDatabaseId(mDatabase->Id()), | |||
9810 | mLoggingSerialNumber( | |||
9811 | mDatabase->GetLoggingInfo()->NextTransactionSN(aMode)), | |||
9812 | mActiveRequestCount(0), | |||
9813 | mInvalidatedOnAnyThread(false), | |||
9814 | mMode(aMode), | |||
9815 | mDurability(aDurability), | |||
9816 | mResultCode(NS_OK) { | |||
9817 | AssertIsOnBackgroundThread(); | |||
9818 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9818); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { *((volatile int*)__null) = 9818; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9819 | MOZ_ASSERT(mLoggingSerialNumber)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLoggingSerialNumber)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLoggingSerialNumber))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mLoggingSerialNumber" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9819); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingSerialNumber" ")"); do { *((volatile int*)__null) = 9819; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9820 | } | |||
9821 | ||||
9822 | TransactionBase::~TransactionBase() { | |||
9823 | MOZ_ASSERT(!mActiveRequestCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mActiveRequestCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mActiveRequestCount))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mActiveRequestCount" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9823); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActiveRequestCount" ")"); do { *((volatile int*)__null) = 9823; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9824 | MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mActorDestroyed" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9824); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")"); do { *((volatile int*)__null) = 9824; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9825 | MOZ_ASSERT_IF(mInitialized, mCommittedOrAborted)do { if (mInitialized) { do { static_assert( mozilla::detail:: AssertionConditionType<decltype(mCommittedOrAborted)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mCommittedOrAborted))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCommittedOrAborted", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9825); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCommittedOrAborted" ")"); do { *((volatile int*)__null) = 9825; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
9826 | } | |||
9827 | ||||
9828 | void TransactionBase::Abort(nsresult aResultCode, bool aForce) { | |||
9829 | AssertIsOnBackgroundThread(); | |||
9830 | MOZ_ASSERT(NS_FAILED(aResultCode))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode )), 0))))>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl (aResultCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9830); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))" ")"); do { *((volatile int*)__null) = 9830; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9831 | ||||
9832 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | |||
9833 | mResultCode = aResultCode; | |||
9834 | } | |||
9835 | ||||
9836 | if (aForce) { | |||
9837 | mForceAborted.EnsureFlipped(); | |||
9838 | } | |||
9839 | ||||
9840 | MaybeCommitOrAbort(); | |||
9841 | } | |||
9842 | ||||
9843 | mozilla::ipc::IPCResult TransactionBase::RecvCommit( | |||
9844 | IProtocol* aActor, const Maybe<int64_t> aLastRequest) { | |||
9845 | AssertIsOnBackgroundThread(); | |||
9846 | ||||
9847 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9847)) { | |||
9848 | return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, ( "Attempt to commit an already comitted/aborted transaction!") ) | |||
9849 | aActor, "Attempt to commit an already comitted/aborted transaction!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, ( "Attempt to commit an already comitted/aborted transaction!") ); | |||
9850 | } | |||
9851 | ||||
9852 | mCommitOrAbortReceived.Flip(); | |||
9853 | mLastRequestBeforeCommit.init(aLastRequest); | |||
9854 | MaybeCommitOrAbort(); | |||
9855 | ||||
9856 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
9857 | } | |||
9858 | ||||
9859 | mozilla::ipc::IPCResult TransactionBase::RecvAbort(IProtocol* aActor, | |||
9860 | nsresult aResultCode) { | |||
9861 | AssertIsOnBackgroundThread(); | |||
9862 | ||||
9863 | if (NS_WARN_IF(NS_SUCCEEDED(aResultCode))NS_warn_if_impl(((bool)(__builtin_expect(!!(!NS_FAILED_impl(aResultCode )), 1))), "NS_SUCCEEDED(aResultCode)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9863)) { | |||
9864 | return IPC_FAIL(aActor, "aResultCode must not be a success code!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, ( "aResultCode must not be a success code!")); | |||
9865 | } | |||
9866 | ||||
9867 | if (NS_WARN_IF(NS_ERROR_GET_MODULE(aResultCode) !=NS_warn_if_impl(NS_ERROR_GET_MODULE(aResultCode) != 33, "NS_ERROR_GET_MODULE(aResultCode) != NS_ERROR_MODULE_DOM_INDEXEDDB" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9868) | |||
9868 | NS_ERROR_MODULE_DOM_INDEXEDDB)NS_warn_if_impl(NS_ERROR_GET_MODULE(aResultCode) != 33, "NS_ERROR_GET_MODULE(aResultCode) != NS_ERROR_MODULE_DOM_INDEXEDDB" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9868)) { | |||
9869 | return IPC_FAIL(aActor, "aResultCode does not refer to IndexedDB!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, ( "aResultCode does not refer to IndexedDB!")); | |||
9870 | } | |||
9871 | ||||
9872 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9872)) { | |||
9873 | return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, ( "Attempt to abort an already comitted/aborted transaction!")) | |||
9874 | aActor, "Attempt to abort an already comitted/aborted transaction!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, ( "Attempt to abort an already comitted/aborted transaction!")); | |||
9875 | } | |||
9876 | ||||
9877 | mCommitOrAbortReceived.Flip(); | |||
9878 | Abort(aResultCode, /* aForce */ false); | |||
9879 | ||||
9880 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
9881 | } | |||
9882 | ||||
9883 | void TransactionBase::CommitOrAbort() { | |||
9884 | AssertIsOnBackgroundThread(); | |||
9885 | ||||
9886 | mCommittedOrAborted.Flip(); | |||
9887 | ||||
9888 | if (!mInitialized) { | |||
9889 | return; | |||
9890 | } | |||
9891 | ||||
9892 | // In case of a failed request and explicitly committed transaction, abort | |||
9893 | // (cf. https://w3c.github.io/IndexedDB/#async-execute-request step 5.3 | |||
9894 | // vs. 5.4). It's worth emphasizing this can only happen here when we are | |||
9895 | // committing explicitly, otherwise the decision is made by the child. | |||
9896 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) )) && mLastFailedRequest && | |||
9897 | *mLastRequestBeforeCommit && | |||
9898 | *mLastFailedRequest == **mLastRequestBeforeCommit) { | |||
9899 | mResultCode = NS_ERROR_DOM_INDEXEDDB_ABORT_ERR; | |||
9900 | } | |||
9901 | ||||
9902 | RefPtr<CommitOp> commitOp = | |||
9903 | new CommitOp(SafeRefPtrFromThis(), ClampResultCode(mResultCode)); | |||
9904 | ||||
9905 | gConnectionPool->Finish(TransactionId(), commitOp); | |||
9906 | } | |||
9907 | ||||
9908 | SafeRefPtr<FullObjectStoreMetadata> | |||
9909 | TransactionBase::GetMetadataForObjectStoreId( | |||
9910 | IndexOrObjectStoreId aObjectStoreId) const { | |||
9911 | AssertIsOnBackgroundThread(); | |||
9912 | MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aObjectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9912); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"); do { *((volatile int*)__null) = 9912; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9913 | ||||
9914 | if (!aObjectStoreId) { | |||
9915 | return nullptr; | |||
9916 | } | |||
9917 | ||||
9918 | auto metadata = mDatabase->Metadata().mObjectStores.Lookup(aObjectStoreId); | |||
9919 | if (!metadata || (*metadata)->mDeleted) { | |||
9920 | return nullptr; | |||
9921 | } | |||
9922 | ||||
9923 | MOZ_ASSERT((*metadata)->mCommonMetadata.id() == aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype((*metadata)->mCommonMetadata.id() == aObjectStoreId )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!((*metadata)->mCommonMetadata.id() == aObjectStoreId ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "(*metadata)->mCommonMetadata.id() == aObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9923); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*metadata)->mCommonMetadata.id() == aObjectStoreId" ")"); do { *((volatile int*)__null) = 9923; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9924 | ||||
9925 | return metadata->clonePtr(); | |||
9926 | } | |||
9927 | ||||
9928 | SafeRefPtr<FullIndexMetadata> TransactionBase::GetMetadataForIndexId( | |||
9929 | FullObjectStoreMetadata& aObjectStoreMetadata, | |||
9930 | IndexOrObjectStoreId aIndexId) const { | |||
9931 | AssertIsOnBackgroundThread(); | |||
9932 | MOZ_ASSERT(aIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aIndexId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aIndexId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aIndexId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aIndexId" ")" ); do { *((volatile int*)__null) = 9932; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9933 | ||||
9934 | if (!aIndexId) { | |||
9935 | return nullptr; | |||
9936 | } | |||
9937 | ||||
9938 | auto metadata = aObjectStoreMetadata.mIndexes.Lookup(aIndexId); | |||
9939 | if (!metadata || (*metadata)->mDeleted) { | |||
9940 | return nullptr; | |||
9941 | } | |||
9942 | ||||
9943 | MOZ_ASSERT((*metadata)->mCommonMetadata.id() == aIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype((*metadata)->mCommonMetadata.id() == aIndexId)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!((*metadata)->mCommonMetadata.id() == aIndexId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("(*metadata)->mCommonMetadata.id() == aIndexId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9943); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*metadata)->mCommonMetadata.id() == aIndexId" ")"); do { *((volatile int*)__null) = 9943; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9944 | ||||
9945 | return metadata->clonePtr(); | |||
9946 | } | |||
9947 | ||||
9948 | void TransactionBase::NoteModifiedAutoIncrementObjectStore( | |||
9949 | const SafeRefPtr<FullObjectStoreMetadata>& aMetadata) { | |||
9950 | AssertIsOnConnectionThread(); | |||
9951 | ||||
9952 | if (!mModifiedAutoIncrementObjectStoreMetadataArray.Contains(aMetadata)) { | |||
9953 | mModifiedAutoIncrementObjectStoreMetadataArray.AppendElement( | |||
9954 | aMetadata.clonePtr()); | |||
9955 | } | |||
9956 | } | |||
9957 | ||||
9958 | void TransactionBase::ForgetModifiedAutoIncrementObjectStore( | |||
9959 | FullObjectStoreMetadata& aMetadata) { | |||
9960 | AssertIsOnConnectionThread(); | |||
9961 | ||||
9962 | mModifiedAutoIncrementObjectStoreMetadataArray.RemoveElement(&aMetadata); | |||
9963 | } | |||
9964 | ||||
9965 | bool TransactionBase::VerifyRequestParams(const RequestParams& aParams) const { | |||
9966 | AssertIsOnBackgroundThread(); | |||
9967 | MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != RequestParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != RequestParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9967); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { *((volatile int*)__null) = 9967; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
9968 | ||||
9969 | switch (aParams.type()) { | |||
9970 | case RequestParams::TObjectStoreAddParams: { | |||
9971 | const ObjectStoreAddPutParams& params = | |||
9972 | aParams.get_ObjectStoreAddParams().commonParams(); | |||
9973 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9973); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params)" ")"); do { *((volatile int*)__null ) = 9973; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((!VerifyRequestParams( params)))) { | |||
9974 | return false; | |||
9975 | } | |||
9976 | break; | |||
9977 | } | |||
9978 | ||||
9979 | case RequestParams::TObjectStorePutParams: { | |||
9980 | const ObjectStoreAddPutParams& params = | |||
9981 | aParams.get_ObjectStorePutParams().commonParams(); | |||
9982 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9982); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params)" ")"); do { *((volatile int*)__null ) = 9982; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((!VerifyRequestParams( params)))) { | |||
9983 | return false; | |||
9984 | } | |||
9985 | break; | |||
9986 | } | |||
9987 | ||||
9988 | case RequestParams::TObjectStoreGetParams: { | |||
9989 | const ObjectStoreGetParams& params = aParams.get_ObjectStoreGetParams(); | |||
9990 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | |||
9991 | GetMetadataForObjectStoreId(params.objectStoreId()); | |||
9992 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { *((volatile int*)__null) = 9992; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | |||
9993 | return false; | |||
9994 | } | |||
9995 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 9995); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.keyRange())" ")"); do { *((volatile int*)__null) = 9995; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams (params.keyRange())))) { | |||
9996 | return false; | |||
9997 | } | |||
9998 | break; | |||
9999 | } | |||
10000 | ||||
10001 | case RequestParams::TObjectStoreGetKeyParams: { | |||
10002 | const ObjectStoreGetKeyParams& params = | |||
10003 | aParams.get_ObjectStoreGetKeyParams(); | |||
10004 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | |||
10005 | GetMetadataForObjectStoreId(params.objectStoreId()); | |||
10006 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10006); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { *((volatile int*)__null) = 10006; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | |||
10007 | return false; | |||
10008 | } | |||
10009 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10009); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.keyRange())" ")"); do { *((volatile int*)__null) = 10009; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams (params.keyRange())))) { | |||
10010 | return false; | |||
10011 | } | |||
10012 | break; | |||
10013 | } | |||
10014 | ||||
10015 | case RequestParams::TObjectStoreGetAllParams: { | |||
10016 | const ObjectStoreGetAllParams& params = | |||
10017 | aParams.get_ObjectStoreGetAllParams(); | |||
10018 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | |||
10019 | GetMetadataForObjectStoreId(params.objectStoreId()); | |||
10020 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10020); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { *((volatile int*)__null) = 10020; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | |||
10021 | return false; | |||
10022 | } | |||
10023 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.optionalKeyRange())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10023); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())" ")"); do { *((volatile int*)__null) = 10023; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); } return aCond; } ((!VerifyRequestParams(params.optionalKeyRange())))) { | |||
10024 | return false; | |||
10025 | } | |||
10026 | break; | |||
10027 | } | |||
10028 | ||||
10029 | case RequestParams::TObjectStoreGetAllKeysParams: { | |||
10030 | const ObjectStoreGetAllKeysParams& params = | |||
10031 | aParams.get_ObjectStoreGetAllKeysParams(); | |||
10032 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | |||
10033 | GetMetadataForObjectStoreId(params.objectStoreId()); | |||
10034 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10034); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { *((volatile int*)__null) = 10034; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | |||
10035 | return false; | |||
10036 | } | |||
10037 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.optionalKeyRange())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10037); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())" ")"); do { *((volatile int*)__null) = 10037; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); } return aCond; } ((!VerifyRequestParams(params.optionalKeyRange())))) { | |||
10038 | return false; | |||
10039 | } | |||
10040 | break; | |||
10041 | } | |||
10042 | ||||
10043 | case RequestParams::TObjectStoreDeleteParams: { | |||
10044 | if (NS_AUUF_OR_WARN_IF(mMode != IDBTransaction::Mode::ReadWrite &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 10047; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction ::Mode::VersionChange)) | |||
10045 | mMode != IDBTransaction::Mode::ReadWriteFlush &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 10047; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction ::Mode::VersionChange)) | |||
10046 | mMode != IDBTransaction::Mode::Cleanup &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 10047; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction ::Mode::VersionChange)) | |||
10047 | mMode != IDBTransaction::Mode::VersionChange)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 10047; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction ::Mode::VersionChange))) { | |||
10048 | return false; | |||
10049 | } | |||
10050 | ||||
10051 | const ObjectStoreDeleteParams& params = | |||
10052 | aParams.get_ObjectStoreDeleteParams(); | |||
10053 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | |||
10054 | GetMetadataForObjectStoreId(params.objectStoreId()); | |||
10055 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10055); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { *((volatile int*)__null) = 10055; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | |||
10056 | return false; | |||
10057 | } | |||
10058 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10058); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.keyRange())" ")"); do { *((volatile int*)__null) = 10058; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams (params.keyRange())))) { | |||
10059 | return false; | |||
10060 | } | |||
10061 | break; | |||
10062 | } | |||
10063 | ||||
10064 | case RequestParams::TObjectStoreClearParams: { | |||
10065 | if (NS_AUUF_OR_WARN_IF(mMode != IDBTransaction::Mode::ReadWrite &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10068); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 10068; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction ::Mode::VersionChange)) | |||
10066 | mMode != IDBTransaction::Mode::ReadWriteFlush &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10068); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 10068; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction ::Mode::VersionChange)) | |||
10067 | mMode != IDBTransaction::Mode::Cleanup &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10068); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 10068; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction ::Mode::VersionChange)) | |||
10068 | mMode != IDBTransaction::Mode::VersionChange)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10068); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 10068; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction ::Mode::VersionChange))) { | |||
10069 | return false; | |||
10070 | } | |||
10071 | ||||
10072 | const ObjectStoreClearParams& params = | |||
10073 | aParams.get_ObjectStoreClearParams(); | |||
10074 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | |||
10075 | GetMetadataForObjectStoreId(params.objectStoreId()); | |||
10076 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10076); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { *((volatile int*)__null) = 10076; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | |||
10077 | return false; | |||
10078 | } | |||
10079 | break; | |||
10080 | } | |||
10081 | ||||
10082 | case RequestParams::TObjectStoreCountParams: { | |||
10083 | const ObjectStoreCountParams& params = | |||
10084 | aParams.get_ObjectStoreCountParams(); | |||
10085 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | |||
10086 | GetMetadataForObjectStoreId(params.objectStoreId()); | |||
10087 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10087); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { *((volatile int*)__null) = 10087; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | |||
10088 | return false; | |||
10089 | } | |||
10090 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.optionalKeyRange())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10090); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())" ")"); do { *((volatile int*)__null) = 10090; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); } return aCond; } ((!VerifyRequestParams(params.optionalKeyRange())))) { | |||
10091 | return false; | |||
10092 | } | |||
10093 | break; | |||
10094 | } | |||
10095 | ||||
10096 | case RequestParams::TIndexGetParams: { | |||
10097 | const IndexGetParams& params = aParams.get_IndexGetParams(); | |||
10098 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | |||
10099 | GetMetadataForObjectStoreId(params.objectStoreId()); | |||
10100 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10100); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { *((volatile int*)__null) = 10100; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | |||
10101 | return false; | |||
10102 | } | |||
10103 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | |||
10104 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | |||
10105 | if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!indexMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10105); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { *((volatile int*)__null) = 10105 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | |||
10106 | return false; | |||
10107 | } | |||
10108 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10108); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.keyRange())" ")"); do { *((volatile int*)__null) = 10108; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams (params.keyRange())))) { | |||
10109 | return false; | |||
10110 | } | |||
10111 | break; | |||
10112 | } | |||
10113 | ||||
10114 | case RequestParams::TIndexGetKeyParams: { | |||
10115 | const IndexGetKeyParams& params = aParams.get_IndexGetKeyParams(); | |||
10116 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | |||
10117 | GetMetadataForObjectStoreId(params.objectStoreId()); | |||
10118 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10118); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { *((volatile int*)__null) = 10118; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | |||
10119 | return false; | |||
10120 | } | |||
10121 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | |||
10122 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | |||
10123 | if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!indexMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10123); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { *((volatile int*)__null) = 10123 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | |||
10124 | return false; | |||
10125 | } | |||
10126 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10126); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.keyRange())" ")"); do { *((volatile int*)__null) = 10126; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams (params.keyRange())))) { | |||
10127 | return false; | |||
10128 | } | |||
10129 | break; | |||
10130 | } | |||
10131 | ||||
10132 | case RequestParams::TIndexGetAllParams: { | |||
10133 | const IndexGetAllParams& params = aParams.get_IndexGetAllParams(); | |||
10134 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | |||
10135 | GetMetadataForObjectStoreId(params.objectStoreId()); | |||
10136 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10136); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { *((volatile int*)__null) = 10136; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | |||
10137 | return false; | |||
10138 | } | |||
10139 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | |||
10140 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | |||
10141 | if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!indexMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10141); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { *((volatile int*)__null) = 10141 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | |||
10142 | return false; | |||
10143 | } | |||
10144 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.optionalKeyRange())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())" ")"); do { *((volatile int*)__null) = 10144; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); } return aCond; } ((!VerifyRequestParams(params.optionalKeyRange())))) { | |||
10145 | return false; | |||
10146 | } | |||
10147 | break; | |||
10148 | } | |||
10149 | ||||
10150 | case RequestParams::TIndexGetAllKeysParams: { | |||
10151 | const IndexGetAllKeysParams& params = aParams.get_IndexGetAllKeysParams(); | |||
10152 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | |||
10153 | GetMetadataForObjectStoreId(params.objectStoreId()); | |||
10154 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10154); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { *((volatile int*)__null) = 10154; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | |||
10155 | return false; | |||
10156 | } | |||
10157 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | |||
10158 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | |||
10159 | if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!indexMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10159); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { *((volatile int*)__null) = 10159 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | |||
10160 | return false; | |||
10161 | } | |||
10162 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.optionalKeyRange())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10162); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())" ")"); do { *((volatile int*)__null) = 10162; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); } return aCond; } ((!VerifyRequestParams(params.optionalKeyRange())))) { | |||
10163 | return false; | |||
10164 | } | |||
10165 | break; | |||
10166 | } | |||
10167 | ||||
10168 | case RequestParams::TIndexCountParams: { | |||
10169 | const IndexCountParams& params = aParams.get_IndexCountParams(); | |||
10170 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | |||
10171 | GetMetadataForObjectStoreId(params.objectStoreId()); | |||
10172 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10172); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { *((volatile int*)__null) = 10172; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | |||
10173 | return false; | |||
10174 | } | |||
10175 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | |||
10176 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | |||
10177 | if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!indexMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10177); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { *((volatile int*)__null) = 10177 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | |||
10178 | return false; | |||
10179 | } | |||
10180 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(params.optionalKeyRange())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10180); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())" ")"); do { *((volatile int*)__null) = 10180; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); } return aCond; } ((!VerifyRequestParams(params.optionalKeyRange())))) { | |||
10181 | return false; | |||
10182 | } | |||
10183 | break; | |||
10184 | } | |||
10185 | ||||
10186 | default: | |||
10187 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10187); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 10187; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
10188 | } | |||
10189 | ||||
10190 | return true; | |||
10191 | } | |||
10192 | ||||
10193 | bool TransactionBase::VerifyRequestParams( | |||
10194 | const SerializedKeyRange& aParams) const { | |||
10195 | AssertIsOnBackgroundThread(); | |||
10196 | ||||
10197 | // XXX Check more here? | |||
10198 | ||||
10199 | if (aParams.isOnly()) { | |||
10200 | if (NS_AUUF_OR_WARN_IF(aParams.lower().IsUnset())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aParams.lower().IsUnset()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10200); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.lower().IsUnset()" ")"); do { *((volatile int*)__null ) = 10200; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); } return aCond; }((aParams.lower().IsUnset ()))) { | |||
10201 | return false; | |||
10202 | } | |||
10203 | if (NS_AUUF_OR_WARN_IF(!aParams.upper().IsUnset())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!aParams.upper().IsUnset()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10203); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aParams.upper().IsUnset()" ")"); do { *((volatile int*)__null ) = 10203; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); } return aCond; }((!aParams.upper().IsUnset ()))) { | |||
10204 | return false; | |||
10205 | } | |||
10206 | if (NS_AUUF_OR_WARN_IF(aParams.lowerOpen())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aParams.lowerOpen()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10206); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.lowerOpen()" ")"); do { *((volatile int*)__null) = 10206 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((aParams.lowerOpen()))) { | |||
10207 | return false; | |||
10208 | } | |||
10209 | if (NS_AUUF_OR_WARN_IF(aParams.upperOpen())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aParams.upperOpen()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10209); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.upperOpen()" ")"); do { *((volatile int*)__null) = 10209 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((aParams.upperOpen()))) { | |||
10210 | return false; | |||
10211 | } | |||
10212 | } else if (NS_AUUF_OR_WARN_IF(aParams.lower().IsUnset() &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10213); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()" ")"); do { *((volatile int*)__null) = 10213; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((aParams.lower().IsUnset() && aParams.upper ().IsUnset())) | |||
10213 | aParams.upper().IsUnset())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10213); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()" ")"); do { *((volatile int*)__null) = 10213; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((aParams.lower().IsUnset() && aParams.upper ().IsUnset()))) { | |||
10214 | return false; | |||
10215 | } | |||
10216 | ||||
10217 | return true; | |||
10218 | } | |||
10219 | ||||
10220 | bool TransactionBase::VerifyRequestParams( | |||
10221 | const ObjectStoreAddPutParams& aParams) const { | |||
10222 | AssertIsOnBackgroundThread(); | |||
10223 | ||||
10224 | if (NS_AUUF_OR_WARN_IF(mMode != IDBTransaction::Mode::ReadWrite &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10226); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 10226; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange)) | |||
10225 | mMode != IDBTransaction::Mode::ReadWriteFlush &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10226); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 10226; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange)) | |||
10226 | mMode != IDBTransaction::Mode::VersionChange)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10226); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 10226; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange))) { | |||
10227 | return false; | |||
10228 | } | |||
10229 | ||||
10230 | SafeRefPtr<FullObjectStoreMetadata> objMetadata = | |||
10231 | GetMetadataForObjectStoreId(aParams.objectStoreId()); | |||
10232 | if (NS_AUUF_OR_WARN_IF(!objMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10232); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objMetadata" ")"); do { *((volatile int*)__null) = 10232; __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objMetadata))) { | |||
10233 | return false; | |||
10234 | } | |||
10235 | ||||
10236 | if (NS_AUUF_OR_WARN_IF(!aParams.cloneInfo().data().data.Size())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!aParams.cloneInfo().data().data.Size()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10236); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aParams.cloneInfo().data().data.Size()" ")"); do { *((volatile int*)__null) = 10236; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!aParams.cloneInfo ().data().data.Size()))) { | |||
10237 | return false; | |||
10238 | } | |||
10239 | ||||
10240 | if (objMetadata->mCommonMetadata.autoIncrement() && | |||
10241 | objMetadata->mCommonMetadata.keyPath().IsValid() && | |||
10242 | aParams.key().IsUnset()) { | |||
10243 | const SerializedStructuredCloneWriteInfo& cloneInfo = aParams.cloneInfo(); | |||
10244 | ||||
10245 | if (NS_AUUF_OR_WARN_IF(!cloneInfo.offsetToKeyProp())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!cloneInfo.offsetToKeyProp()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10245); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!cloneInfo.offsetToKeyProp()" ")"); do { *((volatile int*)__null ) = 10245; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); } return aCond; }((!cloneInfo.offsetToKeyProp ()))) { | |||
10246 | return false; | |||
10247 | } | |||
10248 | ||||
10249 | if (NS_AUUF_OR_WARN_IF(cloneInfo.data().data.Size() < sizeof(uint64_t))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cloneInfo.data().data.Size() < sizeof(uint64_t)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10249); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cloneInfo.data().data.Size() < sizeof(uint64_t)" ")"); do { *((volatile int*)__null) = 10249; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond ; }((cloneInfo.data().data.Size() < sizeof(uint64_t)))) { | |||
10250 | return false; | |||
10251 | } | |||
10252 | ||||
10253 | if (NS_AUUF_OR_WARN_IF(cloneInfo.offsetToKeyProp() >[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10254); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))" ")"); do { *((volatile int*)__null) = 10254; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((cloneInfo.offsetToKeyProp() > (cloneInfo.data() .data.Size() - sizeof(uint64_t)))) | |||
10254 | (cloneInfo.data().data.Size() - sizeof(uint64_t)))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10254); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))" ")"); do { *((volatile int*)__null) = 10254; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((cloneInfo.offsetToKeyProp() > (cloneInfo.data() .data.Size() - sizeof(uint64_t))))) { | |||
10255 | return false; | |||
10256 | } | |||
10257 | } else if (NS_AUUF_OR_WARN_IF(aParams.cloneInfo().offsetToKeyProp())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "aParams.cloneInfo().offsetToKeyProp()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10257); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.cloneInfo().offsetToKeyProp()" ")"); do { *((volatile int*)__null) = 10257; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((aParams.cloneInfo ().offsetToKeyProp()))) { | |||
10258 | return false; | |||
10259 | } | |||
10260 | ||||
10261 | for (const auto& updateInfo : aParams.indexUpdateInfos()) { | |||
10262 | SafeRefPtr<FullIndexMetadata> indexMetadata = | |||
10263 | GetMetadataForIndexId(*objMetadata, updateInfo.indexId()); | |||
10264 | if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!indexMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10264); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { *((volatile int*)__null) = 10264 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | |||
10265 | return false; | |||
10266 | } | |||
10267 | ||||
10268 | if (NS_AUUF_OR_WARN_IF(updateInfo.value().IsUnset())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "updateInfo.value().IsUnset()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10268); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "updateInfo.value().IsUnset()" ")"); do { *((volatile int*)__null ) = 10268; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); } return aCond; }((updateInfo.value().IsUnset ()))) { | |||
10269 | return false; | |||
10270 | } | |||
10271 | ||||
10272 | MOZ_ASSERT(!updateInfo.value().GetBuffer().IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!updateInfo.value().GetBuffer().IsEmpty())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!updateInfo.value().GetBuffer().IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!updateInfo.value().GetBuffer().IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10272); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!updateInfo.value().GetBuffer().IsEmpty()" ")"); do { *((volatile int*)__null) = 10272; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10273 | } | |||
10274 | ||||
10275 | for (const FileAddInfo& fileAddInfo : aParams.fileAddInfos()) { | |||
10276 | const PBackgroundIDBDatabaseFileParent* file = | |||
10277 | fileAddInfo.file().AsParent(); | |||
10278 | ||||
10279 | switch (fileAddInfo.type()) { | |||
10280 | case StructuredCloneFileBase::eBlob: | |||
10281 | if (NS_AUUF_OR_WARN_IF(!file)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!file" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10281); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!file" ")"); do { *((volatile int*)__null) = 10281; __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!file))) { | |||
10282 | return false; | |||
10283 | } | |||
10284 | break; | |||
10285 | ||||
10286 | case StructuredCloneFileBase::eMutableFile: { | |||
10287 | return false; | |||
10288 | } | |||
10289 | ||||
10290 | case StructuredCloneFileBase::eStructuredClone: | |||
10291 | case StructuredCloneFileBase::eWasmBytecode: | |||
10292 | case StructuredCloneFileBase::eWasmCompiled: | |||
10293 | case StructuredCloneFileBase::eEndGuard: | |||
10294 | MOZ_ASSERT_UNLESS_FUZZING(false, "Unsupported.")do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" "Unsupported." ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10294); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Unsupported." ")"); do { *((volatile int*)__null) = 10294; __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); | |||
10295 | return false; | |||
10296 | ||||
10297 | default: | |||
10298 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10298); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 10298; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
10299 | } | |||
10300 | } | |||
10301 | ||||
10302 | return true; | |||
10303 | } | |||
10304 | ||||
10305 | bool TransactionBase::VerifyRequestParams( | |||
10306 | const Maybe<SerializedKeyRange>& aParams) const { | |||
10307 | AssertIsOnBackgroundThread(); | |||
10308 | ||||
10309 | if (aParams.isSome()) { | |||
10310 | if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(aParams.ref()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams(aParams.ref())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10310); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(aParams.ref())" ")"); do { *((volatile int*)__null) = 10310; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams (aParams.ref())))) { | |||
10311 | return false; | |||
10312 | } | |||
10313 | } | |||
10314 | ||||
10315 | return true; | |||
10316 | } | |||
10317 | ||||
10318 | void TransactionBase::NoteActiveRequest() { | |||
10319 | AssertIsOnBackgroundThread(); | |||
10320 | MOZ_ASSERT(mActiveRequestCount < UINT64_MAX)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mActiveRequestCount < (18446744073709551615UL))> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mActiveRequestCount < (18446744073709551615UL)))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mActiveRequestCount < (18446744073709551615UL)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActiveRequestCount < (18446744073709551615UL)" ")"); do { *((volatile int*)__null) = 10320; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10321 | ||||
10322 | mActiveRequestCount++; | |||
10323 | } | |||
10324 | ||||
10325 | void TransactionBase::NoteFinishedRequest(const int64_t aRequestId, | |||
10326 | const nsresult aResultCode) { | |||
10327 | AssertIsOnBackgroundThread(); | |||
10328 | MOZ_ASSERT(mActiveRequestCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mActiveRequestCount)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mActiveRequestCount))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mActiveRequestCount" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10328); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActiveRequestCount" ")"); do { *((volatile int*)__null) = 10328; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10329 | ||||
10330 | mActiveRequestCount--; | |||
10331 | ||||
10332 | if (NS_FAILED(aResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)) )) { | |||
10333 | mLastFailedRequest = Some(aRequestId); | |||
10334 | } | |||
10335 | ||||
10336 | MaybeCommitOrAbort(); | |||
10337 | } | |||
10338 | ||||
10339 | void TransactionBase::Invalidate() { | |||
10340 | AssertIsOnBackgroundThread(); | |||
10341 | MOZ_ASSERT(mInvalidated == mInvalidatedOnAnyThread)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInvalidated == mInvalidatedOnAnyThread)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInvalidated == mInvalidatedOnAnyThread))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInvalidated == mInvalidatedOnAnyThread" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10341); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated == mInvalidatedOnAnyThread" ")"); do { *((volatile int*)__null) = 10341; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10342 | ||||
10343 | if (!mInvalidated) { | |||
10344 | mInvalidated.Flip(); | |||
10345 | mInvalidatedOnAnyThread = true; | |||
10346 | ||||
10347 | Abort(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR, /* aForce */ false); | |||
10348 | } | |||
10349 | } | |||
10350 | ||||
10351 | PBackgroundIDBRequestParent* TransactionBase::AllocRequest( | |||
10352 | const int64_t aRequestId, RequestParams&& aParams, bool aTrustParams) { | |||
10353 | AssertIsOnBackgroundThread(); | |||
10354 | MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != RequestParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != RequestParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10354); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { *((volatile int*)__null) = 10354; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10355 | ||||
10356 | #ifdef DEBUG1 | |||
10357 | // Always verify parameters in DEBUG builds! | |||
10358 | aTrustParams = false; | |||
10359 | #endif | |||
10360 | ||||
10361 | if (NS_AUUF_OR_WARN_IF(!aTrustParams && !VerifyRequestParams(aParams))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!aTrustParams && !VerifyRequestParams(aParams)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10361); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aTrustParams && !VerifyRequestParams(aParams)" ")" ); do { *((volatile int*)__null) = 10361; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((!aTrustParams && !VerifyRequestParams(aParams)))) { | |||
10362 | return nullptr; | |||
10363 | } | |||
10364 | ||||
10365 | if (NS_AUUF_OR_WARN_IF(mCommitOrAbortReceived)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mCommitOrAbortReceived" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10365); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mCommitOrAbortReceived" ")"); do { *((volatile int*)__null) = 10365; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((mCommitOrAbortReceived ))) { | |||
10366 | return nullptr; | |||
10367 | } | |||
10368 | ||||
10369 | RefPtr<NormalTransactionOp> actor; | |||
10370 | ||||
10371 | switch (aParams.type()) { | |||
10372 | case RequestParams::TObjectStoreAddParams: | |||
10373 | case RequestParams::TObjectStorePutParams: | |||
10374 | actor = new ObjectStoreAddOrPutRequestOp(SafeRefPtrFromThis(), aRequestId, | |||
10375 | std::move(aParams)); | |||
10376 | break; | |||
10377 | ||||
10378 | case RequestParams::TObjectStoreGetParams: | |||
10379 | actor = | |||
10380 | new ObjectStoreGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | |||
10381 | /* aGetAll */ false); | |||
10382 | break; | |||
10383 | ||||
10384 | case RequestParams::TObjectStoreGetAllParams: | |||
10385 | actor = | |||
10386 | new ObjectStoreGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | |||
10387 | /* aGetAll */ true); | |||
10388 | break; | |||
10389 | ||||
10390 | case RequestParams::TObjectStoreGetKeyParams: | |||
10391 | actor = new ObjectStoreGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, | |||
10392 | aParams, | |||
10393 | /* aGetAll */ false); | |||
10394 | break; | |||
10395 | ||||
10396 | case RequestParams::TObjectStoreGetAllKeysParams: | |||
10397 | actor = new ObjectStoreGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, | |||
10398 | aParams, | |||
10399 | /* aGetAll */ true); | |||
10400 | break; | |||
10401 | ||||
10402 | case RequestParams::TObjectStoreDeleteParams: | |||
10403 | actor = | |||
10404 | new ObjectStoreDeleteRequestOp(SafeRefPtrFromThis(), aRequestId, | |||
10405 | aParams.get_ObjectStoreDeleteParams()); | |||
10406 | break; | |||
10407 | ||||
10408 | case RequestParams::TObjectStoreClearParams: | |||
10409 | actor = | |||
10410 | new ObjectStoreClearRequestOp(SafeRefPtrFromThis(), aRequestId, | |||
10411 | aParams.get_ObjectStoreClearParams()); | |||
10412 | break; | |||
10413 | ||||
10414 | case RequestParams::TObjectStoreCountParams: | |||
10415 | actor = | |||
10416 | new ObjectStoreCountRequestOp(SafeRefPtrFromThis(), aRequestId, | |||
10417 | aParams.get_ObjectStoreCountParams()); | |||
10418 | break; | |||
10419 | ||||
10420 | case RequestParams::TIndexGetParams: | |||
10421 | actor = new IndexGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | |||
10422 | /* aGetAll */ false); | |||
10423 | break; | |||
10424 | ||||
10425 | case RequestParams::TIndexGetKeyParams: | |||
10426 | actor = | |||
10427 | new IndexGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | |||
10428 | /* aGetAll */ false); | |||
10429 | break; | |||
10430 | ||||
10431 | case RequestParams::TIndexGetAllParams: | |||
10432 | actor = new IndexGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | |||
10433 | /* aGetAll */ true); | |||
10434 | break; | |||
10435 | ||||
10436 | case RequestParams::TIndexGetAllKeysParams: | |||
10437 | actor = | |||
10438 | new IndexGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | |||
10439 | /* aGetAll */ true); | |||
10440 | break; | |||
10441 | ||||
10442 | case RequestParams::TIndexCountParams: | |||
10443 | actor = | |||
10444 | new IndexCountRequestOp(SafeRefPtrFromThis(), aRequestId, aParams); | |||
10445 | break; | |||
10446 | ||||
10447 | default: | |||
10448 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10448); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 10448; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
10449 | } | |||
10450 | ||||
10451 | MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(actor)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("actor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10451); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")" ); do { *((volatile int*)__null) = 10451; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
10452 | ||||
10453 | // Transfer ownership to IPDL. | |||
10454 | return actor.forget().take(); | |||
10455 | } | |||
10456 | ||||
10457 | bool TransactionBase::StartRequest(PBackgroundIDBRequestParent* aActor) { | |||
10458 | AssertIsOnBackgroundThread(); | |||
10459 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10459); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { *((volatile int*)__null) = 10459; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
10460 | ||||
10461 | auto* op = static_cast<NormalTransactionOp*>(aActor); | |||
10462 | ||||
10463 | if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10463)) { | |||
10464 | op->Cleanup(); | |||
10465 | return false; | |||
10466 | } | |||
10467 | ||||
10468 | op->DispatchToConnectionPool(); | |||
10469 | return true; | |||
10470 | } | |||
10471 | ||||
10472 | bool TransactionBase::DeallocRequest( | |||
10473 | PBackgroundIDBRequestParent* const aActor) { | |||
10474 | AssertIsOnBackgroundThread(); | |||
10475 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10475); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { *((volatile int*)__null) = 10475; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
10476 | ||||
10477 | // Transfer ownership back from IPDL. | |||
10478 | const RefPtr<NormalTransactionOp> actor = | |||
10479 | dont_AddRef(static_cast<NormalTransactionOp*>(aActor)); | |||
10480 | return true; | |||
10481 | } | |||
10482 | ||||
10483 | already_AddRefed<PBackgroundIDBCursorParent> TransactionBase::AllocCursor( | |||
10484 | const OpenCursorParams& aParams, bool aTrustParams) { | |||
10485 | AssertIsOnBackgroundThread(); | |||
10486 | MOZ_ASSERT(aParams.type() != OpenCursorParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != OpenCursorParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != OpenCursorParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != OpenCursorParams::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10486); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None" ")"); do { *((volatile int*)__null) = 10486; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10487 | ||||
10488 | #ifdef DEBUG1 | |||
10489 | // Always verify parameters in DEBUG builds! | |||
10490 | aTrustParams = false; | |||
10491 | #endif | |||
10492 | ||||
10493 | const OpenCursorParams::Type type = aParams.type(); | |||
10494 | SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata; | |||
10495 | SafeRefPtr<FullIndexMetadata> indexMetadata; | |||
10496 | CursorBase::Direction direction; | |||
10497 | ||||
10498 | // First extract the parameters common to all open cursor variants. | |||
10499 | const auto& commonParams = GetCommonOpenCursorParams(aParams); | |||
10500 | objectStoreMetadata = | |||
10501 | GetMetadataForObjectStoreId(commonParams.objectStoreId()); | |||
10502 | if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!objectStoreMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10502); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { *((volatile int*)__null) = 10502; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | |||
10503 | return nullptr; | |||
10504 | } | |||
10505 | if (aTrustParams && NS_AUUF_OR_WARN_IF(!VerifyRequestParams([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams( commonParams.optionalKeyRange())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10506); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams( commonParams.optionalKeyRange())" ")" ); do { *((volatile int*)__null) = 10506; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((!VerifyRequestParams( commonParams.optionalKeyRange()))) | |||
10506 | commonParams.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!VerifyRequestParams( commonParams.optionalKeyRange())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10506); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams( commonParams.optionalKeyRange())" ")" ); do { *((volatile int*)__null) = 10506; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((!VerifyRequestParams( commonParams.optionalKeyRange())))) { | |||
10507 | return nullptr; | |||
10508 | } | |||
10509 | direction = commonParams.direction(); | |||
10510 | ||||
10511 | // Now, for the index open cursor variants, extract the additional parameter. | |||
10512 | if (type == OpenCursorParams::TIndexOpenCursorParams || | |||
10513 | type == OpenCursorParams::TIndexOpenKeyCursorParams) { | |||
10514 | const auto& commonIndexParams = GetCommonIndexOpenCursorParams(aParams); | |||
10515 | indexMetadata = GetMetadataForIndexId(*objectStoreMetadata, | |||
10516 | commonIndexParams.indexId()); | |||
10517 | if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!indexMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10517); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { *((volatile int*)__null) = 10517 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | |||
10518 | return nullptr; | |||
10519 | } | |||
10520 | } | |||
10521 | ||||
10522 | if (NS_AUUF_OR_WARN_IF(mCommitOrAbortReceived)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mCommitOrAbortReceived" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mCommitOrAbortReceived" ")"); do { *((volatile int*)__null) = 10522; __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((mCommitOrAbortReceived ))) { | |||
10523 | return nullptr; | |||
10524 | } | |||
10525 | ||||
10526 | // Create Cursor and transfer ownership to IPDL. | |||
10527 | switch (type) { | |||
10528 | case OpenCursorParams::TObjectStoreOpenCursorParams: | |||
10529 | MOZ_ASSERT(!indexMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!indexMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!indexMetadata" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexMetadata" ")"); do { *((volatile int*)__null) = 10529; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10530 | return MakeAndAddRef<Cursor<IDBCursorType::ObjectStore>>( | |||
10531 | SafeRefPtrFromThis(), std::move(objectStoreMetadata), direction, | |||
10532 | CursorBase::ConstructFromTransactionBase{}); | |||
10533 | case OpenCursorParams::TObjectStoreOpenKeyCursorParams: | |||
10534 | MOZ_ASSERT(!indexMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!indexMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!indexMetadata" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10534); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexMetadata" ")"); do { *((volatile int*)__null) = 10534; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10535 | return MakeAndAddRef<Cursor<IDBCursorType::ObjectStoreKey>>( | |||
10536 | SafeRefPtrFromThis(), std::move(objectStoreMetadata), direction, | |||
10537 | CursorBase::ConstructFromTransactionBase{}); | |||
10538 | case OpenCursorParams::TIndexOpenCursorParams: | |||
10539 | return MakeAndAddRef<Cursor<IDBCursorType::Index>>( | |||
10540 | SafeRefPtrFromThis(), std::move(objectStoreMetadata), | |||
10541 | std::move(indexMetadata), direction, | |||
10542 | CursorBase::ConstructFromTransactionBase{}); | |||
10543 | case OpenCursorParams::TIndexOpenKeyCursorParams: | |||
10544 | return MakeAndAddRef<Cursor<IDBCursorType::IndexKey>>( | |||
10545 | SafeRefPtrFromThis(), std::move(objectStoreMetadata), | |||
10546 | std::move(indexMetadata), direction, | |||
10547 | CursorBase::ConstructFromTransactionBase{}); | |||
10548 | default: | |||
10549 | MOZ_CRASH("Cannot get here.")do { do { } while (false); MOZ_ReportCrash("" "Cannot get here." , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10549); AnnotateMozCrashReason("MOZ_CRASH(" "Cannot get here." ")"); do { *((volatile int*)__null) = 10549; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
10550 | } | |||
10551 | } | |||
10552 | ||||
10553 | bool TransactionBase::StartCursor(PBackgroundIDBCursorParent* const aActor, | |||
10554 | const int64_t aRequestId, | |||
10555 | const OpenCursorParams& aParams) { | |||
10556 | AssertIsOnBackgroundThread(); | |||
10557 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10557); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { *((volatile int*)__null) = 10557; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
10558 | MOZ_ASSERT(aParams.type() != OpenCursorParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != OpenCursorParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != OpenCursorParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != OpenCursorParams::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10558); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None" ")"); do { *((volatile int*)__null) = 10558; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10559 | ||||
10560 | auto* const op = static_cast<CursorBase*>(aActor); | |||
10561 | ||||
10562 | if (NS_WARN_IF(!op->Start(aRequestId, aParams))NS_warn_if_impl(!op->Start(aRequestId, aParams), "!op->Start(aRequestId, aParams)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10562)) { | |||
10563 | return false; | |||
10564 | } | |||
10565 | ||||
10566 | return true; | |||
10567 | } | |||
10568 | ||||
10569 | /******************************************************************************* | |||
10570 | * NormalTransaction | |||
10571 | ******************************************************************************/ | |||
10572 | ||||
10573 | NormalTransaction::NormalTransaction( | |||
10574 | SafeRefPtr<Database> aDatabase, TransactionBase::Mode aMode, | |||
10575 | TransactionBase::Durability aDurability, | |||
10576 | nsTArray<SafeRefPtr<FullObjectStoreMetadata>>&& aObjectStores) | |||
10577 | : TransactionBase(std::move(aDatabase), aMode, aDurability), | |||
10578 | mObjectStores{std::move(aObjectStores)} { | |||
10579 | AssertIsOnBackgroundThread(); | |||
10580 | MOZ_ASSERT(!mObjectStores.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mObjectStores.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mObjectStores.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mObjectStores.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10580); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStores.IsEmpty()" ")"); do { *((volatile int*)__null) = 10580; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10581 | } | |||
10582 | ||||
10583 | bool NormalTransaction::IsSameProcessActor() { | |||
10584 | AssertIsOnBackgroundThread(); | |||
10585 | ||||
10586 | PBackgroundParent* const actor = Manager()->Manager()->Manager(); | |||
10587 | MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(actor)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("actor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10587); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")" ); do { *((volatile int*)__null) = 10587; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
10588 | ||||
10589 | return !BackgroundParent::IsOtherProcessActor(actor); | |||
10590 | } | |||
10591 | ||||
10592 | void NormalTransaction::SendCompleteNotification(nsresult aResult) { | |||
10593 | AssertIsOnBackgroundThread(); | |||
10594 | ||||
10595 | if (!IsActorDestroyed()) { | |||
10596 | Unused << SendComplete(aResult); | |||
10597 | } | |||
10598 | } | |||
10599 | ||||
10600 | void NormalTransaction::ActorDestroy(ActorDestroyReason aWhy) { | |||
10601 | AssertIsOnBackgroundThread(); | |||
10602 | ||||
10603 | NoteActorDestroyed(); | |||
10604 | ||||
10605 | if (!mCommittedOrAborted) { | |||
10606 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | |||
10607 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10607, "UnknownErr"); | |||
10608 | mResultCode = NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
10609 | } | |||
10610 | ||||
10611 | mForceAborted.EnsureFlipped(); | |||
10612 | ||||
10613 | MaybeCommitOrAbort(); | |||
10614 | } | |||
10615 | } | |||
10616 | ||||
10617 | mozilla::ipc::IPCResult NormalTransaction::RecvDeleteMe() { | |||
10618 | AssertIsOnBackgroundThread(); | |||
10619 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10619); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { *((volatile int*)__null) = 10619; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10620 | ||||
10621 | QM_WARNONLY_TRY(OkIf(PBackgroundIDBTransactionParent::Send__delete__(this))){auto tryResult3256 = (OkIf(PBackgroundIDBTransactionParent:: Send__delete__(this))); static_assert(std::is_empty_v<typename decltype(tryResult3256)::ok_type>); if ((__builtin_expect (!!(tryResult3256.isErr()), 0))) { mozilla::dom::quota::HandleError ("OkIf(PBackgroundIDBTransactionParent::Send__delete__(this))" , tryResult3256.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10621, mozilla::dom::quota::Severity::Warning); }}; | |||
10622 | ||||
10623 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
10624 | } | |||
10625 | ||||
10626 | mozilla::ipc::IPCResult NormalTransaction::RecvCommit( | |||
10627 | const Maybe<int64_t>& aLastRequest) { | |||
10628 | AssertIsOnBackgroundThread(); | |||
10629 | ||||
10630 | return TransactionBase::RecvCommit(this, aLastRequest); | |||
10631 | } | |||
10632 | ||||
10633 | mozilla::ipc::IPCResult NormalTransaction::RecvAbort( | |||
10634 | const nsresult& aResultCode) { | |||
10635 | AssertIsOnBackgroundThread(); | |||
10636 | ||||
10637 | return TransactionBase::RecvAbort(this, aResultCode); | |||
10638 | } | |||
10639 | ||||
10640 | PBackgroundIDBRequestParent* | |||
10641 | NormalTransaction::AllocPBackgroundIDBRequestParent( | |||
10642 | const int64_t& aRequestId, const RequestParams& aParams) { | |||
10643 | AssertIsOnBackgroundThread(); | |||
10644 | MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != RequestParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != RequestParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10644); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { *((volatile int*)__null) = 10644; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10645 | ||||
10646 | return AllocRequest(aRequestId, | |||
10647 | std::move(const_cast<RequestParams&>(aParams)), | |||
10648 | IsSameProcessActor()); | |||
10649 | } | |||
10650 | ||||
10651 | mozilla::ipc::IPCResult NormalTransaction::RecvPBackgroundIDBRequestConstructor( | |||
10652 | PBackgroundIDBRequestParent* const aActor, const int64_t& aRequestId, | |||
10653 | const RequestParams& aParams) { | |||
10654 | AssertIsOnBackgroundThread(); | |||
10655 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10655); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { *((volatile int*)__null) = 10655; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
10656 | MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != RequestParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != RequestParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { *((volatile int*)__null) = 10656; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10657 | ||||
10658 | if (!StartRequest(aActor)) { | |||
10659 | return IPC_FAIL(this, "StartRequest failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartRequest failed!" )); | |||
10660 | } | |||
10661 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
10662 | } | |||
10663 | ||||
10664 | bool NormalTransaction::DeallocPBackgroundIDBRequestParent( | |||
10665 | PBackgroundIDBRequestParent* const aActor) { | |||
10666 | AssertIsOnBackgroundThread(); | |||
10667 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10667); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { *((volatile int*)__null) = 10667; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
10668 | ||||
10669 | return DeallocRequest(aActor); | |||
10670 | } | |||
10671 | ||||
10672 | already_AddRefed<PBackgroundIDBCursorParent> | |||
10673 | NormalTransaction::AllocPBackgroundIDBCursorParent( | |||
10674 | const int64_t& aRequestId, const OpenCursorParams& aParams) { | |||
10675 | AssertIsOnBackgroundThread(); | |||
10676 | ||||
10677 | return AllocCursor(aParams, IsSameProcessActor()); | |||
10678 | } | |||
10679 | ||||
10680 | mozilla::ipc::IPCResult NormalTransaction::RecvPBackgroundIDBCursorConstructor( | |||
10681 | PBackgroundIDBCursorParent* const aActor, const int64_t& aRequestId, | |||
10682 | const OpenCursorParams& aParams) { | |||
10683 | AssertIsOnBackgroundThread(); | |||
10684 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { *((volatile int*)__null) = 10684; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
10685 | MOZ_ASSERT(aParams.type() != OpenCursorParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != OpenCursorParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != OpenCursorParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != OpenCursorParams::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10685); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None" ")"); do { *((volatile int*)__null) = 10685; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10686 | ||||
10687 | if (!StartCursor(aActor, aRequestId, aParams)) { | |||
10688 | return IPC_FAIL(this, "StartCursor failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartCursor failed!" )); | |||
10689 | } | |||
10690 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
10691 | } | |||
10692 | ||||
10693 | /******************************************************************************* | |||
10694 | * VersionChangeTransaction | |||
10695 | ******************************************************************************/ | |||
10696 | ||||
10697 | VersionChangeTransaction::VersionChangeTransaction( | |||
10698 | OpenDatabaseOp* aOpenDatabaseOp) | |||
10699 | : TransactionBase(aOpenDatabaseOp->mDatabase.clonePtr(), | |||
10700 | IDBTransaction::Mode::VersionChange, | |||
10701 | // VersionChange must not change durability. | |||
10702 | IDBTransaction::Durability::Default), // Not used. | |||
10703 | mOpenDatabaseOp(aOpenDatabaseOp) { | |||
10704 | AssertIsOnBackgroundThread(); | |||
10705 | MOZ_ASSERT(aOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aOpenDatabaseOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpenDatabaseOp" ")"); do { *((volatile int*)__null) = 10705; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10706 | } | |||
10707 | ||||
10708 | VersionChangeTransaction::~VersionChangeTransaction() { | |||
10709 | #ifdef DEBUG1 | |||
10710 | // Silence the base class' destructor assertion if we never made this actor | |||
10711 | // live. | |||
10712 | FakeActorDestroyed(); | |||
10713 | #endif | |||
10714 | } | |||
10715 | ||||
10716 | bool VersionChangeTransaction::IsSameProcessActor() { | |||
10717 | AssertIsOnBackgroundThread(); | |||
10718 | ||||
10719 | PBackgroundParent* actor = Manager()->Manager()->Manager(); | |||
10720 | MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(actor)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("actor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10720); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")" ); do { *((volatile int*)__null) = 10720; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
10721 | ||||
10722 | return !BackgroundParent::IsOtherProcessActor(actor); | |||
10723 | } | |||
10724 | ||||
10725 | void VersionChangeTransaction::SetActorAlive() { | |||
10726 | AssertIsOnBackgroundThread(); | |||
10727 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10727); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { *((volatile int*)__null) = 10727; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10728 | ||||
10729 | mActorWasAlive.Flip(); | |||
10730 | } | |||
10731 | ||||
10732 | bool VersionChangeTransaction::CopyDatabaseMetadata() { | |||
10733 | AssertIsOnBackgroundThread(); | |||
10734 | MOZ_ASSERT(!mOldMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mOldMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mOldMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mOldMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10734); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOldMetadata" ")"); do { *((volatile int*)__null) = 10734; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10735 | ||||
10736 | const auto& origMetadata = GetDatabase().Metadata(); | |||
10737 | ||||
10738 | SafeRefPtr<FullDatabaseMetadata> newMetadata = origMetadata.Duplicate(); | |||
10739 | if (NS_WARN_IF(!newMetadata)NS_warn_if_impl(!newMetadata, "!newMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10739)) { | |||
10740 | return false; | |||
10741 | } | |||
10742 | ||||
10743 | // Replace the live metadata with the new mutable copy. | |||
10744 | DatabaseActorInfo* info; | |||
10745 | MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get( origMetadata.mDatabaseId, &info)), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10745); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info)" ")"); do { *((volatile int*)__null) = 10745; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
10746 | MOZ_ASSERT(!info->mLiveDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mLiveDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mLiveDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!info->mLiveDatabases.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.IsEmpty()" ")"); do { *((volatile int*)__null) = 10746; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10747 | MOZ_ASSERT(info->mMetadata == &origMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(info->mMetadata == &origMetadata)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(info->mMetadata == &origMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("info->mMetadata == &origMetadata" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10747); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == &origMetadata" ")"); do { *((volatile int*)__null) = 10747; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10748 | ||||
10749 | mOldMetadata = std::move(info->mMetadata); | |||
10750 | info->mMetadata = std::move(newMetadata); | |||
10751 | ||||
10752 | // Replace metadata pointers for all live databases. | |||
10753 | for (const auto& liveDatabase : info->mLiveDatabases) { | |||
10754 | liveDatabase->mMetadata = info->mMetadata.clonePtr(); | |||
10755 | } | |||
10756 | ||||
10757 | return true; | |||
10758 | } | |||
10759 | ||||
10760 | void VersionChangeTransaction::UpdateMetadata(nsresult aResult) { | |||
10761 | AssertIsOnBackgroundThread(); | |||
10762 | MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10762); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"); do { *((volatile int*)__null) = 10762; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10763 | MOZ_ASSERT(!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase" ")"); do { *((volatile int*)__null) = 10763; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10764 | MOZ_ASSERT_IF(mActorWasAlive, !mOpenDatabaseOp->mDatabaseId.ref().IsEmpty())do { if (mActorWasAlive) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!mOpenDatabaseOp->mDatabaseId .ref().IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mOpenDatabaseOp->mDatabaseId .ref().IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mOpenDatabaseOp->mDatabaseId.ref().IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10764); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp->mDatabaseId.ref().IsEmpty()" ")"); do { *((volatile int*)__null) = 10764; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
10765 | ||||
10766 | if (IsActorDestroyed() || !mActorWasAlive) { | |||
10767 | return; | |||
10768 | } | |||
10769 | ||||
10770 | SafeRefPtr<FullDatabaseMetadata> oldMetadata = std::move(mOldMetadata); | |||
10771 | ||||
10772 | DatabaseActorInfo* info; | |||
10773 | if (!gLiveDatabaseHashtable->Get(oldMetadata->mDatabaseId, &info)) { | |||
10774 | return; | |||
10775 | } | |||
10776 | ||||
10777 | MOZ_ASSERT(!info->mLiveDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mLiveDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mLiveDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!info->mLiveDatabases.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10777); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.IsEmpty()" ")"); do { *((volatile int*)__null) = 10777; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10778 | ||||
10779 | if (NS_SUCCEEDED(aResult)((bool)(__builtin_expect(!!(!NS_FAILED_impl(aResult)), 1)))) { | |||
10780 | // Remove all deleted objectStores and indexes, then mark immutable. | |||
10781 | info->mMetadata->mObjectStores.RemoveIf([](const auto& objectStoreIter) { | |||
10782 | MOZ_ASSERT(objectStoreIter.Key())do { static_assert( mozilla::detail::AssertionConditionType< decltype(objectStoreIter.Key())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(objectStoreIter.Key()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreIter.Key()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10782); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreIter.Key()" ")"); do { *((volatile int*)__null) = 10782; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10783 | const SafeRefPtr<FullObjectStoreMetadata>& metadata = | |||
10784 | objectStoreIter.Data(); | |||
10785 | MOZ_ASSERT(metadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(metadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10785); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 10785; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
10786 | ||||
10787 | if (metadata->mDeleted) { | |||
10788 | return true; | |||
10789 | } | |||
10790 | ||||
10791 | metadata->mIndexes.RemoveIf([](const auto& indexIter) -> bool { | |||
10792 | MOZ_ASSERT(indexIter.Key())do { static_assert( mozilla::detail::AssertionConditionType< decltype(indexIter.Key())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(indexIter.Key()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexIter.Key()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10792); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexIter.Key()" ")"); do { *((volatile int*)__null) = 10792; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10793 | const SafeRefPtr<FullIndexMetadata>& index = indexIter.Data(); | |||
10794 | MOZ_ASSERT(index)do { static_assert( mozilla::detail::AssertionConditionType< decltype(index)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(index))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("index", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10794); AnnotateMozCrashReason("MOZ_ASSERT" "(" "index" ")" ); do { *((volatile int*)__null) = 10794; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
10795 | ||||
10796 | return index->mDeleted; | |||
10797 | }); | |||
10798 | metadata->mIndexes.MarkImmutable(); | |||
10799 | ||||
10800 | return false; | |||
10801 | }); | |||
10802 | ||||
10803 | info->mMetadata->mObjectStores.MarkImmutable(); | |||
10804 | } else { | |||
10805 | // Replace metadata pointers for all live databases. | |||
10806 | info->mMetadata = std::move(oldMetadata); | |||
10807 | ||||
10808 | for (auto& liveDatabase : info->mLiveDatabases) { | |||
10809 | liveDatabase->mMetadata = info->mMetadata.clonePtr(); | |||
10810 | } | |||
10811 | } | |||
10812 | } | |||
10813 | ||||
10814 | void VersionChangeTransaction::SendCompleteNotification(nsresult aResult) { | |||
10815 | AssertIsOnBackgroundThread(); | |||
10816 | MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"); do { *((volatile int*)__null) = 10816; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10817 | MOZ_ASSERT_IF(!mActorWasAlive, mOpenDatabaseOp->HasFailed())do { if (!mActorWasAlive) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(mOpenDatabaseOp->HasFailed ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mOpenDatabaseOp->HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->HasFailed()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10817); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->HasFailed()" ")"); do { *((volatile int*)__null) = 10817; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
10818 | MOZ_ASSERT_IF(!mActorWasAlive, mOpenDatabaseOp->mState >do { if (!mActorWasAlive) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10819); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults" ")"); do { *((volatile int*)__null) = 10819; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
10819 | OpenDatabaseOp::State::SendingResults)do { if (!mActorWasAlive) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10819); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults" ")"); do { *((volatile int*)__null) = 10819; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
10820 | ||||
10821 | const RefPtr<OpenDatabaseOp> openDatabaseOp = std::move(mOpenDatabaseOp); | |||
10822 | ||||
10823 | if (!mActorWasAlive) { | |||
10824 | return; | |||
10825 | } | |||
10826 | ||||
10827 | if (NS_FAILED(aResult)((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult)), 0)))) { | |||
10828 | // 3.3.1 Opening a database: | |||
10829 | // "If the upgrade transaction was aborted, run the steps for closing a | |||
10830 | // database connection with connection, create and return a new AbortError | |||
10831 | // exception and abort these steps." | |||
10832 | openDatabaseOp->SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR); | |||
10833 | } | |||
10834 | ||||
10835 | openDatabaseOp->mState = OpenDatabaseOp::State::SendingResults; | |||
10836 | ||||
10837 | if (!IsActorDestroyed()) { | |||
10838 | Unused << SendComplete(aResult); | |||
10839 | } | |||
10840 | ||||
10841 | MOZ_ALWAYS_SUCCEEDS(openDatabaseOp->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (openDatabaseOp->Run())), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(openDatabaseOp->Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10841); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(openDatabaseOp->Run())" ")"); do { *( (volatile int*)__null) = 10841; __attribute__((nomerge)) ::abort (); } while (false); } } while (false); } } while (false); | |||
10842 | } | |||
10843 | ||||
10844 | void VersionChangeTransaction::ActorDestroy(ActorDestroyReason aWhy) { | |||
10845 | AssertIsOnBackgroundThread(); | |||
10846 | ||||
10847 | NoteActorDestroyed(); | |||
10848 | ||||
10849 | if (!mCommittedOrAborted) { | |||
10850 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | |||
10851 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10851, "UnknownErr"); | |||
10852 | mResultCode = NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
10853 | } | |||
10854 | ||||
10855 | mForceAborted.EnsureFlipped(); | |||
10856 | ||||
10857 | MaybeCommitOrAbort(); | |||
10858 | } | |||
10859 | } | |||
10860 | ||||
10861 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteMe() { | |||
10862 | AssertIsOnBackgroundThread(); | |||
10863 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10863); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { *((volatile int*)__null) = 10863; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10864 | ||||
10865 | QM_WARNONLY_TRY({auto tryResult3257 = (OkIf(PBackgroundIDBVersionChangeTransactionParent ::Send__delete__(this))); static_assert(std::is_empty_v<typename decltype(tryResult3257)::ok_type>); if ((__builtin_expect (!!(tryResult3257.isErr()), 0))) { mozilla::dom::quota::HandleError ("OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))" , tryResult3257.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10866, mozilla::dom::quota::Severity::Warning); }} | |||
10866 | OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))){auto tryResult3257 = (OkIf(PBackgroundIDBVersionChangeTransactionParent ::Send__delete__(this))); static_assert(std::is_empty_v<typename decltype(tryResult3257)::ok_type>); if ((__builtin_expect (!!(tryResult3257.isErr()), 0))) { mozilla::dom::quota::HandleError ("OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))" , tryResult3257.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10866, mozilla::dom::quota::Severity::Warning); }}; | |||
10867 | ||||
10868 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
10869 | } | |||
10870 | ||||
10871 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvCommit( | |||
10872 | const Maybe<int64_t>& aLastRequest) { | |||
10873 | AssertIsOnBackgroundThread(); | |||
10874 | ||||
10875 | return TransactionBase::RecvCommit(this, aLastRequest); | |||
10876 | } | |||
10877 | ||||
10878 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvAbort( | |||
10879 | const nsresult& aResultCode) { | |||
10880 | AssertIsOnBackgroundThread(); | |||
10881 | ||||
10882 | return TransactionBase::RecvAbort(this, aResultCode); | |||
10883 | } | |||
10884 | ||||
10885 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvCreateObjectStore( | |||
10886 | const ObjectStoreMetadata& aMetadata) { | |||
10887 | AssertIsOnBackgroundThread(); | |||
10888 | ||||
10889 | if (NS_WARN_IF(!aMetadata.id())NS_warn_if_impl(!aMetadata.id(), "!aMetadata.id()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10889)) { | |||
10890 | return IPC_FAIL(this, "No metadata ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata ID!" )); | |||
10891 | } | |||
10892 | ||||
10893 | const SafeRefPtr<FullDatabaseMetadata> dbMetadata = | |||
10894 | GetDatabase().MetadataPtr(); | |||
10895 | ||||
10896 | if (NS_WARN_IF(aMetadata.id() != dbMetadata->mNextObjectStoreId)NS_warn_if_impl(aMetadata.id() != dbMetadata->mNextObjectStoreId , "aMetadata.id() != dbMetadata->mNextObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10896)) { | |||
10897 | return IPC_FAIL(this, "Requested metadata ID does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested metadata ID does not match next ID!" )); | |||
10898 | } | |||
10899 | ||||
10900 | if (NS_WARN_IF(NS_warn_if_impl(MatchMetadataNameOrId(dbMetadata->mObjectStores , aMetadata.id(), SomeRef<const nsAString&>(aMetadata .name())) .isSome(), "MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10903) | |||
10901 | MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(),NS_warn_if_impl(MatchMetadataNameOrId(dbMetadata->mObjectStores , aMetadata.id(), SomeRef<const nsAString&>(aMetadata .name())) .isSome(), "MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10903) | |||
10902 | SomeRef<const nsAString&>(aMetadata.name()))NS_warn_if_impl(MatchMetadataNameOrId(dbMetadata->mObjectStores , aMetadata.id(), SomeRef<const nsAString&>(aMetadata .name())) .isSome(), "MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10903) | |||
10903 | .isSome())NS_warn_if_impl(MatchMetadataNameOrId(dbMetadata->mObjectStores , aMetadata.id(), SomeRef<const nsAString&>(aMetadata .name())) .isSome(), "MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10903)) { | |||
10904 | return IPC_FAIL(this, "MatchMetadataNameOrId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("MatchMetadataNameOrId failed!" )); | |||
10905 | } | |||
10906 | ||||
10907 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10907)) { | |||
10908 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | |||
10909 | } | |||
10910 | ||||
10911 | const int64_t initialAutoIncrementId = aMetadata.autoIncrement() ? 1 : 0; | |||
10912 | auto newMetadata = MakeSafeRefPtr<FullObjectStoreMetadata>( | |||
10913 | aMetadata, FullObjectStoreMetadata::AutoIncrementIds{ | |||
10914 | initialAutoIncrementId, initialAutoIncrementId}); | |||
10915 | ||||
10916 | if (NS_WARN_IF(!dbMetadata->mObjectStores.InsertOrUpdate(NS_warn_if_impl(!dbMetadata->mObjectStores.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible), "!dbMetadata->mObjectStores.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10917) | |||
10917 | aMetadata.id(), std::move(newMetadata), fallible))NS_warn_if_impl(!dbMetadata->mObjectStores.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible), "!dbMetadata->mObjectStores.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10917)) { | |||
10918 | return IPC_FAIL(this, "mObjectStores.InsertOrUpdate failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("mObjectStores.InsertOrUpdate failed!" )); | |||
10919 | } | |||
10920 | ||||
10921 | dbMetadata->mNextObjectStoreId++; | |||
10922 | ||||
10923 | RefPtr<CreateObjectStoreOp> op = new CreateObjectStoreOp( | |||
10924 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aMetadata); | |||
10925 | ||||
10926 | if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10926)) { | |||
10927 | op->Cleanup(); | |||
10928 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | |||
10929 | } | |||
10930 | ||||
10931 | op->DispatchToConnectionPool(); | |||
10932 | ||||
10933 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
10934 | } | |||
10935 | ||||
10936 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteObjectStore( | |||
10937 | const IndexOrObjectStoreId& aObjectStoreId) { | |||
10938 | AssertIsOnBackgroundThread(); | |||
10939 | ||||
10940 | if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10940)) { | |||
10941 | return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!" )); | |||
10942 | } | |||
10943 | ||||
10944 | const auto& dbMetadata = GetDatabase().Metadata(); | |||
10945 | MOZ_ASSERT(dbMetadata.mNextObjectStoreId > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbMetadata.mNextObjectStoreId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbMetadata.mNextObjectStoreId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("dbMetadata.mNextObjectStoreId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10945); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0" ")"); do { *((volatile int*)__null) = 10945; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
10946 | ||||
10947 | if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId , "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10947)) { | |||
10948 | return IPC_FAIL(this, "Invalid ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid ObjectStoreId!" )); | |||
10949 | } | |||
10950 | ||||
10951 | SafeRefPtr<FullObjectStoreMetadata> foundMetadata = | |||
10952 | GetMetadataForObjectStoreId(aObjectStoreId); | |||
10953 | ||||
10954 | if (NS_WARN_IF(!foundMetadata)NS_warn_if_impl(!foundMetadata, "!foundMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10954)) { | |||
10955 | return IPC_FAIL(this, "No metadata found for ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata found for ObjectStoreId!" )); | |||
10956 | } | |||
10957 | ||||
10958 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10958)) { | |||
10959 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | |||
10960 | } | |||
10961 | ||||
10962 | foundMetadata->mDeleted.Flip(); | |||
10963 | ||||
10964 | DebugOnly<bool> foundTargetId = false; | |||
10965 | const bool isLastObjectStore = std::all_of( | |||
10966 | dbMetadata.mObjectStores.begin(), dbMetadata.mObjectStores.end(), | |||
10967 | [&foundTargetId, aObjectStoreId](const auto& objectStoreEntry) -> bool { | |||
10968 | if (uint64_t(aObjectStoreId) == objectStoreEntry.GetKey()) { | |||
10969 | foundTargetId = true; | |||
10970 | return true; | |||
10971 | } | |||
10972 | ||||
10973 | return objectStoreEntry.GetData()->mDeleted; | |||
10974 | }); | |||
10975 | MOZ_ASSERT_IF(isLastObjectStore, foundTargetId)do { if (isLastObjectStore) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(foundTargetId)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(foundTargetId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("foundTargetId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10975); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundTargetId" ")"); do { *((volatile int*)__null) = 10975; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
10976 | ||||
10977 | RefPtr<DeleteObjectStoreOp> op = new DeleteObjectStoreOp( | |||
10978 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), | |||
10979 | std::move(foundMetadata), isLastObjectStore); | |||
10980 | ||||
10981 | if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10981)) { | |||
10982 | op->Cleanup(); | |||
10983 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | |||
10984 | } | |||
10985 | ||||
10986 | op->DispatchToConnectionPool(); | |||
10987 | ||||
10988 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
10989 | } | |||
10990 | ||||
10991 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvRenameObjectStore( | |||
10992 | const IndexOrObjectStoreId& aObjectStoreId, const nsAString& aName) { | |||
10993 | AssertIsOnBackgroundThread(); | |||
10994 | ||||
10995 | if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 10995)) { | |||
10996 | return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!" )); | |||
10997 | } | |||
10998 | ||||
10999 | { | |||
11000 | const auto& dbMetadata = GetDatabase().Metadata(); | |||
11001 | MOZ_ASSERT(dbMetadata.mNextObjectStoreId > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbMetadata.mNextObjectStoreId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbMetadata.mNextObjectStoreId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("dbMetadata.mNextObjectStoreId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11001); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0" ")"); do { *((volatile int*)__null) = 11001; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11002 | ||||
11003 | if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId , "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11003)) { | |||
11004 | return IPC_FAIL(this, "Invalid ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid ObjectStoreId!" )); | |||
11005 | } | |||
11006 | } | |||
11007 | ||||
11008 | SafeRefPtr<FullObjectStoreMetadata> foundMetadata = | |||
11009 | GetMetadataForObjectStoreId(aObjectStoreId); | |||
11010 | ||||
11011 | if (NS_WARN_IF(!foundMetadata)NS_warn_if_impl(!foundMetadata, "!foundMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11011)) { | |||
11012 | return IPC_FAIL(this, "No metadata found for ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata found for ObjectStoreId!" )); | |||
11013 | } | |||
11014 | ||||
11015 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11015)) { | |||
11016 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | |||
11017 | } | |||
11018 | ||||
11019 | foundMetadata->mCommonMetadata.name() = aName; | |||
11020 | ||||
11021 | RefPtr<RenameObjectStoreOp> renameOp = new RenameObjectStoreOp( | |||
11022 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), | |||
11023 | *foundMetadata); | |||
11024 | ||||
11025 | if (NS_WARN_IF(!renameOp->Init(*this))NS_warn_if_impl(!renameOp->Init(*this), "!renameOp->Init(*this)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11025)) { | |||
11026 | renameOp->Cleanup(); | |||
11027 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | |||
11028 | } | |||
11029 | ||||
11030 | renameOp->DispatchToConnectionPool(); | |||
11031 | ||||
11032 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
11033 | } | |||
11034 | ||||
11035 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvCreateIndex( | |||
11036 | const IndexOrObjectStoreId& aObjectStoreId, | |||
11037 | const IndexMetadata& aMetadata) { | |||
11038 | AssertIsOnBackgroundThread(); | |||
11039 | ||||
11040 | if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11040)) { | |||
11041 | return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!" )); | |||
11042 | } | |||
11043 | ||||
11044 | if (NS_WARN_IF(!aMetadata.id())NS_warn_if_impl(!aMetadata.id(), "!aMetadata.id()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11044)) { | |||
11045 | return IPC_FAIL(this, "No Metadata id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Metadata id!" )); | |||
11046 | } | |||
11047 | ||||
11048 | const auto dbMetadata = GetDatabase().MetadataPtr(); | |||
11049 | ||||
11050 | if (NS_WARN_IF(aMetadata.id() != dbMetadata->mNextIndexId)NS_warn_if_impl(aMetadata.id() != dbMetadata->mNextIndexId , "aMetadata.id() != dbMetadata->mNextIndexId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11050)) { | |||
11051 | return IPC_FAIL(this, "Requested metadata ID does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested metadata ID does not match next ID!" )); | |||
11052 | } | |||
11053 | ||||
11054 | SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata = | |||
11055 | GetMetadataForObjectStoreId(aObjectStoreId); | |||
11056 | ||||
11057 | if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11057)) { | |||
11058 | return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!" )); | |||
11059 | } | |||
11060 | ||||
11061 | if (NS_WARN_IF(MatchMetadataNameOrId(NS_warn_if_impl(MatchMetadataNameOrId( foundObjectStoreMetadata ->mIndexes, aMetadata.id(), SomeRef<const nsAString& >(aMetadata.name())) .isSome(), "MatchMetadataNameOrId( foundObjectStoreMetadata->mIndexes, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11064) | |||
11062 | foundObjectStoreMetadata->mIndexes, aMetadata.id(),NS_warn_if_impl(MatchMetadataNameOrId( foundObjectStoreMetadata ->mIndexes, aMetadata.id(), SomeRef<const nsAString& >(aMetadata.name())) .isSome(), "MatchMetadataNameOrId( foundObjectStoreMetadata->mIndexes, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11064) | |||
11063 | SomeRef<const nsAString&>(aMetadata.name()))NS_warn_if_impl(MatchMetadataNameOrId( foundObjectStoreMetadata ->mIndexes, aMetadata.id(), SomeRef<const nsAString& >(aMetadata.name())) .isSome(), "MatchMetadataNameOrId( foundObjectStoreMetadata->mIndexes, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11064) | |||
11064 | .isSome())NS_warn_if_impl(MatchMetadataNameOrId( foundObjectStoreMetadata ->mIndexes, aMetadata.id(), SomeRef<const nsAString& >(aMetadata.name())) .isSome(), "MatchMetadataNameOrId( foundObjectStoreMetadata->mIndexes, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11064)) { | |||
11065 | return IPC_FAIL(this, "MatchMetadataNameOrId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("MatchMetadataNameOrId failed!" )); | |||
11066 | } | |||
11067 | ||||
11068 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11068)) { | |||
11069 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | |||
11070 | } | |||
11071 | ||||
11072 | auto newMetadata = MakeSafeRefPtr<FullIndexMetadata>(); | |||
11073 | newMetadata->mCommonMetadata = aMetadata; | |||
11074 | ||||
11075 | if (NS_WARN_IF(!foundObjectStoreMetadata->mIndexes.InsertOrUpdate(NS_warn_if_impl(!foundObjectStoreMetadata->mIndexes.InsertOrUpdate ( aMetadata.id(), std::move(newMetadata), fallible), "!foundObjectStoreMetadata->mIndexes.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11076) | |||
11076 | aMetadata.id(), std::move(newMetadata), fallible))NS_warn_if_impl(!foundObjectStoreMetadata->mIndexes.InsertOrUpdate ( aMetadata.id(), std::move(newMetadata), fallible), "!foundObjectStoreMetadata->mIndexes.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11076)) { | |||
11077 | return IPC_FAIL(this, "mIndexes.InsertOrUpdate failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("mIndexes.InsertOrUpdate failed!" )); | |||
11078 | } | |||
11079 | ||||
11080 | dbMetadata->mNextIndexId++; | |||
11081 | ||||
11082 | RefPtr<CreateIndexOp> op = new CreateIndexOp( | |||
11083 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aObjectStoreId, | |||
11084 | aMetadata); | |||
11085 | ||||
11086 | if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11086)) { | |||
11087 | op->Cleanup(); | |||
11088 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | |||
11089 | } | |||
11090 | ||||
11091 | op->DispatchToConnectionPool(); | |||
11092 | ||||
11093 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
11094 | } | |||
11095 | ||||
11096 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteIndex( | |||
11097 | const IndexOrObjectStoreId& aObjectStoreId, | |||
11098 | const IndexOrObjectStoreId& aIndexId) { | |||
11099 | AssertIsOnBackgroundThread(); | |||
11100 | ||||
11101 | if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11101)) { | |||
11102 | return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!" )); | |||
11103 | } | |||
11104 | ||||
11105 | if (NS_WARN_IF(!aIndexId)NS_warn_if_impl(!aIndexId, "!aIndexId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11105)) { | |||
11106 | return IPC_FAIL(this, "No Index id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Index id!" )); | |||
11107 | } | |||
11108 | { | |||
11109 | const auto& dbMetadata = GetDatabase().Metadata(); | |||
11110 | MOZ_ASSERT(dbMetadata.mNextObjectStoreId > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbMetadata.mNextObjectStoreId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbMetadata.mNextObjectStoreId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("dbMetadata.mNextObjectStoreId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11110); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0" ")"); do { *((volatile int*)__null) = 11110; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11111 | MOZ_ASSERT(dbMetadata.mNextIndexId > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbMetadata.mNextIndexId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbMetadata.mNextIndexId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("dbMetadata.mNextIndexId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11111); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextIndexId > 0" ")"); do { *((volatile int*)__null) = 11111; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11112 | ||||
11113 | if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId , "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11113)) { | |||
11114 | return IPC_FAIL(this, "Requested ObjectStoreId does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested ObjectStoreId does not match next ID!" )); | |||
11115 | } | |||
11116 | ||||
11117 | if (NS_WARN_IF(aIndexId >= dbMetadata.mNextIndexId)NS_warn_if_impl(aIndexId >= dbMetadata.mNextIndexId, "aIndexId >= dbMetadata.mNextIndexId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11117)) { | |||
11118 | return IPC_FAIL(this, "Requested IndexId does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested IndexId does not match next ID!" )); | |||
11119 | } | |||
11120 | } | |||
11121 | ||||
11122 | SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata = | |||
11123 | GetMetadataForObjectStoreId(aObjectStoreId); | |||
11124 | ||||
11125 | if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11125)) { | |||
11126 | return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!" )); | |||
11127 | } | |||
11128 | ||||
11129 | SafeRefPtr<FullIndexMetadata> foundIndexMetadata = | |||
11130 | GetMetadataForIndexId(*foundObjectStoreMetadata, aIndexId); | |||
11131 | ||||
11132 | if (NS_WARN_IF(!foundIndexMetadata)NS_warn_if_impl(!foundIndexMetadata, "!foundIndexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11132)) { | |||
11133 | return IPC_FAIL(this, "GetMetadataForIndexId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForIndexId failed!" )); | |||
11134 | } | |||
11135 | ||||
11136 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11136)) { | |||
11137 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | |||
11138 | } | |||
11139 | ||||
11140 | foundIndexMetadata->mDeleted.Flip(); | |||
11141 | ||||
11142 | DebugOnly<bool> foundTargetId = false; | |||
11143 | const bool isLastIndex = | |||
11144 | std::all_of(foundObjectStoreMetadata->mIndexes.cbegin(), | |||
11145 | foundObjectStoreMetadata->mIndexes.cend(), | |||
11146 | [&foundTargetId, aIndexId](const auto& indexEntry) -> bool { | |||
11147 | if (uint64_t(aIndexId) == indexEntry.GetKey()) { | |||
11148 | foundTargetId = true; | |||
11149 | return true; | |||
11150 | } | |||
11151 | ||||
11152 | return indexEntry.GetData()->mDeleted; | |||
11153 | }); | |||
11154 | MOZ_ASSERT_IF(isLastIndex, foundTargetId)do { if (isLastIndex) { do { static_assert( mozilla::detail:: AssertionConditionType<decltype(foundTargetId)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(foundTargetId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("foundTargetId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11154); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundTargetId" ")"); do { *((volatile int*)__null) = 11154; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
11155 | ||||
11156 | RefPtr<DeleteIndexOp> op = new DeleteIndexOp( | |||
11157 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aObjectStoreId, | |||
11158 | aIndexId, foundIndexMetadata->mCommonMetadata.unique(), isLastIndex); | |||
11159 | ||||
11160 | if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11160)) { | |||
11161 | op->Cleanup(); | |||
11162 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | |||
11163 | } | |||
11164 | ||||
11165 | op->DispatchToConnectionPool(); | |||
11166 | ||||
11167 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
11168 | } | |||
11169 | ||||
11170 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvRenameIndex( | |||
11171 | const IndexOrObjectStoreId& aObjectStoreId, | |||
11172 | const IndexOrObjectStoreId& aIndexId, const nsAString& aName) { | |||
11173 | AssertIsOnBackgroundThread(); | |||
11174 | ||||
11175 | if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11175)) { | |||
11176 | return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!" )); | |||
11177 | } | |||
11178 | ||||
11179 | if (NS_WARN_IF(!aIndexId)NS_warn_if_impl(!aIndexId, "!aIndexId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11179)) { | |||
11180 | return IPC_FAIL(this, "No Index id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Index id!" )); | |||
11181 | } | |||
11182 | ||||
11183 | const SafeRefPtr<FullDatabaseMetadata> dbMetadata = | |||
11184 | GetDatabase().MetadataPtr(); | |||
11185 | MOZ_ASSERT(dbMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11185); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata" ")"); do { *((volatile int*)__null) = 11185; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11186 | MOZ_ASSERT(dbMetadata->mNextObjectStoreId > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbMetadata->mNextObjectStoreId > 0)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(dbMetadata->mNextObjectStoreId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbMetadata->mNextObjectStoreId > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11186); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata->mNextObjectStoreId > 0" ")"); do { *((volatile int*)__null) = 11186; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11187 | MOZ_ASSERT(dbMetadata->mNextIndexId > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(dbMetadata->mNextIndexId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbMetadata->mNextIndexId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("dbMetadata->mNextIndexId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11187); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata->mNextIndexId > 0" ")"); do { *((volatile int*)__null) = 11187; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11188 | ||||
11189 | if (NS_WARN_IF(aObjectStoreId >= dbMetadata->mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata->mNextObjectStoreId , "aObjectStoreId >= dbMetadata->mNextObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11189)) { | |||
11190 | return IPC_FAIL(this, "Requested ObjectStoreId does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested ObjectStoreId does not match next ID!" )); | |||
11191 | } | |||
11192 | ||||
11193 | if (NS_WARN_IF(aIndexId >= dbMetadata->mNextIndexId)NS_warn_if_impl(aIndexId >= dbMetadata->mNextIndexId, "aIndexId >= dbMetadata->mNextIndexId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11193)) { | |||
11194 | return IPC_FAIL(this, "Requested IndexId does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested IndexId does not match next ID!" )); | |||
11195 | } | |||
11196 | ||||
11197 | SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata = | |||
11198 | GetMetadataForObjectStoreId(aObjectStoreId); | |||
11199 | ||||
11200 | if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11200)) { | |||
11201 | return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!" )); | |||
11202 | } | |||
11203 | ||||
11204 | SafeRefPtr<FullIndexMetadata> foundIndexMetadata = | |||
11205 | GetMetadataForIndexId(*foundObjectStoreMetadata, aIndexId); | |||
11206 | ||||
11207 | if (NS_WARN_IF(!foundIndexMetadata)NS_warn_if_impl(!foundIndexMetadata, "!foundIndexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11207)) { | |||
11208 | return IPC_FAIL(this, "GetMetadataForIndexId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForIndexId failed!" )); | |||
11209 | } | |||
11210 | ||||
11211 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11211)) { | |||
11212 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | |||
11213 | } | |||
11214 | ||||
11215 | foundIndexMetadata->mCommonMetadata.name() = aName; | |||
11216 | ||||
11217 | RefPtr<RenameIndexOp> renameOp = new RenameIndexOp( | |||
11218 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), | |||
11219 | *foundIndexMetadata, aObjectStoreId); | |||
11220 | ||||
11221 | if (NS_WARN_IF(!renameOp->Init(*this))NS_warn_if_impl(!renameOp->Init(*this), "!renameOp->Init(*this)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11221)) { | |||
11222 | renameOp->Cleanup(); | |||
11223 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | |||
11224 | } | |||
11225 | ||||
11226 | renameOp->DispatchToConnectionPool(); | |||
11227 | ||||
11228 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
11229 | } | |||
11230 | ||||
11231 | PBackgroundIDBRequestParent* | |||
11232 | VersionChangeTransaction::AllocPBackgroundIDBRequestParent( | |||
11233 | const int64_t& aRequestId, const RequestParams& aParams) { | |||
11234 | AssertIsOnBackgroundThread(); | |||
11235 | MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != RequestParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != RequestParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11235); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { *((volatile int*)__null) = 11235; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11236 | ||||
11237 | return AllocRequest(aRequestId, | |||
11238 | std::move(const_cast<RequestParams&>(aParams)), | |||
11239 | IsSameProcessActor()); | |||
11240 | } | |||
11241 | ||||
11242 | mozilla::ipc::IPCResult | |||
11243 | VersionChangeTransaction::RecvPBackgroundIDBRequestConstructor( | |||
11244 | PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId, | |||
11245 | const RequestParams& aParams) { | |||
11246 | AssertIsOnBackgroundThread(); | |||
11247 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11247); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { *((volatile int*)__null) = 11247; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
11248 | MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != RequestParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != RequestParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11248); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { *((volatile int*)__null) = 11248; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11249 | ||||
11250 | if (!StartRequest(aActor)) { | |||
11251 | return IPC_FAIL(this, "StartRequest failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartRequest failed!" )); | |||
11252 | } | |||
11253 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
11254 | } | |||
11255 | ||||
11256 | bool VersionChangeTransaction::DeallocPBackgroundIDBRequestParent( | |||
11257 | PBackgroundIDBRequestParent* aActor) { | |||
11258 | AssertIsOnBackgroundThread(); | |||
11259 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11259); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { *((volatile int*)__null) = 11259; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
11260 | ||||
11261 | return DeallocRequest(aActor); | |||
11262 | } | |||
11263 | ||||
11264 | already_AddRefed<PBackgroundIDBCursorParent> | |||
11265 | VersionChangeTransaction::AllocPBackgroundIDBCursorParent( | |||
11266 | const int64_t& aRequestId, const OpenCursorParams& aParams) { | |||
11267 | AssertIsOnBackgroundThread(); | |||
11268 | ||||
11269 | return AllocCursor(aParams, IsSameProcessActor()); | |||
11270 | } | |||
11271 | ||||
11272 | mozilla::ipc::IPCResult | |||
11273 | VersionChangeTransaction::RecvPBackgroundIDBCursorConstructor( | |||
11274 | PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId, | |||
11275 | const OpenCursorParams& aParams) { | |||
11276 | AssertIsOnBackgroundThread(); | |||
11277 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11277); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { *((volatile int*)__null) = 11277; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
11278 | MOZ_ASSERT(aParams.type() != OpenCursorParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != OpenCursorParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aParams.type() != OpenCursorParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != OpenCursorParams::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11278); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None" ")"); do { *((volatile int*)__null) = 11278; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11279 | ||||
11280 | if (!StartCursor(aActor, aRequestId, aParams)) { | |||
11281 | return IPC_FAIL(this, "StartCursor failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartCursor failed!" )); | |||
11282 | } | |||
11283 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
11284 | } | |||
11285 | ||||
11286 | /******************************************************************************* | |||
11287 | * CursorBase | |||
11288 | ******************************************************************************/ | |||
11289 | ||||
11290 | CursorBase::CursorBase(SafeRefPtr<TransactionBase> aTransaction, | |||
11291 | SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata, | |||
11292 | const Direction aDirection, | |||
11293 | const ConstructFromTransactionBase /*aConstructionTag*/) | |||
11294 | : mTransaction(std::move(aTransaction)), | |||
11295 | mObjectStoreMetadata(WrapNotNull(std::move(aObjectStoreMetadata))), | |||
11296 | mObjectStoreId((*mObjectStoreMetadata)->mCommonMetadata.id()), | |||
11297 | mDirection(aDirection), | |||
11298 | mMaxExtraCount(IndexedDatabaseManager::MaxPreloadExtraRecords()), | |||
11299 | mIsSameProcessActor(!BackgroundParent::IsOtherProcessActor( | |||
11300 | mTransaction->GetBackgroundParent())) { | |||
11301 | AssertIsOnBackgroundThread(); | |||
11302 | MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { *((volatile int*)__null) = 11302; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11303 | ||||
11304 | static_assert( | |||
11305 | OpenCursorParams::T__None == 0 && OpenCursorParams::T__Last == 4, | |||
11306 | "Lots of code here assumes only four types of cursors!"); | |||
11307 | } | |||
11308 | ||||
11309 | template <IDBCursorType CursorType> | |||
11310 | bool Cursor<CursorType>::VerifyRequestParams( | |||
11311 | const CursorRequestParams& aParams, | |||
11312 | const CursorPosition<CursorType>& aPosition) const { | |||
11313 | AssertIsOnBackgroundThread(); | |||
11314 | MOZ_ASSERT(aParams.type() != CursorRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != CursorRequestParams::T__None)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() != CursorRequestParams::T__None))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != CursorRequestParams::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11314); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != CursorRequestParams::T__None" ")"); do { *((volatile int*)__null) = 11314; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11315 | MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "this->mObjectStoreMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11315); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata" ")"); do { *((volatile int*)__null) = 11315; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11316 | if constexpr (IsIndexCursor) { | |||
11317 | MOZ_ASSERT(this->mIndexMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(this->mIndexMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(this->mIndexMetadata))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("this->mIndexMetadata" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11317); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mIndexMetadata" ")"); do { *((volatile int*)__null) = 11317; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11318 | } | |||
11319 | ||||
11320 | #ifdef DEBUG1 | |||
11321 | { | |||
11322 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | |||
11323 | mTransaction->GetMetadataForObjectStoreId(mObjectStoreId); | |||
11324 | if (objectStoreMetadata) { | |||
11325 | MOZ_ASSERT(objectStoreMetadata == (*this->mObjectStoreMetadata))do { static_assert( mozilla::detail::AssertionConditionType< decltype(objectStoreMetadata == (*this->mObjectStoreMetadata ))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(objectStoreMetadata == (*this->mObjectStoreMetadata )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("objectStoreMetadata == (*this->mObjectStoreMetadata)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11325); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata == (*this->mObjectStoreMetadata)" ")"); do { *((volatile int*)__null) = 11325; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11326 | } else { | |||
11327 | MOZ_ASSERT((*this->mObjectStoreMetadata)->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType< decltype((*this->mObjectStoreMetadata)->mDeleted)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!((*this->mObjectStoreMetadata)->mDeleted))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("(*this->mObjectStoreMetadata)->mDeleted" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11327); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*this->mObjectStoreMetadata)->mDeleted" ")"); do { *((volatile int*)__null) = 11327; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11328 | } | |||
11329 | ||||
11330 | if constexpr (IsIndexCursor) { | |||
11331 | if (objectStoreMetadata) { | |||
11332 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | |||
11333 | mTransaction->GetMetadataForIndexId(*objectStoreMetadata, | |||
11334 | this->mIndexId); | |||
11335 | if (indexMetadata) { | |||
11336 | MOZ_ASSERT(indexMetadata == *this->mIndexMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(indexMetadata == *this->mIndexMetadata)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(indexMetadata == *this->mIndexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata == *this->mIndexMetadata" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11336); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata == *this->mIndexMetadata" ")"); do { *((volatile int*)__null) = 11336; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11337 | } else { | |||
11338 | MOZ_ASSERT((*this->mIndexMetadata)->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType< decltype((*this->mIndexMetadata)->mDeleted)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!((*this->mIndexMetadata)->mDeleted))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("(*this->mIndexMetadata)->mDeleted" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11338); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*this->mIndexMetadata)->mDeleted" ")"); do { *((volatile int*)__null) = 11338; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11339 | } | |||
11340 | } | |||
11341 | } | |||
11342 | } | |||
11343 | #endif | |||
11344 | ||||
11345 | if (NS_AUUF_OR_WARN_IF((*this->mObjectStoreMetadata)->mDeleted)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "(*this->mObjectStoreMetadata)->mDeleted" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11345); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "(*this->mObjectStoreMetadata)->mDeleted" ")"); do { * ((volatile int*)__null) = 11345; __attribute__((nomerge)) ::abort (); } while (false); } } while (false); } return aCond; }(((* this->mObjectStoreMetadata)->mDeleted))) { | |||
11346 | return false; | |||
11347 | } | |||
11348 | ||||
11349 | if constexpr (IsIndexCursor) { | |||
11350 | if (NS_AUUF_OR_WARN_IF(this->mIndexMetadata &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11351); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted" ")"); do { *((volatile int*)__null) = 11351; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((this->mIndexMetadata && (*this->mIndexMetadata )->mDeleted)) | |||
11351 | (*this->mIndexMetadata)->mDeleted)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11351); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted" ")"); do { *((volatile int*)__null) = 11351; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((this->mIndexMetadata && (*this->mIndexMetadata )->mDeleted))) { | |||
11352 | return false; | |||
11353 | } | |||
11354 | } | |||
11355 | ||||
11356 | const Key& sortKey = aPosition.GetSortKey(this->IsLocaleAware()); | |||
11357 | ||||
11358 | switch (aParams.type()) { | |||
11359 | case CursorRequestParams::TContinueParams: { | |||
11360 | const Key& key = aParams.get_ContinueParams().key(); | |||
11361 | if (!key.IsUnset()) { | |||
11362 | switch (mDirection) { | |||
11363 | case IDBCursorDirection::Next: | |||
11364 | case IDBCursorDirection::Nextunique: | |||
11365 | if (NS_AUUF_OR_WARN_IF(key <= sortKey)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "key <= sortKey" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11365); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key <= sortKey" ")"); do { *((volatile int*)__null) = 11365 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key <= sortKey))) { | |||
11366 | return false; | |||
11367 | } | |||
11368 | break; | |||
11369 | ||||
11370 | case IDBCursorDirection::Prev: | |||
11371 | case IDBCursorDirection::Prevunique: | |||
11372 | if (NS_AUUF_OR_WARN_IF(key >= sortKey)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "key >= sortKey" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11372); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key >= sortKey" ")"); do { *((volatile int*)__null) = 11372 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key >= sortKey))) { | |||
11373 | return false; | |||
11374 | } | |||
11375 | break; | |||
11376 | ||||
11377 | default: | |||
11378 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11378); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 11378; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
11379 | } | |||
11380 | } | |||
11381 | break; | |||
11382 | } | |||
11383 | ||||
11384 | case CursorRequestParams::TContinuePrimaryKeyParams: { | |||
11385 | if constexpr (IsIndexCursor) { | |||
11386 | const Key& key = aParams.get_ContinuePrimaryKeyParams().key(); | |||
11387 | const Key& primaryKey = | |||
11388 | aParams.get_ContinuePrimaryKeyParams().primaryKey(); | |||
11389 | MOZ_ASSERT(!key.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!key.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!key.IsUnset()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!key.IsUnset()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11389); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!key.IsUnset()" ")"); do { *((volatile int*)__null) = 11389; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11390 | MOZ_ASSERT(!primaryKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!primaryKey.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!primaryKey.IsUnset()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("!primaryKey.IsUnset()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11390); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!primaryKey.IsUnset()" ")"); do { *((volatile int*)__null) = 11390; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11391 | switch (mDirection) { | |||
11392 | case IDBCursorDirection::Next: | |||
11393 | if (NS_AUUF_OR_WARN_IF(key < sortKey ||[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11395); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)" ")"); do { *((volatile int*)__null) = 11395; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey))) | |||
11394 | (key == sortKey &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11395); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)" ")"); do { *((volatile int*)__null) = 11395; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey))) | |||
11395 | primaryKey <= aPosition.mObjectStoreKey))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11395); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)" ")"); do { *((volatile int*)__null) = 11395; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)))) { | |||
11396 | return false; | |||
11397 | } | |||
11398 | break; | |||
11399 | ||||
11400 | case IDBCursorDirection::Prev: | |||
11401 | if (NS_AUUF_OR_WARN_IF(key > sortKey ||[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11403); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)" ")"); do { *((volatile int*)__null) = 11403; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey))) | |||
11402 | (key == sortKey &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11403); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)" ")"); do { *((volatile int*)__null) = 11403; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey))) | |||
11403 | primaryKey >= aPosition.mObjectStoreKey))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11403); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)" ")"); do { *((volatile int*)__null) = 11403; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)))) { | |||
11404 | return false; | |||
11405 | } | |||
11406 | break; | |||
11407 | ||||
11408 | default: | |||
11409 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11409); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 11409; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
11410 | } | |||
11411 | } | |||
11412 | break; | |||
11413 | } | |||
11414 | ||||
11415 | case CursorRequestParams::TAdvanceParams: | |||
11416 | if (NS_AUUF_OR_WARN_IF(!aParams.get_AdvanceParams().count())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "!aParams.get_AdvanceParams().count()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11416); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aParams.get_AdvanceParams().count()" ")"); do { *((volatile int*)__null) = 11416; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!aParams.get_AdvanceParams ().count()))) { | |||
11417 | return false; | |||
11418 | } | |||
11419 | break; | |||
11420 | ||||
11421 | default: | |||
11422 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11422); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 11422; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
11423 | } | |||
11424 | ||||
11425 | return true; | |||
11426 | } | |||
11427 | ||||
11428 | template <IDBCursorType CursorType> | |||
11429 | bool Cursor<CursorType>::Start(const int64_t aRequestId, | |||
11430 | const OpenCursorParams& aParams) { | |||
11431 | AssertIsOnBackgroundThread(); | |||
11432 | MOZ_ASSERT(aParams.type() == ToOpenCursorParamsType(CursorType))do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == ToOpenCursorParamsType(CursorType) )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == ToOpenCursorParamsType(CursorType) ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aParams.type() == ToOpenCursorParamsType(CursorType)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11432); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == ToOpenCursorParamsType(CursorType)" ")"); do { *((volatile int*)__null) = 11432; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11433 | MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "this->mObjectStoreMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11433); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata" ")"); do { *((volatile int*)__null) = 11433; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11434 | ||||
11435 | if (NS_AUUF_OR_WARN_IF(mCurrentlyRunningOp)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "mCurrentlyRunningOp" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11435); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mCurrentlyRunningOp" ")"); do { *((volatile int*)__null) = 11435 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mCurrentlyRunningOp))) { | |||
11436 | return false; | |||
11437 | } | |||
11438 | ||||
11439 | const Maybe<SerializedKeyRange>& optionalKeyRange = | |||
11440 | GetCommonOpenCursorParams(aParams).optionalKeyRange(); | |||
11441 | ||||
11442 | const RefPtr<OpenOp> openOp = new OpenOp(this, aRequestId, optionalKeyRange); | |||
11443 | ||||
11444 | if (NS_WARN_IF(!openOp->Init(*mTransaction))NS_warn_if_impl(!openOp->Init(*mTransaction), "!openOp->Init(*mTransaction)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11444)) { | |||
11445 | openOp->Cleanup(); | |||
11446 | return false; | |||
11447 | } | |||
11448 | ||||
11449 | openOp->DispatchToConnectionPool(); | |||
11450 | mCurrentlyRunningOp = openOp; | |||
11451 | ||||
11452 | return true; | |||
11453 | } | |||
11454 | ||||
11455 | void ValueCursorBase::ProcessFiles(CursorResponse& aResponse, | |||
11456 | const FilesArray& aFiles) { | |||
11457 | MOZ_ASSERT_IF(do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse .type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse ::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(aFiles. IsEmpty())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11463); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { *((volatile int*)__null) = 11463; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
11458 | aResponse.type() == CursorResponse::Tnsresult ||do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse .type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse ::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(aFiles. IsEmpty())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11463); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { *((volatile int*)__null) = 11463; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
11459 | aResponse.type() == CursorResponse::Tvoid_t ||do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse .type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse ::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(aFiles. IsEmpty())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11463); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { *((volatile int*)__null) = 11463; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
11460 | aResponse.type() ==do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse .type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse ::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(aFiles. IsEmpty())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11463); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { *((volatile int*)__null) = 11463; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
11461 | CursorResponse::TArrayOfObjectStoreKeyCursorResponse ||do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse .type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse ::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(aFiles. IsEmpty())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11463); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { *((volatile int*)__null) = 11463; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
11462 | aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse,do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse .type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse ::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(aFiles. IsEmpty())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11463); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { *((volatile int*)__null) = 11463; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
11463 | aFiles.IsEmpty())do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse .type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse ::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(aFiles. IsEmpty())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11463); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { *((volatile int*)__null) = 11463; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
11464 | ||||
11465 | for (size_t i = 0; i < aFiles.Length(); ++i) { | |||
11466 | const auto& files = aFiles[i]; | |||
11467 | if (!files.IsEmpty()) { | |||
11468 | // TODO: Replace this assertion by one that checks if the response type | |||
11469 | // matches the cursor type, at a more generic location. | |||
11470 | MOZ_ASSERT(aResponse.type() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11473); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" ")"); do { *((volatile int*)__null) = 11473; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
11471 | CursorResponse::TArrayOfObjectStoreCursorResponse ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11473); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" ")"); do { *((volatile int*)__null) = 11473; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
11472 | aResponse.type() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11473); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" ")"); do { *((volatile int*)__null) = 11473; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
11473 | CursorResponse::TArrayOfIndexCursorResponse)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11473); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" ")"); do { *((volatile int*)__null) = 11473; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11474 | ||||
11475 | SerializedStructuredCloneReadInfo* serializedInfo = nullptr; | |||
11476 | switch (aResponse.type()) { | |||
11477 | case CursorResponse::TArrayOfObjectStoreCursorResponse: { | |||
11478 | auto& responses = aResponse.get_ArrayOfObjectStoreCursorResponse(); | |||
11479 | MOZ_ASSERT(i < responses.Length())do { static_assert( mozilla::detail::AssertionConditionType< decltype(i < responses.Length())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(i < responses.Length()))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("i < responses.Length()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11479); AnnotateMozCrashReason("MOZ_ASSERT" "(" "i < responses.Length()" ")"); do { *((volatile int*)__null) = 11479; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11480 | serializedInfo = &responses[i].cloneInfo(); | |||
11481 | break; | |||
11482 | } | |||
11483 | ||||
11484 | case CursorResponse::TArrayOfIndexCursorResponse: { | |||
11485 | auto& responses = aResponse.get_ArrayOfIndexCursorResponse(); | |||
11486 | MOZ_ASSERT(i < responses.Length())do { static_assert( mozilla::detail::AssertionConditionType< decltype(i < responses.Length())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(i < responses.Length()))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("i < responses.Length()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11486); AnnotateMozCrashReason("MOZ_ASSERT" "(" "i < responses.Length()" ")"); do { *((volatile int*)__null) = 11486; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11487 | serializedInfo = &responses[i].cloneInfo(); | |||
11488 | break; | |||
11489 | } | |||
11490 | ||||
11491 | default: | |||
11492 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11492); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 11492; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
11493 | } | |||
11494 | ||||
11495 | MOZ_ASSERT(serializedInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(serializedInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(serializedInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("serializedInfo" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11495); AnnotateMozCrashReason("MOZ_ASSERT" "(" "serializedInfo" ")"); do { *((volatile int*)__null) = 11495; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11496 | MOZ_ASSERT(serializedInfo->files().IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(serializedInfo->files().IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(serializedInfo->files().IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("serializedInfo->files().IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11496); AnnotateMozCrashReason("MOZ_ASSERT" "(" "serializedInfo->files().IsEmpty()" ")"); do { *((volatile int*)__null) = 11496; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11497 | MOZ_ASSERT(this->mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(this->mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(this->mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("this->mDatabase" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mDatabase" ")"); do { *((volatile int*)__null) = 11497; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11498 | ||||
11499 | QM_TRY_UNWRAP(serializedInfo->files(),auto tryResult3258 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult3258 .isErr()), 0))) { auto tryTempError = tryResult3258.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11504, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return ; } serializedInfo->files () = tryResult3258.unwrap(); | |||
11500 | SerializeStructuredCloneFiles(this->mDatabase, files,auto tryResult3258 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult3258 .isErr()), 0))) { auto tryTempError = tryResult3258.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11504, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return ; } serializedInfo->files () = tryResult3258.unwrap(); | |||
11501 | /* aForPreprocess */ false),auto tryResult3258 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult3258 .isErr()), 0))) { auto tryTempError = tryResult3258.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11504, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return ; } serializedInfo->files () = tryResult3258.unwrap(); | |||
11502 | QM_VOID, [&aResponse](const nsresult result) {auto tryResult3258 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult3258 .isErr()), 0))) { auto tryTempError = tryResult3258.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11504, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return ; } serializedInfo->files () = tryResult3258.unwrap(); | |||
11503 | aResponse = ClampResultCode(result);auto tryResult3258 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult3258 .isErr()), 0))) { auto tryTempError = tryResult3258.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11504, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return ; } serializedInfo->files () = tryResult3258.unwrap(); | |||
11504 | })auto tryResult3258 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult3258 .isErr()), 0))) { auto tryTempError = tryResult3258.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11504, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return ; } serializedInfo->files () = tryResult3258.unwrap();; | |||
11505 | } | |||
11506 | } | |||
11507 | } | |||
11508 | ||||
11509 | template <IDBCursorType CursorType> | |||
11510 | void Cursor<CursorType>::SendResponseInternal( | |||
11511 | CursorResponse& aResponse, const FilesArrayT<CursorType>& aFiles) { | |||
11512 | AssertIsOnBackgroundThread(); | |||
11513 | MOZ_ASSERT(aResponse.type() != CursorResponse::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aResponse.type() != CursorResponse::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aResponse.type() != CursorResponse::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aResponse.type() != CursorResponse::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11513); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() != CursorResponse::T__None" ")"); do { *((volatile int*)__null) = 11513; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11514 | MOZ_ASSERT_IF(aResponse.type() == CursorResponse::Tnsresult,do { if (aResponse.type() == CursorResponse::Tnsresult) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult ())), 0))))>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl (aResponse.get_nsresult())), 0)))))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))" ")"); do { *((volatile int*)__null) = 11515; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
11515 | NS_FAILED(aResponse.get_nsresult()))do { if (aResponse.type() == CursorResponse::Tnsresult) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult ())), 0))))>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl (aResponse.get_nsresult())), 0)))))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))" ")"); do { *((volatile int*)__null) = 11515; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
11516 | MOZ_ASSERT_IF(aResponse.type() == CursorResponse::Tnsresult,do { if (aResponse.type() == CursorResponse::Tnsresult) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11518); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33" ")"); do { *((volatile int*)__null) = 11518; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
11517 | NS_ERROR_GET_MODULE(aResponse.get_nsresult()) ==do { if (aResponse.type() == CursorResponse::Tnsresult) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11518); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33" ")"); do { *((volatile int*)__null) = 11518; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
11518 | NS_ERROR_MODULE_DOM_INDEXEDDB)do { if (aResponse.type() == CursorResponse::Tnsresult) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11518); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33" ")"); do { *((volatile int*)__null) = 11518; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
11519 | MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "this->mObjectStoreMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11519); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata" ")"); do { *((volatile int*)__null) = 11519; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11520 | MOZ_ASSERT(mCurrentlyRunningOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCurrentlyRunningOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCurrentlyRunningOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCurrentlyRunningOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11520); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCurrentlyRunningOp" ")"); do { *((volatile int*)__null) = 11520; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11521 | ||||
11522 | KeyValueBase::ProcessFiles(aResponse, aFiles); | |||
11523 | ||||
11524 | // Work around the deleted function by casting to the base class. | |||
11525 | QM_WARNONLY_TRY(OkIf({auto tryResult3259 = (OkIf( static_cast<PBackgroundIDBCursorParent *>(this)->SendResponse(aResponse))); static_assert(std:: is_empty_v<typename decltype(tryResult3259)::ok_type>); if ((__builtin_expect(!!(tryResult3259.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf( static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))" , tryResult3259.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11526, mozilla::dom::quota::Severity::Warning); }} | |||
11526 | static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))){auto tryResult3259 = (OkIf( static_cast<PBackgroundIDBCursorParent *>(this)->SendResponse(aResponse))); static_assert(std:: is_empty_v<typename decltype(tryResult3259)::ok_type>); if ((__builtin_expect(!!(tryResult3259.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf( static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))" , tryResult3259.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11526, mozilla::dom::quota::Severity::Warning); }}; | |||
11527 | ||||
11528 | mCurrentlyRunningOp = nullptr; | |||
11529 | } | |||
11530 | ||||
11531 | template <IDBCursorType CursorType> | |||
11532 | void Cursor<CursorType>::ActorDestroy(ActorDestroyReason aWhy) { | |||
11533 | AssertIsOnBackgroundThread(); | |||
11534 | ||||
11535 | if (mCurrentlyRunningOp) { | |||
11536 | mCurrentlyRunningOp->NoteActorDestroyed(); | |||
11537 | } | |||
11538 | ||||
11539 | if constexpr (IsValueCursor) { | |||
11540 | this->mBackgroundParent.destroy(); | |||
11541 | } | |||
11542 | this->mObjectStoreMetadata.destroy(); | |||
11543 | if constexpr (IsIndexCursor) { | |||
11544 | this->mIndexMetadata.destroy(); | |||
11545 | } | |||
11546 | } | |||
11547 | ||||
11548 | template <IDBCursorType CursorType> | |||
11549 | mozilla::ipc::IPCResult Cursor<CursorType>::RecvDeleteMe() { | |||
11550 | AssertIsOnBackgroundThread(); | |||
11551 | MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "this->mObjectStoreMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11551); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata" ")"); do { *((volatile int*)__null) = 11551; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11552 | ||||
11553 | if (NS_WARN_IF(mCurrentlyRunningOp)NS_warn_if_impl(mCurrentlyRunningOp, "mCurrentlyRunningOp", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11553)) { | |||
11554 | return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!" )) | |||
11555 | this,mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!" )) | |||
11556 | "Attempt to delete a cursor with a non-null mCurrentlyRunningOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!" )); | |||
11557 | } | |||
11558 | ||||
11559 | QM_WARNONLY_TRY(OkIf(PBackgroundIDBCursorParent::Send__delete__(this))){auto tryResult3260 = (OkIf(PBackgroundIDBCursorParent::Send__delete__ (this))); static_assert(std::is_empty_v<typename decltype( tryResult3260)::ok_type>); if ((__builtin_expect(!!(tryResult3260 .isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBCursorParent::Send__delete__(this))" , tryResult3260.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11559, mozilla::dom::quota::Severity::Warning); }}; | |||
11560 | ||||
11561 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
11562 | } | |||
11563 | ||||
11564 | template <IDBCursorType CursorType> | |||
11565 | mozilla::ipc::IPCResult Cursor<CursorType>::RecvContinue( | |||
11566 | const int64_t& aRequestId, const CursorRequestParams& aParams, | |||
11567 | const Key& aCurrentKey, const Key& aCurrentObjectStoreKey) { | |||
11568 | AssertIsOnBackgroundThread(); | |||
11569 | MOZ_ASSERT(aParams.type() != CursorRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() != CursorRequestParams::T__None)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() != CursorRequestParams::T__None))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != CursorRequestParams::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11569); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != CursorRequestParams::T__None" ")"); do { *((volatile int*)__null) = 11569; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11570 | MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "this->mObjectStoreMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11570); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata" ")"); do { *((volatile int*)__null) = 11570; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11571 | if constexpr (IsIndexCursor) { | |||
11572 | MOZ_ASSERT(this->mIndexMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(this->mIndexMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(this->mIndexMetadata))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("this->mIndexMetadata" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11572); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mIndexMetadata" ")"); do { *((volatile int*)__null) = 11572; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11573 | } | |||
11574 | ||||
11575 | const bool trustParams = | |||
11576 | #ifdef DEBUG1 | |||
11577 | // Always verify parameters in DEBUG builds! | |||
11578 | false | |||
11579 | #else | |||
11580 | this->mIsSameProcessActor | |||
11581 | #endif | |||
11582 | ; | |||
11583 | ||||
11584 | MOZ_ASSERT(!aCurrentKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aCurrentKey.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aCurrentKey.IsUnset()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aCurrentKey.IsUnset()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11584); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aCurrentKey.IsUnset()" ")"); do { *((volatile int*)__null) = 11584; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11585 | ||||
11586 | QM_TRY_UNWRAP(auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap(); | |||
11587 | auto position,auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap(); | |||
11588 | ([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> {auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap(); | |||
11589 | if constexpr (IsIndexCursor) {auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap(); | |||
11590 | auto localeAwarePosition = Key{};auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap(); | |||
11591 | if (this->IsLocaleAware()) {auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap(); | |||
11592 | QM_TRY_UNWRAP(auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap(); | |||
11593 | localeAwarePosition,auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap(); | |||
11594 | aCurrentKey.ToLocaleAwareKey(this->mLocale),auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap(); | |||
11595 | Err(IPC_FAIL(this, "aCurrentKey.ToLocaleAwareKey failed!")));auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap(); | |||
11596 | }auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap(); | |||
11597 | return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition,auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap(); | |||
11598 | aCurrentObjectStoreKey};auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap(); | |||
11599 | } else {auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap(); | |||
11600 | return CursorPosition<CursorType>{aCurrentKey};auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap(); | |||
11601 | }auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap(); | |||
11602 | }()))auto tryResult3262 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull (this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!")))) ; } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult3262.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult3261 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult3261.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3261.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11595, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult3261.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult3262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11602, mozilla::dom::quota::Severity::Error); return tryResult3262 .propagateErr(); } auto position = tryResult3262.unwrap();; | |||
11603 | ||||
11604 | if (!trustParams && !VerifyRequestParams(aParams, position)) { | |||
11605 | return IPC_FAIL(this, "VerifyRequestParams failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("VerifyRequestParams failed!" )); | |||
11606 | } | |||
11607 | ||||
11608 | if (NS_WARN_IF(mCurrentlyRunningOp)NS_warn_if_impl(mCurrentlyRunningOp, "mCurrentlyRunningOp", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11608)) { | |||
11609 | return IPC_FAIL(this, "Cursor is CurrentlyRunningOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Cursor is CurrentlyRunningOp!" )); | |||
11610 | } | |||
11611 | ||||
11612 | if (NS_WARN_IF(mTransaction->mCommitOrAbortReceived)NS_warn_if_impl(mTransaction->mCommitOrAbortReceived, "mTransaction->mCommitOrAbortReceived" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11612)) { | |||
11613 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | |||
11614 | } | |||
11615 | ||||
11616 | const RefPtr<ContinueOp> continueOp = | |||
11617 | new ContinueOp(this, aRequestId, aParams, std::move(position)); | |||
11618 | if (NS_WARN_IF(!continueOp->Init(*mTransaction))NS_warn_if_impl(!continueOp->Init(*mTransaction), "!continueOp->Init(*mTransaction)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11618)) { | |||
11619 | continueOp->Cleanup(); | |||
11620 | return IPC_FAIL(this, "ContinueOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ContinueOp initialization failed!" )); | |||
11621 | } | |||
11622 | ||||
11623 | continueOp->DispatchToConnectionPool(); | |||
11624 | mCurrentlyRunningOp = continueOp; | |||
11625 | ||||
11626 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
11627 | } | |||
11628 | ||||
11629 | /******************************************************************************* | |||
11630 | * DatabaseFileManager | |||
11631 | ******************************************************************************/ | |||
11632 | ||||
11633 | DatabaseFileManager::MutexType DatabaseFileManager::sMutex; | |||
11634 | ||||
11635 | DatabaseFileManager::DatabaseFileManager( | |||
11636 | PersistenceType aPersistenceType, | |||
11637 | const quota::OriginMetadata& aOriginMetadata, | |||
11638 | const nsAString& aDatabaseName, const nsCString& aDatabaseID, | |||
11639 | const nsAString& aDatabaseFilePath, bool aEnforcingQuota, | |||
11640 | bool aIsInPrivateBrowsingMode) | |||
11641 | : mPersistenceType(aPersistenceType), | |||
11642 | mOriginMetadata(aOriginMetadata), | |||
11643 | mDatabaseName(aDatabaseName), | |||
11644 | mDatabaseID(aDatabaseID), | |||
11645 | mDatabaseFilePath(aDatabaseFilePath), | |||
11646 | mCipherKeyManager( | |||
11647 | aIsInPrivateBrowsingMode | |||
11648 | ? new IndexedDBCipherKeyManager("IndexedDBCipherKeyManager") | |||
11649 | : nullptr), | |||
11650 | mDatabaseVersion(0), | |||
11651 | mEnforcingQuota(aEnforcingQuota), | |||
11652 | mIsInPrivateBrowsingMode(aIsInPrivateBrowsingMode) {} | |||
11653 | ||||
11654 | nsresult DatabaseFileManager::Init(nsIFile* aDirectory, | |||
11655 | mozIStorageConnection& aConnection) { | |||
11656 | AssertIsOnIOThread(); | |||
11657 | MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11657); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { *((volatile int*)__null) = 11657; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11658 | ||||
11659 | { | |||
11660 | QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult3263 = (ExistsAsDirectory(*aDirectory)); if ((__builtin_expect (!!(tryResult3263.isErr()), 0))) { mozilla::dom::quota::HandleError ("ExistsAsDirectory(*aDirectory)", tryResult3263.inspectErr() , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11661, mozilla::dom::quota::Severity::Error); return tryResult3263 .propagateErr(); } const bool& existsAsDirectory = tryResult3263 .inspect(); | |||
11661 | ExistsAsDirectory(*aDirectory))auto tryResult3263 = (ExistsAsDirectory(*aDirectory)); if ((__builtin_expect (!!(tryResult3263.isErr()), 0))) { mozilla::dom::quota::HandleError ("ExistsAsDirectory(*aDirectory)", tryResult3263.inspectErr() , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11661, mozilla::dom::quota::Severity::Error); return tryResult3263 .propagateErr(); } const bool& existsAsDirectory = tryResult3263 .inspect();; | |||
11662 | ||||
11663 | if (!existsAsDirectory) { | |||
11664 | QM_TRY(MOZ_TO_RESULT(aDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))){auto tryResult3264 = (ToResult(aDirectory->Create(nsIFile ::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename decltype(tryResult3264)::ok_type>); if ((__builtin_expect (!!(tryResult3264.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryResult3264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11664, mozilla::dom::quota::Severity::Error); return tryResult3264 .propagateErr(); }}; | |||
11665 | } | |||
11666 | ||||
11667 | QM_TRY_UNWRAP(auto path, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3265 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (aDirectory)>::GetPath), (aDirectory))); if ((__builtin_expect (!!(tryResult3265.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetPath), (aDirectory))" , tryResult3265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11668, mozilla::dom::quota::Severity::Error); return tryResult3265 .propagateErr(); } auto path = tryResult3265.unwrap(); | |||
11668 | nsString, aDirectory, GetPath))auto tryResult3265 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (aDirectory)>::GetPath), (aDirectory))); if ((__builtin_expect (!!(tryResult3265.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetPath), (aDirectory))" , tryResult3265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11668, mozilla::dom::quota::Severity::Error); return tryResult3265 .propagateErr(); } auto path = tryResult3265.unwrap();; | |||
11669 | ||||
11670 | mDirectoryPath.init(std::move(path)); | |||
11671 | } | |||
11672 | ||||
11673 | QM_TRY_INSPECT(const auto& journalDirectory,auto tryResult3266 = (CloneFileAndAppend(*aDirectory, kJournalDirectoryName )); if ((__builtin_expect(!!(tryResult3266.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, kJournalDirectoryName)" , tryResult3266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11674, mozilla::dom::quota::Severity::Error); return tryResult3266 .propagateErr(); } const auto& journalDirectory = tryResult3266 .inspect(); | |||
11674 | CloneFileAndAppend(*aDirectory, kJournalDirectoryName))auto tryResult3266 = (CloneFileAndAppend(*aDirectory, kJournalDirectoryName )); if ((__builtin_expect(!!(tryResult3266.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, kJournalDirectoryName)" , tryResult3266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11674, mozilla::dom::quota::Severity::Error); return tryResult3266 .propagateErr(); } const auto& journalDirectory = tryResult3266 .inspect();; | |||
11675 | ||||
11676 | // We don't care if it doesn't exist at all, but if it does exist, make sure | |||
11677 | // it's a directory. | |||
11678 | QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult3267 = (ExistsAsDirectory(*journalDirectory)); if ((__builtin_expect(!!(tryResult3267.isErr()), 0))) { mozilla ::dom::quota::HandleError("ExistsAsDirectory(*journalDirectory)" , tryResult3267.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11679, mozilla::dom::quota::Severity::Error); return tryResult3267 .propagateErr(); } const bool& existsAsDirectory = tryResult3267 .inspect(); | |||
11679 | ExistsAsDirectory(*journalDirectory))auto tryResult3267 = (ExistsAsDirectory(*journalDirectory)); if ((__builtin_expect(!!(tryResult3267.isErr()), 0))) { mozilla ::dom::quota::HandleError("ExistsAsDirectory(*journalDirectory)" , tryResult3267.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11679, mozilla::dom::quota::Severity::Error); return tryResult3267 .propagateErr(); } const bool& existsAsDirectory = tryResult3267 .inspect();; | |||
11680 | Unused << existsAsDirectory; | |||
11681 | ||||
11682 | { | |||
11683 | QM_TRY_UNWRAP(auto path, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3268 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (journalDirectory)>::GetPath), (journalDirectory))); if (( __builtin_expect(!!(tryResult3268.isErr()), 0))) { mozilla::dom ::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory))" , tryResult3268.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11684, mozilla::dom::quota::Severity::Error); return tryResult3268 .propagateErr(); } auto path = tryResult3268.unwrap(); | |||
11684 | nsString, journalDirectory, GetPath))auto tryResult3268 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (journalDirectory)>::GetPath), (journalDirectory))); if (( __builtin_expect(!!(tryResult3268.isErr()), 0))) { mozilla::dom ::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory))" , tryResult3268.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11684, mozilla::dom::quota::Severity::Error); return tryResult3268 .propagateErr(); } auto path = tryResult3268.unwrap();; | |||
11685 | ||||
11686 | mJournalDirectoryPath.init(std::move(path)); | |||
11687 | } | |||
11688 | ||||
11689 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3269 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, refcount FROM file"_ns)); if (( __builtin_expect(!!(tryResult3269.isErr()), 0))) { mozilla::dom ::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, refcount FROM file\"_ns)" , tryResult3269.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11692, mozilla::dom::quota::Severity::Error); return tryResult3269 .propagateErr(); } const auto& stmt = tryResult3269.inspect (); | |||
11690 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3269 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, refcount FROM file"_ns)); if (( __builtin_expect(!!(tryResult3269.isErr()), 0))) { mozilla::dom ::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, refcount FROM file\"_ns)" , tryResult3269.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11692, mozilla::dom::quota::Severity::Error); return tryResult3269 .propagateErr(); } const auto& stmt = tryResult3269.inspect (); | |||
11691 | nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult3269 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, refcount FROM file"_ns)); if (( __builtin_expect(!!(tryResult3269.isErr()), 0))) { mozilla::dom ::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, refcount FROM file\"_ns)" , tryResult3269.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11692, mozilla::dom::quota::Severity::Error); return tryResult3269 .propagateErr(); } const auto& stmt = tryResult3269.inspect (); | |||
11692 | CreateStatement, "SELECT id, refcount FROM file"_ns))auto tryResult3269 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, refcount FROM file"_ns)); if (( __builtin_expect(!!(tryResult3269.isErr()), 0))) { mozilla::dom ::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, refcount FROM file\"_ns)" , tryResult3269.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11692, mozilla::dom::quota::Severity::Error); return tryResult3269 .propagateErr(); } const auto& stmt = tryResult3269.inspect ();; | |||
11693 | ||||
11694 | QM_TRY({auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }} | |||
11695 | CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }} | |||
11696 | QM_TRY_INSPECT(const int64_t& id,{auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }} | |||
11697 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 0));{auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }} | |||
11698 | QM_TRY_INSPECT(const int32_t& dbRefCnt,{auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }} | |||
11699 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt32, 1));{auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }} | |||
11700 | ||||
11701 | // We put a raw pointer into the hash table, so the memory refcount will{auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }} | |||
11702 | // be 0, but the dbRefCnt is non-zero, which will keep the{auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }} | |||
11703 | // DatabaseFileInfo object alive.{auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }} | |||
11704 | MOZ_ASSERT(dbRefCnt > 0);{auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }} | |||
11705 | mFileInfos.InsertOrUpdate({auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }} | |||
11706 | id, MakeNotNull<DatabaseFileInfo*>({auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }} | |||
11707 | FileInfoManagerGuard{}, SafeRefPtrFromThis(), id,{auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }} | |||
11708 | static_cast<nsrefcnt>(dbRefCnt)));{auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }} | |||
11709 | ||||
11710 | mLastFileId = std::max(id, mLastFileId);{auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }} | |||
11711 | ||||
11712 | return Ok{};{auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }} | |||
11713 | })){auto tryResult3272 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ( (__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11697, mozilla::dom::quota::Severity::Error); return tryResult3270 .propagateErr(); } const int64_t& id = tryResult3270.inspect ();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)" , tryResult3271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11699, mozilla::dom::quota::Severity::Error); return tryResult3271 .propagateErr(); } const int32_t& dbRefCnt = tryResult3271 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"); do { *((volatile int*)__null) = 11704; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); mFileInfos .InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard {}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt ))); mLastFileId = std::max(id, mLastFileId); return Ok{}; }) ); static_assert(std::is_empty_v<typename decltype(tryResult3272 )::ok_type>); if ((__builtin_expect(!!(tryResult3272.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult3270 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3270.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3270.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11697, mozilla::dom::quota::Severity::Error); return tryResult3270.propagateErr(); } const int64_t& id = tryResult3270.inspect();; auto tryResult3271 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult3271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult3271.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11699, mozilla::dom::quota::Severity::Error); return tryResult3271.propagateErr(); } const int32_t& dbRefCnt = tryResult3271.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11704; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })" , tryResult3272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11713, mozilla::dom::quota::Severity::Error); return tryResult3272 .propagateErr(); }}; | |||
11714 | ||||
11715 | mInitialized.Flip(); | |||
11716 | ||||
11717 | return NS_OK; | |||
11718 | } | |||
11719 | ||||
11720 | nsCOMPtr<nsIFile> DatabaseFileManager::GetDirectory() { | |||
11721 | if (!this->AssertValid()) { | |||
11722 | return nullptr; | |||
11723 | } | |||
11724 | ||||
11725 | return GetFileForPath(*mDirectoryPath); | |||
11726 | } | |||
11727 | ||||
11728 | nsCOMPtr<nsIFile> DatabaseFileManager::GetCheckedDirectory() { | |||
11729 | auto directory = GetDirectory(); | |||
11730 | if (NS_WARN_IF(!directory)NS_warn_if_impl(!directory, "!directory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11730)) { | |||
11731 | return nullptr; | |||
11732 | } | |||
11733 | ||||
11734 | DebugOnly<bool> exists; | |||
11735 | MOZ_ASSERT(NS_SUCCEEDED(directory->Exists(&exists)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory ->Exists(&exists))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(directory->Exists(&exists))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->Exists(&exists))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11735); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->Exists(&exists))), 1)))" ")"); do { *((volatile int*)__null) = 11735; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11736 | MOZ_ASSERT(exists)do { static_assert( mozilla::detail::AssertionConditionType< decltype(exists)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(exists))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("exists", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11736); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")" ); do { *((volatile int*)__null) = 11736; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
11737 | ||||
11738 | DebugOnly<bool> isDirectory; | |||
11739 | MOZ_ASSERT(NS_SUCCEEDED(directory->IsDirectory(&isDirectory)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory ->IsDirectory(&isDirectory))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(directory->IsDirectory(&isDirectory))) , 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11739); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 11739; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11740 | MOZ_ASSERT(isDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(isDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11740); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 11740; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11741 | ||||
11742 | return directory; | |||
11743 | } | |||
11744 | ||||
11745 | nsCOMPtr<nsIFile> DatabaseFileManager::GetJournalDirectory() { | |||
11746 | if (!this->AssertValid()) { | |||
11747 | return nullptr; | |||
11748 | } | |||
11749 | ||||
11750 | return GetFileForPath(*mJournalDirectoryPath); | |||
11751 | } | |||
11752 | ||||
11753 | nsCOMPtr<nsIFile> DatabaseFileManager::EnsureJournalDirectory() { | |||
11754 | // This can happen on the IO or on a transaction thread. | |||
11755 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11755); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 11755; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11756 | ||||
11757 | auto journalDirectory = GetFileForPath(*mJournalDirectoryPath); | |||
11758 | QM_TRY(OkIf(journalDirectory), nullptr){auto tryResult3273 = (OkIf(journalDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3273)::ok_type >); if ((__builtin_expect(!!(tryResult3273.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3273 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(journalDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11758, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)" , tryTempError, nullptr); }}; | |||
11759 | ||||
11760 | QM_TRY_INSPECT(const bool& exists,auto tryResult3274 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::Exists)); if ((__builtin_expect(!!(tryResult3274.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3274 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11762, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)" , tryTempError, nullptr); } const bool& exists = tryResult3274 .inspect(); | |||
11761 | MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, Exists),auto tryResult3274 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::Exists)); if ((__builtin_expect(!!(tryResult3274.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3274 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11762, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)" , tryTempError, nullptr); } const bool& exists = tryResult3274 .inspect(); | |||
11762 | nullptr)auto tryResult3274 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::Exists)); if ((__builtin_expect(!!(tryResult3274.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3274 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11762, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)" , tryTempError, nullptr); } const bool& exists = tryResult3274 .inspect();; | |||
11763 | ||||
11764 | if (exists) { | |||
11765 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult3275 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::IsDirectory)); if ((__builtin_expect(!!(tryResult3275. isErr()), 0))) { auto tryTempError __attribute__((__unused__) ) = tryResult3275.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11767, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)" , tryTempError, nullptr); } const bool& isDirectory = tryResult3275 .inspect(); | |||
11766 | MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, IsDirectory),auto tryResult3275 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::IsDirectory)); if ((__builtin_expect(!!(tryResult3275. isErr()), 0))) { auto tryTempError __attribute__((__unused__) ) = tryResult3275.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11767, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)" , tryTempError, nullptr); } const bool& isDirectory = tryResult3275 .inspect(); | |||
11767 | nullptr)auto tryResult3275 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::IsDirectory)); if ((__builtin_expect(!!(tryResult3275. isErr()), 0))) { auto tryTempError __attribute__((__unused__) ) = tryResult3275.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11767, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)" , tryTempError, nullptr); } const bool& isDirectory = tryResult3275 .inspect();; | |||
11768 | ||||
11769 | QM_TRY(OkIf(isDirectory), nullptr){auto tryResult3276 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult3276)::ok_type>); if ((__builtin_expect(!!(tryResult3276.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3276.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11769, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, nullptr); }}; | |||
11770 | } else { | |||
11771 | QM_TRY({auto tryResult3277 = (ToResult(journalDirectory->Create(nsIFile ::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename decltype(tryResult3277)::ok_type>); if ((__builtin_expect (!!(tryResult3277.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3277.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11773, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryTempError, nullptr); }} | |||
11772 | MOZ_TO_RESULT(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755)),{auto tryResult3277 = (ToResult(journalDirectory->Create(nsIFile ::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename decltype(tryResult3277)::ok_type>); if ((__builtin_expect (!!(tryResult3277.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3277.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11773, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryTempError, nullptr); }} | |||
11773 | nullptr){auto tryResult3277 = (ToResult(journalDirectory->Create(nsIFile ::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename decltype(tryResult3277)::ok_type>); if ((__builtin_expect (!!(tryResult3277.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3277.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11773, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryTempError, nullptr); }}; | |||
11774 | } | |||
11775 | ||||
11776 | return journalDirectory; | |||
11777 | } | |||
11778 | ||||
11779 | // static | |||
11780 | nsCOMPtr<nsIFile> DatabaseFileManager::GetFileForId(nsIFile* aDirectory, | |||
11781 | int64_t aId) { | |||
11782 | MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11782); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { *((volatile int*)__null) = 11782; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11783 | MOZ_ASSERT(aId > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11783); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aId > 0" ")"); do { *((volatile int*)__null) = 11783; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11784 | ||||
11785 | QM_TRY_RETURN(CloneFileAndAppend(*aDirectory, IntToString(aId)), nullptr){auto tryResult3278 = (CloneFileAndAppend(*aDirectory, IntToString (aId))); if ((__builtin_expect(!!(tryResult3278.isErr()), 0)) ) { auto tryTempError __attribute__((__unused__)) = tryResult3278 .unwrapErr(); mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, IntToString(aId))" , tryResult3278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11785, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CloneFileAndAppend(*aDirectory, IntToString(aId))" , tryTempError, nullptr); } return tryResult3278.unwrap();}; | |||
11786 | } | |||
11787 | ||||
11788 | // static | |||
11789 | nsCOMPtr<nsIFile> DatabaseFileManager::GetCheckedFileForId(nsIFile* aDirectory, | |||
11790 | int64_t aId) { | |||
11791 | auto file = GetFileForId(aDirectory, aId); | |||
11792 | if (NS_WARN_IF(!file)NS_warn_if_impl(!file, "!file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11792)) { | |||
11793 | return nullptr; | |||
11794 | } | |||
11795 | ||||
11796 | DebugOnly<bool> exists; | |||
11797 | MOZ_ASSERT(NS_SUCCEEDED(file->Exists(&exists)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(file-> Exists(&exists))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(file->Exists(&exists))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->Exists(&exists))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11797); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->Exists(&exists))), 1)))" ")"); do { *((volatile int*)__null) = 11797; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11798 | MOZ_ASSERT(exists)do { static_assert( mozilla::detail::AssertionConditionType< decltype(exists)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(exists))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("exists", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")" ); do { *((volatile int*)__null) = 11798; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
11799 | ||||
11800 | DebugOnly<bool> isFile; | |||
11801 | MOZ_ASSERT(NS_SUCCEEDED(file->IsFile(&isFile)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(file-> IsFile(&isFile))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(file->IsFile(&isFile))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->IsFile(&isFile))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11801); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->IsFile(&isFile))), 1)))" ")"); do { *((volatile int*)__null) = 11801; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11802 | MOZ_ASSERT(isFile)do { static_assert( mozilla::detail::AssertionConditionType< decltype(isFile)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(isFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isFile", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11802); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isFile" ")" ); do { *((volatile int*)__null) = 11802; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
11803 | ||||
11804 | return file; | |||
11805 | } | |||
11806 | ||||
11807 | // static | |||
11808 | nsresult DatabaseFileManager::InitDirectory(nsIFile& aDirectory, | |||
11809 | nsIFile& aDatabaseFile, | |||
11810 | const nsACString& aOrigin, | |||
11811 | uint32_t aTelemetryId) { | |||
11812 | AssertIsOnIOThread(); | |||
11813 | ||||
11814 | { | |||
11815 | QM_TRY_INSPECT(const bool& exists,auto tryResult3279 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::Exists)); if ((__builtin_expect(!!(tryResult3279.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists)" , tryResult3279.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11816, mozilla::dom::quota::Severity::Error); return tryResult3279 .propagateErr(); } const bool& exists = tryResult3279.inspect (); | |||
11816 | MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, Exists))auto tryResult3279 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::Exists)); if ((__builtin_expect(!!(tryResult3279.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists)" , tryResult3279.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11816, mozilla::dom::quota::Severity::Error); return tryResult3279 .propagateErr(); } const bool& exists = tryResult3279.inspect ();; | |||
11817 | ||||
11818 | if (!exists) { | |||
11819 | return NS_OK; | |||
11820 | } | |||
11821 | ||||
11822 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult3280 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::IsDirectory)); if ((__builtin_expect(!!(tryResult3280. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory)" , tryResult3280.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11823, mozilla::dom::quota::Severity::Error); return tryResult3280 .propagateErr(); } const bool& isDirectory = tryResult3280 .inspect(); | |||
11823 | MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, IsDirectory))auto tryResult3280 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::IsDirectory)); if ((__builtin_expect(!!(tryResult3280. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory)" , tryResult3280.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11823, mozilla::dom::quota::Severity::Error); return tryResult3280 .propagateErr(); } const bool& isDirectory = tryResult3280 .inspect();; | |||
11824 | QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult3281 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult3281)::ok_type>); if ((__builtin_expect(!!(tryResult3281.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3281.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11824, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, NS_ERROR_FAILURE); }}; | |||
11825 | } | |||
11826 | ||||
11827 | QM_TRY_INSPECT(const auto& journalDirectory,auto tryResult3282 = (CloneFileAndAppend(aDirectory, kJournalDirectoryName )); if ((__builtin_expect(!!(tryResult3282.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(aDirectory, kJournalDirectoryName)" , tryResult3282.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11828, mozilla::dom::quota::Severity::Error); return tryResult3282 .propagateErr(); } const auto& journalDirectory = tryResult3282 .inspect(); | |||
11828 | CloneFileAndAppend(aDirectory, kJournalDirectoryName))auto tryResult3282 = (CloneFileAndAppend(aDirectory, kJournalDirectoryName )); if ((__builtin_expect(!!(tryResult3282.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(aDirectory, kJournalDirectoryName)" , tryResult3282.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11828, mozilla::dom::quota::Severity::Error); return tryResult3282 .propagateErr(); } const auto& journalDirectory = tryResult3282 .inspect();; | |||
11829 | ||||
11830 | QM_TRY_INSPECT(const bool& exists,auto tryResult3283 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::Exists)); if ((__builtin_expect(!!(tryResult3283.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)" , tryResult3283.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11831, mozilla::dom::quota::Severity::Error); return tryResult3283 .propagateErr(); } const bool& exists = tryResult3283.inspect (); | |||
11831 | MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, Exists))auto tryResult3283 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::Exists)); if ((__builtin_expect(!!(tryResult3283.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)" , tryResult3283.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11831, mozilla::dom::quota::Severity::Error); return tryResult3283 .propagateErr(); } const bool& exists = tryResult3283.inspect ();; | |||
11832 | ||||
11833 | if (exists) { | |||
11834 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult3284 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::IsDirectory)); if ((__builtin_expect(!!(tryResult3284. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)" , tryResult3284.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11835, mozilla::dom::quota::Severity::Error); return tryResult3284 .propagateErr(); } const bool& isDirectory = tryResult3284 .inspect(); | |||
11835 | MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, IsDirectory))auto tryResult3284 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::IsDirectory)); if ((__builtin_expect(!!(tryResult3284. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)" , tryResult3284.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11835, mozilla::dom::quota::Severity::Error); return tryResult3284 .propagateErr(); } const bool& isDirectory = tryResult3284 .inspect();; | |||
11836 | QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult3285 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult3285)::ok_type>); if ((__builtin_expect(!!(tryResult3285.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3285.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11836, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, NS_ERROR_FAILURE); }}; | |||
11837 | ||||
11838 | bool hasJournals = false; | |||
11839 | ||||
11840 | QM_TRY(CollectEachFile({auto tryResult3287 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file))); if ((__builtin_expect (!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11845, mozilla::dom::quota::Severity::Error); return tryResult3286 .propagateErr(); } const auto& leafName = tryResult3286.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11852); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3287)::ok_type>); if ((__builtin_expect (!!(tryResult3287.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3286.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11845, mozilla::dom::quota::Severity::Error); return tryResult3286.propagateErr(); } const auto& leafName = tryResult3286.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11852); } return Ok{}; })" , tryResult3287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11856, mozilla::dom::quota::Severity::Error); return tryResult3287 .propagateErr(); }} | |||
11841 | *journalDirectory,{auto tryResult3287 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file))); if ((__builtin_expect (!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11845, mozilla::dom::quota::Severity::Error); return tryResult3286 .propagateErr(); } const auto& leafName = tryResult3286.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11852); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3287)::ok_type>); if ((__builtin_expect (!!(tryResult3287.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3286.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11845, mozilla::dom::quota::Severity::Error); return tryResult3286.propagateErr(); } const auto& leafName = tryResult3286.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11852); } return Ok{}; })" , tryResult3287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11856, mozilla::dom::quota::Severity::Error); return tryResult3287 .propagateErr(); }} | |||
11842 | [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult3287 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file))); if ((__builtin_expect (!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11845, mozilla::dom::quota::Severity::Error); return tryResult3286 .propagateErr(); } const auto& leafName = tryResult3286.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11852); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3287)::ok_type>); if ((__builtin_expect (!!(tryResult3287.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3286.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11845, mozilla::dom::quota::Severity::Error); return tryResult3286.propagateErr(); } const auto& leafName = tryResult3286.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11852); } return Ok{}; })" , tryResult3287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11856, mozilla::dom::quota::Severity::Error); return tryResult3287 .propagateErr(); }} | |||
11843 | QM_TRY_INSPECT({auto tryResult3287 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file))); if ((__builtin_expect (!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11845, mozilla::dom::quota::Severity::Error); return tryResult3286 .propagateErr(); } const auto& leafName = tryResult3286.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11852); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3287)::ok_type>); if ((__builtin_expect (!!(tryResult3287.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3286.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11845, mozilla::dom::quota::Severity::Error); return tryResult3286.propagateErr(); } const auto& leafName = tryResult3286.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11852); } return Ok{}; })" , tryResult3287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11856, mozilla::dom::quota::Severity::Error); return tryResult3287 .propagateErr(); }} | |||
11844 | const auto& leafName,{auto tryResult3287 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file))); if ((__builtin_expect (!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11845, mozilla::dom::quota::Severity::Error); return tryResult3286 .propagateErr(); } const auto& leafName = tryResult3286.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11852); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3287)::ok_type>); if ((__builtin_expect (!!(tryResult3287.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3286.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11845, mozilla::dom::quota::Severity::Error); return tryResult3286.propagateErr(); } const auto& leafName = tryResult3286.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11852); } return Ok{}; })" , tryResult3287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11856, mozilla::dom::quota::Severity::Error); return tryResult3287 .propagateErr(); }} | |||
11845 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, file, GetLeafName));{auto tryResult3287 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file))); if ((__builtin_expect (!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11845, mozilla::dom::quota::Severity::Error); return tryResult3286 .propagateErr(); } const auto& leafName = tryResult3286.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11852); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3287)::ok_type>); if ((__builtin_expect (!!(tryResult3287.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3286.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11845, mozilla::dom::quota::Severity::Error); return tryResult3286.propagateErr(); } const auto& leafName = tryResult3286.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11852); } return Ok{}; })" , tryResult3287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11856, mozilla::dom::quota::Severity::Error); return tryResult3287 .propagateErr(); }} | |||
11846 | ||||
11847 | nsresult rv;{auto tryResult3287 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file))); if ((__builtin_expect (!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11845, mozilla::dom::quota::Severity::Error); return tryResult3286 .propagateErr(); } const auto& leafName = tryResult3286.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11852); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3287)::ok_type>); if ((__builtin_expect (!!(tryResult3287.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3286.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11845, mozilla::dom::quota::Severity::Error); return tryResult3286.propagateErr(); } const auto& leafName = tryResult3286.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11852); } return Ok{}; })" , tryResult3287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11856, mozilla::dom::quota::Severity::Error); return tryResult3287 .propagateErr(); }} | |||
11848 | leafName.ToInteger64(&rv);{auto tryResult3287 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file))); if ((__builtin_expect (!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11845, mozilla::dom::quota::Severity::Error); return tryResult3286 .propagateErr(); } const auto& leafName = tryResult3286.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11852); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3287)::ok_type>); if ((__builtin_expect (!!(tryResult3287.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3286.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11845, mozilla::dom::quota::Severity::Error); return tryResult3286.propagateErr(); } const auto& leafName = tryResult3286.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11852); } return Ok{}; })" , tryResult3287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11856, mozilla::dom::quota::Severity::Error); return tryResult3287 .propagateErr(); }} | |||
11849 | if (NS_SUCCEEDED(rv)) {{auto tryResult3287 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file))); if ((__builtin_expect (!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11845, mozilla::dom::quota::Severity::Error); return tryResult3286 .propagateErr(); } const auto& leafName = tryResult3286.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11852); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3287)::ok_type>); if ((__builtin_expect (!!(tryResult3287.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3286.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11845, mozilla::dom::quota::Severity::Error); return tryResult3286.propagateErr(); } const auto& leafName = tryResult3286.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11852); } return Ok{}; })" , tryResult3287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11856, mozilla::dom::quota::Severity::Error); return tryResult3287 .propagateErr(); }} | |||
11850 | hasJournals = true;{auto tryResult3287 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file))); if ((__builtin_expect (!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11845, mozilla::dom::quota::Severity::Error); return tryResult3286 .propagateErr(); } const auto& leafName = tryResult3286.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11852); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3287)::ok_type>); if ((__builtin_expect (!!(tryResult3287.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3286.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11845, mozilla::dom::quota::Severity::Error); return tryResult3286.propagateErr(); } const auto& leafName = tryResult3286.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11852); } return Ok{}; })" , tryResult3287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11856, mozilla::dom::quota::Severity::Error); return tryResult3287 .propagateErr(); }} | |||
11851 | } else {{auto tryResult3287 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file))); if ((__builtin_expect (!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11845, mozilla::dom::quota::Severity::Error); return tryResult3286 .propagateErr(); } const auto& leafName = tryResult3286.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11852); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3287)::ok_type>); if ((__builtin_expect (!!(tryResult3287.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3286.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11845, mozilla::dom::quota::Severity::Error); return tryResult3286.propagateErr(); } const auto& leafName = tryResult3286.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11852); } return Ok{}; })" , tryResult3287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11856, mozilla::dom::quota::Severity::Error); return tryResult3287 .propagateErr(); }} | |||
11852 | UNKNOWN_FILE_WARNING(leafName);{auto tryResult3287 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file))); if ((__builtin_expect (!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11845, mozilla::dom::quota::Severity::Error); return tryResult3286 .propagateErr(); } const auto& leafName = tryResult3286.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11852); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3287)::ok_type>); if ((__builtin_expect (!!(tryResult3287.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3286.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11845, mozilla::dom::quota::Severity::Error); return tryResult3286.propagateErr(); } const auto& leafName = tryResult3286.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11852); } return Ok{}; })" , tryResult3287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11856, mozilla::dom::quota::Severity::Error); return tryResult3287 .propagateErr(); }} | |||
11853 | }{auto tryResult3287 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file))); if ((__builtin_expect (!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11845, mozilla::dom::quota::Severity::Error); return tryResult3286 .propagateErr(); } const auto& leafName = tryResult3286.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11852); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3287)::ok_type>); if ((__builtin_expect (!!(tryResult3287.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3286.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11845, mozilla::dom::quota::Severity::Error); return tryResult3286.propagateErr(); } const auto& leafName = tryResult3286.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11852); } return Ok{}; })" , tryResult3287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11856, mozilla::dom::quota::Severity::Error); return tryResult3287 .propagateErr(); }} | |||
11854 | ||||
11855 | return Ok{};{auto tryResult3287 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file))); if ((__builtin_expect (!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11845, mozilla::dom::quota::Severity::Error); return tryResult3286 .propagateErr(); } const auto& leafName = tryResult3286.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11852); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3287)::ok_type>); if ((__builtin_expect (!!(tryResult3287.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3286.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11845, mozilla::dom::quota::Severity::Error); return tryResult3286.propagateErr(); } const auto& leafName = tryResult3286.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11852); } return Ok{}; })" , tryResult3287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11856, mozilla::dom::quota::Severity::Error); return tryResult3287 .propagateErr(); }} | |||
11856 | })){auto tryResult3287 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file))); if ((__builtin_expect (!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11845, mozilla::dom::quota::Severity::Error); return tryResult3286 .propagateErr(); } const auto& leafName = tryResult3286.inspect ();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)( __builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString ( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8 (leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11852); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3287)::ok_type>); if ((__builtin_expect (!!(tryResult3287.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3286 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3286.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11845, mozilla::dom::quota::Severity::Error); return tryResult3286.propagateErr(); } const auto& leafName = tryResult3286.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11852); } return Ok{}; })" , tryResult3287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11856, mozilla::dom::quota::Severity::Error); return tryResult3287 .propagateErr(); }}; | |||
11857 | ||||
11858 | if (hasJournals) { | |||
11859 | QM_TRY_UNWRAP(const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult3288 = (CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing {})); if ((__builtin_expect(!!(tryResult3288.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})" , tryResult3288.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11862, mozilla::dom::quota::Severity::Error); return tryResult3288 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult3288.unwrap(); | |||
11860 | CreateStorageConnection(auto tryResult3288 = (CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing {})); if ((__builtin_expect(!!(tryResult3288.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})" , tryResult3288.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11862, mozilla::dom::quota::Severity::Error); return tryResult3288 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult3288.unwrap(); | |||
11861 | aDatabaseFile, aDirectory, VoidString(), aOrigin,auto tryResult3288 = (CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing {})); if ((__builtin_expect(!!(tryResult3288.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})" , tryResult3288.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11862, mozilla::dom::quota::Severity::Error); return tryResult3288 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult3288.unwrap(); | |||
11862 | /* aDirectoryLockId */ -1, aTelemetryId, Nothing{}))auto tryResult3288 = (CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing {})); if ((__builtin_expect(!!(tryResult3288.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})" , tryResult3288.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11862, mozilla::dom::quota::Severity::Error); return tryResult3288 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult3288.unwrap();; | |||
11863 | ||||
11864 | mozStorageTransaction transaction(connection.get(), false); | |||
11865 | ||||
11866 | QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult3289 = (ToResult(transaction.Start())); static_assert (std::is_empty_v<typename decltype(tryResult3289)::ok_type >); if ((__builtin_expect(!!(tryResult3289.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(transaction.Start())" , tryResult3289.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11866, mozilla::dom::quota::Severity::Error); return tryResult3289 .propagateErr(); }} | |||
11867 | ||||
11868 | QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL({auto tryResult3290 = (ToResult(connection->ExecuteSimpleSQL ( "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))); static_assert (std::is_empty_v<typename decltype(tryResult3290)::ok_type >); if ((__builtin_expect(!!(tryResult3290.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE fs USING filesystem;\"_ns))" , tryResult3290.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11869, mozilla::dom::quota::Severity::Error); return tryResult3290 .propagateErr(); }} | |||
11869 | "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))){auto tryResult3290 = (ToResult(connection->ExecuteSimpleSQL ( "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))); static_assert (std::is_empty_v<typename decltype(tryResult3290)::ok_type >); if ((__builtin_expect(!!(tryResult3290.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE fs USING filesystem;\"_ns))" , tryResult3290.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11869, mozilla::dom::quota::Severity::Error); return tryResult3290 .propagateErr(); }}; | |||
11870 | ||||
11871 | // The parameter names are not used, parameters are bound by index only | |||
11872 | // locally in the same function. | |||
11873 | QM_TRY_INSPECT(auto tryResult3291 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(*connection)>::CreateStatement ), (*connection), "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns )); if ((__builtin_expect(!!(tryResult3291.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*connection)>::CreateStatement), (*connection), \"SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path\"_ns)" , tryResult3291.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11877, mozilla::dom::quota::Severity::Error); return tryResult3291 .propagateErr(); } const auto& stmt = tryResult3291.inspect (); | |||
11874 | const auto& stmt,auto tryResult3291 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(*connection)>::CreateStatement ), (*connection), "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns )); if ((__builtin_expect(!!(tryResult3291.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*connection)>::CreateStatement), (*connection), \"SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path\"_ns)" , tryResult3291.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11877, mozilla::dom::quota::Severity::Error); return tryResult3291 .propagateErr(); } const auto& stmt = tryResult3291.inspect (); | |||
11875 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3291 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(*connection)>::CreateStatement ), (*connection), "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns )); if ((__builtin_expect(!!(tryResult3291.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*connection)>::CreateStatement), (*connection), \"SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path\"_ns)" , tryResult3291.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11877, mozilla::dom::quota::Severity::Error); return tryResult3291 .propagateErr(); } const auto& stmt = tryResult3291.inspect (); | |||
11876 | nsCOMPtr<mozIStorageStatement>, *connection, CreateStatement,auto tryResult3291 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(*connection)>::CreateStatement ), (*connection), "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns )); if ((__builtin_expect(!!(tryResult3291.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*connection)>::CreateStatement), (*connection), \"SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path\"_ns)" , tryResult3291.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11877, mozilla::dom::quota::Severity::Error); return tryResult3291 .propagateErr(); } const auto& stmt = tryResult3291.inspect (); | |||
11877 | "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns))auto tryResult3291 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(*connection)>::CreateStatement ), (*connection), "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns )); if ((__builtin_expect(!!(tryResult3291.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*connection)>::CreateStatement), (*connection), \"SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path\"_ns)" , tryResult3291.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11877, mozilla::dom::quota::Severity::Error); return tryResult3291 .propagateErr(); } const auto& stmt = tryResult3291.inspect ();; | |||
11878 | ||||
11879 | QM_TRY_INSPECT(const auto& path,auto tryResult3292 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (journalDirectory)>::GetPath), (journalDirectory))); if (( __builtin_expect(!!(tryResult3292.isErr()), 0))) { mozilla::dom ::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory))" , tryResult3292.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11881, mozilla::dom::quota::Severity::Error); return tryResult3292 .propagateErr(); } const auto& path = tryResult3292.inspect (); | |||
11880 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3292 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (journalDirectory)>::GetPath), (journalDirectory))); if (( __builtin_expect(!!(tryResult3292.isErr()), 0))) { mozilla::dom ::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory))" , tryResult3292.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11881, mozilla::dom::quota::Severity::Error); return tryResult3292 .propagateErr(); } const auto& path = tryResult3292.inspect (); | |||
11881 | nsString, journalDirectory, GetPath))auto tryResult3292 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (journalDirectory)>::GetPath), (journalDirectory))); if (( __builtin_expect(!!(tryResult3292.isErr()), 0))) { mozilla::dom ::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory))" , tryResult3292.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11881, mozilla::dom::quota::Severity::Error); return tryResult3292 .propagateErr(); } const auto& path = tryResult3292.inspect ();; | |||
11882 | ||||
11883 | QM_TRY(MOZ_TO_RESULT(stmt->BindStringByIndex(0, path))){auto tryResult3293 = (ToResult(stmt->BindStringByIndex(0, path))); static_assert(std::is_empty_v<typename decltype( tryResult3293)::ok_type>); if ((__builtin_expect(!!(tryResult3293 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByIndex(0, path))" , tryResult3293.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11883, mozilla::dom::quota::Severity::Error); return tryResult3293 .propagateErr(); }}; | |||
11884 | ||||
11885 | QM_TRY(CollectWhileHasResult({auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11886 | *stmt,{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11887 | [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11888 | nsString name;{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11889 | QM_TRY(MOZ_TO_RESULT(stmt.GetString(0, name)));{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11890 | ||||
11891 | nsresult rv;{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11892 | name.ToInteger64(&rv);{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11893 | if (NS_FAILED(rv)) {{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11894 | return Ok{};{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11895 | }{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11896 | ||||
11897 | int32_t flag = stmt.AsInt32(1);{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11898 | ||||
11899 | if (!flag) {{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11900 | QM_TRY_INSPECT(const auto& file,{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11901 | CloneFileAndAppend(aDirectory, name));{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11902 | ||||
11903 | if (NS_FAILED(file->Remove(false))) {{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11904 | NS_WARNING("Failed to remove orphaned file!");{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11905 | }{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11906 | }{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11907 | ||||
11908 | QM_TRY_INSPECT(const auto& journalFile,{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11909 | CloneFileAndAppend(*journalDirectory, name));{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11910 | ||||
11911 | if (NS_FAILED(journalFile->Remove(false))) {{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11912 | NS_WARNING("Failed to remove journal file!");{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11913 | }{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11914 | ||||
11915 | return Ok{};{auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }} | |||
11916 | })){auto tryResult3297 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult3294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11889, mozilla::dom::quota::Severity::Error); return tryResult3294 .propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult3295.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11901, mozilla::dom::quota::Severity::Error); return tryResult3295 .propagateErr(); } const auto& file = tryResult3295.inspect ();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file-> Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!" , nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory , name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0) )) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult3296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11909, mozilla::dom::quota::Severity::Error); return tryResult3296 .propagateErr(); } const auto& journalFile = tryResult3296 .inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile ->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove journal file!", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11912); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3297)::ok_type>); if ((__builtin_expect (!!(tryResult3297.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult3294 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult3294)::ok_type>); if ((__builtin_expect(!!(tryResult3294.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult3294.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11889, mozilla::dom::quota::Severity::Error); return tryResult3294.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult3295 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult3295.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult3295.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11901, mozilla::dom::quota::Severity::Error); return tryResult3295.propagateErr(); } const auto& file = tryResult3295.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11904); } } auto tryResult3296 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult3296.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult3296.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11909, mozilla::dom::quota::Severity::Error); return tryResult3296.propagateErr(); } const auto& journalFile = tryResult3296.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11912); } return Ok{}; })" , tryResult3297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11916, mozilla::dom::quota::Severity::Error); return tryResult3297 .propagateErr(); }}; | |||
11917 | ||||
11918 | QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL("DROP TABLE fs;"_ns))){auto tryResult3298 = (ToResult(connection->ExecuteSimpleSQL ("DROP TABLE fs;"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3298)::ok_type>); if ((__builtin_expect (!!(tryResult3298.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(connection->ExecuteSimpleSQL(\"DROP TABLE fs;\"_ns))" , tryResult3298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11918, mozilla::dom::quota::Severity::Error); return tryResult3298 .propagateErr(); }}; | |||
11919 | QM_TRY(MOZ_TO_RESULT(transaction.Commit())){auto tryResult3299 = (ToResult(transaction.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult3299)::ok_type >); if ((__builtin_expect(!!(tryResult3299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(transaction.Commit())" , tryResult3299.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11919, mozilla::dom::quota::Severity::Error); return tryResult3299 .propagateErr(); }}; | |||
11920 | } | |||
11921 | } | |||
11922 | ||||
11923 | return NS_OK; | |||
11924 | } | |||
11925 | ||||
11926 | // static | |||
11927 | Result<FileUsageType, nsresult> DatabaseFileManager::GetUsage( | |||
11928 | nsIFile* aDirectory) { | |||
11929 | AssertIsOnIOThread(); | |||
11930 | MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11930); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { *((volatile int*)__null) = 11930; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11931 | ||||
11932 | FileUsageType usage; | |||
11933 | ||||
11934 | QM_TRY(TraverseFiles({auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11935 | *aDirectory,{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11936 | // KnownDirEntryOp{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11937 | [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11938 | if (isDirectory) {{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11939 | return Ok{};{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11940 | }{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11941 | ||||
11942 | // Usually we only use QM_OR_ELSE_LOG_VERBOSE(_IF) with Remove and{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11943 | // NS_ERROR_FILE_NOT_FOUND check, but the file was found by a directory{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11944 | // traversal and ToInteger on the name succeeded, so it should be our{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11945 | // file and if the file disappears, the use of QM_OR_ELSE_WARN_IF is ok{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11946 | // here.{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11947 | QM_TRY_INSPECT(const auto& thisUsage,{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11948 | QM_OR_ELSE_WARN_IF({auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11949 | // Expression.{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11950 | MOZ_TO_RESULT_INVOKE_MEMBER(file, GetFileSize){auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11951 | .map([](const int64_t fileSize) {{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11952 | return FileUsageType(Some(uint64_t(fileSize)));{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11953 | }),{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11954 | // Predicate.{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11955 | ([](const nsresult rv) {{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11956 | return rv == NS_ERROR_FILE_NOT_FOUND;{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11957 | }),{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11958 | // Fallback. If the file does no longer exist, treat{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11959 | // it as 0-sized.{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11960 | ErrToDefaultOk<FileUsageType>));{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11961 | ||||
11962 | usage += thisUsage;{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11963 | ||||
11964 | return Ok{};{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11965 | },{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11966 | // UnknownDirEntryOp{auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }} | |||
11967 | [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })){auto tryResult3301 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType (Some(uint64_t(fileSize))); })), [&](const auto& firstRes ) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND ; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult3300 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult3300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11960, mozilla::dom::quota::Severity::Error); return tryResult3300 .propagateErr(); } const auto& thisUsage = tryResult3300. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3301 )::ok_type>); if ((__builtin_expect(!!(tryResult3301.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult3300 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult3300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 11960, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult3300.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 11960, mozilla::dom::quota::Severity::Error); return tryResult3300.propagateErr(); } const auto& thisUsage = tryResult3300.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult3301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11967, mozilla::dom::quota::Severity::Error); return tryResult3301 .propagateErr(); }}; | |||
11968 | ||||
11969 | return usage; | |||
11970 | } | |||
11971 | ||||
11972 | nsresult DatabaseFileManager::SyncDeleteFile(const int64_t aId) { | |||
11973 | MOZ_ASSERT(!mFileInfos.Contains(aId))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mFileInfos.Contains(aId))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mFileInfos.Contains(aId)))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mFileInfos.Contains(aId)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11973); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileInfos.Contains(aId)" ")"); do { *((volatile int*)__null) = 11973; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
11974 | ||||
11975 | if (!this->AssertValid()) { | |||
11976 | return NS_ERROR_UNEXPECTED; | |||
11977 | } | |||
11978 | ||||
11979 | const auto directory = GetDirectory(); | |||
11980 | QM_TRY(OkIf(directory), NS_ERROR_FAILURE){auto tryResult3302 = (OkIf(directory)); static_assert(std::is_empty_v <typename decltype(tryResult3302)::ok_type>); if ((__builtin_expect (!!(tryResult3302.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3302.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(directory)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11980, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(directory)" , tryTempError, NS_ERROR_FAILURE); }}; | |||
11981 | ||||
11982 | const auto journalDirectory = GetJournalDirectory(); | |||
11983 | QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult3303 = (OkIf(journalDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3303)::ok_type >); if ((__builtin_expect(!!(tryResult3303.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3303 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(journalDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11983, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)" , tryTempError, NS_ERROR_FAILURE); }}; | |||
11984 | ||||
11985 | const nsCOMPtr<nsIFile> file = GetFileForId(directory, aId); | |||
11986 | QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult3304 = (OkIf(file)); static_assert(std::is_empty_v <typename decltype(tryResult3304)::ok_type>); if ((__builtin_expect (!!(tryResult3304.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3304.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(file)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11986, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError , NS_ERROR_FAILURE); }}; | |||
11987 | ||||
11988 | const nsCOMPtr<nsIFile> journalFile = GetFileForId(journalDirectory, aId); | |||
11989 | QM_TRY(OkIf(journalFile), NS_ERROR_FAILURE){auto tryResult3305 = (OkIf(journalFile)); static_assert(std:: is_empty_v<typename decltype(tryResult3305)::ok_type>); if ((__builtin_expect(!!(tryResult3305.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3305.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(journalFile)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11989, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)" , tryTempError, NS_ERROR_FAILURE); }}; | |||
11990 | ||||
11991 | return SyncDeleteFile(*file, *journalFile); | |||
11992 | } | |||
11993 | ||||
11994 | nsresult DatabaseFileManager::SyncDeleteFile(nsIFile& aFile, | |||
11995 | nsIFile& aJournalFile) const { | |||
11996 | QuotaManager* const quotaManager = | |||
11997 | EnforcingQuota() ? QuotaManager::Get() : nullptr; | |||
11998 | MOZ_ASSERT_IF(EnforcingQuota(), quotaManager)do { if (EnforcingQuota()) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(quotaManager)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 11998); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { *((volatile int*)__null) = 11998; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
11999 | ||||
12000 | QM_TRY(MOZ_TO_RESULT(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(),{auto tryResult3306 = (ToResult(DeleteFile(aFile, quotaManager , Type(), OriginMetadata(), Idempotency::No))); static_assert (std::is_empty_v<typename decltype(tryResult3306)::ok_type >); if ((__builtin_expect(!!(tryResult3306.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(), Idempotency::No))" , tryResult3306.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12001, mozilla::dom::quota::Severity::Error); return tryResult3306 .propagateErr(); }} | |||
12001 | Idempotency::No))){auto tryResult3306 = (ToResult(DeleteFile(aFile, quotaManager , Type(), OriginMetadata(), Idempotency::No))); static_assert (std::is_empty_v<typename decltype(tryResult3306)::ok_type >); if ((__builtin_expect(!!(tryResult3306.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(), Idempotency::No))" , tryResult3306.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12001, mozilla::dom::quota::Severity::Error); return tryResult3306 .propagateErr(); }}; | |||
12002 | ||||
12003 | QM_TRY(MOZ_TO_RESULT(aJournalFile.Remove(false))){auto tryResult3307 = (ToResult(aJournalFile.Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3307 )::ok_type>); if ((__builtin_expect(!!(tryResult3307.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(aJournalFile.Remove(false))" , tryResult3307.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12003, mozilla::dom::quota::Severity::Error); return tryResult3307 .propagateErr(); }}; | |||
12004 | ||||
12005 | return NS_OK; | |||
12006 | } | |||
12007 | ||||
12008 | nsresult DatabaseFileManager::Invalidate() { | |||
12009 | if (mCipherKeyManager) { | |||
12010 | mCipherKeyManager->Invalidate(); | |||
12011 | } | |||
12012 | ||||
12013 | QM_TRY(MOZ_TO_RESULT(FileInfoManager::Invalidate())){auto tryResult3308 = (ToResult(FileInfoManager::Invalidate() )); static_assert(std::is_empty_v<typename decltype(tryResult3308 )::ok_type>); if ((__builtin_expect(!!(tryResult3308.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(FileInfoManager::Invalidate())" , tryResult3308.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12013, mozilla::dom::quota::Severity::Error); return tryResult3308 .propagateErr(); }}; | |||
12014 | ||||
12015 | return NS_OK; | |||
12016 | } | |||
12017 | ||||
12018 | /******************************************************************************* | |||
12019 | * QuotaClient | |||
12020 | ******************************************************************************/ | |||
12021 | ||||
12022 | QuotaClient* QuotaClient::sInstance = nullptr; | |||
12023 | ||||
12024 | QuotaClient::QuotaClient() : mDeleteTimer(NS_NewTimer()) { | |||
12025 | AssertIsOnBackgroundThread(); | |||
12026 | MOZ_ASSERT(!sInstance, "We expect this to be a singleton!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(!sInstance)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!sInstance))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!sInstance" " (" "We expect this to be a singleton!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12026); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!sInstance" ") (" "We expect this to be a singleton!" ")"); do { *((volatile int*)__null) = 12026; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); | |||
12027 | MOZ_ASSERT(!gTelemetryIdMutex)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!gTelemetryIdMutex)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!gTelemetryIdMutex))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!gTelemetryIdMutex" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12027); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gTelemetryIdMutex" ")"); do { *((volatile int*)__null) = 12027; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12028 | ||||
12029 | // Always create this so that later access to gTelemetryIdHashtable can be | |||
12030 | // properly synchronized. | |||
12031 | gTelemetryIdMutex = new Mutex("IndexedDB gTelemetryIdMutex"); | |||
12032 | ||||
12033 | gStorageDatabaseNameMutex = new Mutex("IndexedDB gStorageDatabaseNameMutex"); | |||
12034 | ||||
12035 | sInstance = this; | |||
12036 | } | |||
12037 | ||||
12038 | QuotaClient::~QuotaClient() { | |||
12039 | AssertIsOnBackgroundThread(); | |||
12040 | MOZ_ASSERT(sInstance == this, "We expect this to be a singleton!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(sInstance == this)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(sInstance == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("sInstance == this" " (" "We expect this to be a singleton!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "sInstance == this" ") (" "We expect this to be a singleton!" ")"); do { *((volatile int*)__null) = 12040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); | |||
12041 | MOZ_ASSERT(gTelemetryIdMutex)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gTelemetryIdMutex)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gTelemetryIdMutex))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("gTelemetryIdMutex" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gTelemetryIdMutex" ")"); do { *((volatile int*)__null) = 12041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12042 | MOZ_ASSERT(!mMaintenanceThreadPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mMaintenanceThreadPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mMaintenanceThreadPool))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mMaintenanceThreadPool" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12042); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaintenanceThreadPool" ")"); do { *((volatile int*)__null) = 12042; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12043 | ||||
12044 | // No one else should be able to touch gTelemetryIdHashtable now that the | |||
12045 | // QuotaClient has gone away. | |||
12046 | gTelemetryIdHashtable = nullptr; | |||
12047 | gTelemetryIdMutex = nullptr; | |||
12048 | ||||
12049 | gStorageDatabaseNameHashtable = nullptr; | |||
12050 | gStorageDatabaseNameMutex = nullptr; | |||
12051 | ||||
12052 | sInstance = nullptr; | |||
12053 | } | |||
12054 | ||||
12055 | nsresult QuotaClient::AsyncDeleteFile(DatabaseFileManager* aFileManager, | |||
12056 | int64_t aFileId) { | |||
12057 | AssertIsOnBackgroundThread(); | |||
12058 | ||||
12059 | if (IsShuttingDownOnBackgroundThread()) { | |||
12060 | // Whoops! We want to delete an IndexedDB disk-backed File but it's too late | |||
12061 | // to actually delete the file! This means we're going to "leak" the file | |||
12062 | // and leave it around when we shouldn't! (The file will stay around until | |||
12063 | // next storage initialization is triggered when the app is started again). | |||
12064 | // Fixing this is tracked by bug 1539377. | |||
12065 | ||||
12066 | return NS_OK; | |||
12067 | } | |||
12068 | ||||
12069 | MOZ_ASSERT(mDeleteTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDeleteTimer)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDeleteTimer))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDeleteTimer", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12069); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteTimer" ")"); do { *((volatile int*)__null) = 12069; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12070 | MOZ_ALWAYS_SUCCEEDS(mDeleteTimer->Cancel())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mDeleteTimer->Cancel())), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(mDeleteTimer->Cancel())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12070); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mDeleteTimer->Cancel())" ")"); do { * ((volatile int*)__null) = 12070; __attribute__((nomerge)) ::abort (); } while (false); } } while (false); } } while (false); | |||
12071 | ||||
12072 | QM_TRY(MOZ_TO_RESULT(mDeleteTimer->InitWithNamedFuncCallback({auto tryResult3309 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback ( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT , "dom::indexeddb::QuotaClient::AsyncDeleteFile"))); static_assert (std::is_empty_v<typename decltype(tryResult3309)::ok_type >); if ((__builtin_expect(!!(tryResult3309.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"))" , tryResult3309.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12074, mozilla::dom::quota::Severity::Error); return tryResult3309 .propagateErr(); }} | |||
12073 | DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT,{auto tryResult3309 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback ( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT , "dom::indexeddb::QuotaClient::AsyncDeleteFile"))); static_assert (std::is_empty_v<typename decltype(tryResult3309)::ok_type >); if ((__builtin_expect(!!(tryResult3309.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"))" , tryResult3309.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12074, mozilla::dom::quota::Severity::Error); return tryResult3309 .propagateErr(); }} | |||
12074 | "dom::indexeddb::QuotaClient::AsyncDeleteFile"))){auto tryResult3309 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback ( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT , "dom::indexeddb::QuotaClient::AsyncDeleteFile"))); static_assert (std::is_empty_v<typename decltype(tryResult3309)::ok_type >); if ((__builtin_expect(!!(tryResult3309.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"))" , tryResult3309.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12074, mozilla::dom::quota::Severity::Error); return tryResult3309 .propagateErr(); }}; | |||
12075 | ||||
12076 | mPendingDeleteInfos.GetOrInsertNew(aFileManager)->AppendElement(aFileId); | |||
12077 | ||||
12078 | return NS_OK; | |||
12079 | } | |||
12080 | ||||
12081 | nsresult QuotaClient::FlushPendingFileDeletions() { | |||
12082 | AssertIsOnBackgroundThread(); | |||
12083 | ||||
12084 | QM_TRY(MOZ_TO_RESULT(mDeleteTimer->Cancel())){auto tryResult3310 = (ToResult(mDeleteTimer->Cancel())); static_assert (std::is_empty_v<typename decltype(tryResult3310)::ok_type >); if ((__builtin_expect(!!(tryResult3310.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->Cancel())" , tryResult3310.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12084, mozilla::dom::quota::Severity::Error); return tryResult3310 .propagateErr(); }}; | |||
12085 | ||||
12086 | DeleteTimerCallback(mDeleteTimer, this); | |||
12087 | ||||
12088 | return NS_OK; | |||
12089 | } | |||
12090 | ||||
12091 | RefPtr<BoolPromise> QuotaClient::DoMaintenance() { | |||
12092 | AssertIsOnBackgroundThread(); | |||
12093 | MOZ_ASSERT(!IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsShuttingDownOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsShuttingDownOnBackgroundThread ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12093); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsShuttingDownOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 12093; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12094 | ||||
12095 | if (!mBackgroundThread) { | |||
12096 | mBackgroundThread = GetCurrentSerialEventTarget(); | |||
12097 | } | |||
12098 | ||||
12099 | auto maintenance = MakeRefPtr<Maintenance>(this); | |||
12100 | ||||
12101 | mMaintenanceQueue.AppendElement(maintenance); | |||
12102 | ProcessMaintenanceQueue(); | |||
12103 | ||||
12104 | return maintenance->OnResults(); | |||
12105 | } | |||
12106 | ||||
12107 | nsThreadPool* QuotaClient::GetOrCreateThreadPool() { | |||
12108 | AssertIsOnBackgroundThread(); | |||
12109 | MOZ_ASSERT(!IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsShuttingDownOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsShuttingDownOnBackgroundThread ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12109); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsShuttingDownOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 12109; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12110 | ||||
12111 | if (!mMaintenanceThreadPool) { | |||
12112 | RefPtr<nsThreadPool> threadPool = new nsThreadPool(); | |||
12113 | ||||
12114 | // PR_GetNumberOfProcessors() can return -1 on error, so make sure we | |||
12115 | // don't set some huge number here. We add 2 in case some threads block on | |||
12116 | // the disk I/O. | |||
12117 | const uint32_t threadCount = | |||
12118 | std::max(int32_t(PR_GetNumberOfProcessors()), int32_t(1)) + 2; | |||
12119 | ||||
12120 | MOZ_ALWAYS_SUCCEEDS(threadPool->SetThreadLimit(threadCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetThreadLimit(threadCount))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetThreadLimit(threadCount))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12120); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(threadPool->SetThreadLimit(threadCount))" ")"); do { *((volatile int*)__null) = 12120; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
12121 | ||||
12122 | // Don't keep more than one idle thread. | |||
12123 | MOZ_ALWAYS_SUCCEEDS(threadPool->SetIdleThreadLimit(1))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadLimit(1))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(1))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12123); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(1))" ")" ); do { *((volatile int*)__null) = 12123; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
12124 | ||||
12125 | // Don't keep idle threads alive very long. | |||
12126 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))), 1)) )), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12127); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))" ")"); do { *((volatile int*)__null) = 12127; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
12127 | threadPool->SetIdleThreadMaximumTimeout(5 * PR_MSEC_PER_SEC))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))), 1)) )), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12127); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))" ")"); do { *((volatile int*)__null) = 12127; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
12128 | ||||
12129 | MOZ_ALWAYS_SUCCEEDS(threadPool->SetName("IndexedDB Mnt"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (threadPool->SetName("IndexedDB Mnt"_ns))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB Mnt\"_ns))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12129); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB Mnt\"_ns))" ")"); do { *((volatile int*)__null) = 12129; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
12130 | ||||
12131 | mMaintenanceThreadPool = std::move(threadPool); | |||
12132 | } | |||
12133 | ||||
12134 | return mMaintenanceThreadPool; | |||
12135 | } | |||
12136 | ||||
12137 | mozilla::dom::quota::Client::Type QuotaClient::GetType() { | |||
12138 | return QuotaClient::IDB; | |||
12139 | } | |||
12140 | ||||
12141 | nsresult QuotaClient::UpgradeStorageFrom1_0To2_0(nsIFile* aDirectory) { | |||
12142 | AssertIsOnIOThread(); | |||
12143 | MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12143); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { *((volatile int*)__null) = 12143; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12144 | ||||
12145 | QM_TRY_INSPECT((const auto& [subdirsToProcess, databaseFilenames]),auto tryResult3311 = (GetDatabaseFilenames(*aDirectory, AtomicBool {false})); if ((__builtin_expect(!!(tryResult3311.isErr()), 0 ))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})" , tryResult3311.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12147, mozilla::dom::quota::Severity::Error); return tryResult3311 .propagateErr(); } const auto& [subdirsToProcess, databaseFilenames ] = tryResult3311.inspect(); | |||
12146 | GetDatabaseFilenames(*aDirectory,auto tryResult3311 = (GetDatabaseFilenames(*aDirectory, AtomicBool {false})); if ((__builtin_expect(!!(tryResult3311.isErr()), 0 ))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})" , tryResult3311.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12147, mozilla::dom::quota::Severity::Error); return tryResult3311 .propagateErr(); } const auto& [subdirsToProcess, databaseFilenames ] = tryResult3311.inspect(); | |||
12147 | /* aCanceled */ AtomicBool{false}))auto tryResult3311 = (GetDatabaseFilenames(*aDirectory, AtomicBool {false})); if ((__builtin_expect(!!(tryResult3311.isErr()), 0 ))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})" , tryResult3311.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12147, mozilla::dom::quota::Severity::Error); return tryResult3311 .propagateErr(); } const auto& [subdirsToProcess, databaseFilenames ] = tryResult3311.inspect();; | |||
12148 | ||||
12149 | QM_TRY(CollectEachInRange({auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12150 | subdirsToProcess,{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12151 | [&databaseFilenames = databaseFilenames,{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12152 | aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> {{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12153 | // If the directory has the correct suffix then it should exist in{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12154 | // databaseFilenames.{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12155 | nsDependentSubstring subdirNameBase;{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12156 | if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix,{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12157 | subdirNameBase)) {{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12158 | QM_WARNONLY_TRY(OkIf(databaseFilenames.Contains(subdirNameBase)));{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12159 | return Ok{};{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12160 | }{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12161 | ||||
12162 | // The directory didn't have the right suffix but we might need to{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12163 | // rename it. Check to see if we have a database that references this{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12164 | // directory.{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12165 | QM_TRY_INSPECT({auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12166 | const auto& subdirNameWithSuffix,{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12167 | ([&databaseFilenames,{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12168 | &subdirName]() -> Result<nsAutoString, NotOk> {{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12169 | if (databaseFilenames.Contains(subdirName)) {{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12170 | return nsAutoString{subdirName +{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12171 | kFileManagerDirectoryNameSuffix};{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12172 | }{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12173 | ||||
12174 | // Windows doesn't allow a directory to end with a dot ('.'), so{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12175 | // we have to check that possibility here too. We do this on all{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12176 | // platforms, because the origin directory may have been created{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12177 | // on Windows and now accessed on different OS.{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12178 | const nsAutoString subdirNameWithDot = subdirName + u"."_ns;{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12179 | QM_TRY(OkIf(databaseFilenames.Contains(subdirNameWithDot)),{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12180 | Err(NotOk{}));{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12181 | ||||
12182 | return nsAutoString{subdirNameWithDot +{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12183 | kFileManagerDirectoryNameSuffix};{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12184 | }()),{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12185 | Ok{});{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12186 | ||||
12187 | // We do have a database that uses this subdir so we should rename it{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12188 | // now.{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12189 | QM_TRY_INSPECT(const auto& subdir,{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12190 | CloneFileAndAppend(*aDirectory, subdirName));{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12191 | ||||
12192 | DebugOnly<bool> isDirectory;{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12193 | MOZ_ASSERT(NS_SUCCEEDED(subdir->IsDirectory(&isDirectory)));{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12194 | MOZ_ASSERT(isDirectory);{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12195 | ||||
12196 | // Check if the subdir with suffix already exists before renaming.{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12197 | QM_TRY_INSPECT(const auto& subdirWithSuffix,{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12198 | CloneFileAndAppend(*aDirectory, subdirNameWithSuffix));{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12199 | ||||
12200 | QM_TRY_INSPECT(const bool& exists,{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12201 | MOZ_TO_RESULT_INVOKE_MEMBER(subdirWithSuffix, Exists));{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12202 | ||||
12203 | if (exists) {{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12204 | IDB_WARNING("Deleting old %s files directory!",{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12205 | NS_ConvertUTF16toUTF8(subdirName).get());{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12206 | ||||
12207 | QM_TRY(MOZ_TO_RESULT(subdir->Remove(/* aRecursive */ true)));{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12208 | ||||
12209 | return Ok{};{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12210 | }{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12211 | ||||
12212 | // Finally, rename the subdir.{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12213 | QM_TRY(MOZ_TO_RESULT(subdir->RenameTo(nullptr, subdirNameWithSuffix)));{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12214 | ||||
12215 | return Ok{};{auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }} | |||
12216 | })){auto tryResult3320 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult3312)::ok_type >); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult3312.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult3314 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult3313 )::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect (!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota ::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())" , tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult3315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12190, mozilla::dom::quota::Severity::Error); return tryResult3315 .propagateErr(); } const auto& subdir = tryResult3315.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir-> IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 12193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (isDirectory)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 12194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult3316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12198, mozilla::dom::quota::Severity::Error); return tryResult3316 .propagateErr(); } const auto& subdirWithSuffix = tryResult3316 .inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect (!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)" , tryResult3317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12201, mozilla::dom::quota::Severity::Error); return tryResult3317 .propagateErr(); } const bool& exists = tryResult3317.inspect ();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!" , NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12205); } while (0); {auto tryResult3318 = (ToResult(subdir ->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect (!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(subdir->Remove( true))", tryResult3318.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12207, mozilla::dom::quota::Severity::Error); return tryResult3318 .propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult3319)::ok_type >); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult3319.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12213, mozilla::dom::quota::Severity::Error); return tryResult3319 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3320)::ok_type>); if ((__builtin_expect (!!(tryResult3320.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult3312 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult3312)::ok_type>); if ((__builtin_expect(!!(tryResult3312.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult3312.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12158, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult3314 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult3314.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3314.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12185, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult3313 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult3313)::ok_type>); if ((__builtin_expect(!!(tryResult3313.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3313.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12180, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult3314.inspect();; auto tryResult3315 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult3315.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult3315.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12190, mozilla::dom::quota::Severity::Error); return tryResult3315.propagateErr(); } const auto& subdir = tryResult3315.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12193); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12193; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12194; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3316 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult3316.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult3316.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12198, mozilla::dom::quota::Severity::Error); return tryResult3316.propagateErr(); } const auto& subdirWithSuffix = tryResult3316.inspect();; auto tryResult3317 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult3317.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult3317.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12201, mozilla::dom::quota::Severity::Error); return tryResult3317.propagateErr(); } const bool& exists = tryResult3317.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12205); } while (0); {auto tryResult3318 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult3318)::ok_type>); if ((__builtin_expect(!!(tryResult3318.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult3318.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12207, mozilla::dom::quota::Severity::Error); return tryResult3318.propagateErr(); }}; return Ok{}; } {auto tryResult3319 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3319)::ok_type>); if ((__builtin_expect(!!(tryResult3319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult3319.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12213, mozilla::dom::quota::Severity::Error); return tryResult3319.propagateErr(); }}; return Ok{}; })" , tryResult3320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12216, mozilla::dom::quota::Severity::Error); return tryResult3320 .propagateErr(); }}; | |||
12217 | ||||
12218 | return NS_OK; | |||
12219 | } | |||
12220 | ||||
12221 | nsresult QuotaClient::UpgradeStorageFrom2_1To2_2(nsIFile* aDirectory) { | |||
12222 | AssertIsOnIOThread(); | |||
12223 | MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12223); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { *((volatile int*)__null) = 12223; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12224 | ||||
12225 | QM_TRY(CollectEachFile({auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12226 | *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12227 | QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*file));{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12228 | ||||
12229 | switch (dirEntryKind) {{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12230 | case nsIFileKind::ExistsAsDirectory:{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12231 | break;{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12232 | ||||
12233 | case nsIFileKind::ExistsAsFile: {{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12234 | QM_TRY_INSPECT({auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12235 | const auto& leafName,{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12236 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, file, GetLeafName));{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12237 | ||||
12238 | // It's reported that files ending with ".tmp" somehow live in the{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12239 | // indexedDB directories in Bug 1503883. Such files shouldn't exist{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12240 | // in the indexedDB directory so remove them in this upgrade.{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12241 | if (StringEndsWith(leafName, u".tmp"_ns)) {{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12242 | IDB_WARNING("Deleting unknown temporary file!");{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12243 | ||||
12244 | QM_TRY(MOZ_TO_RESULT(file->Remove(false)));{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12245 | }{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12246 | ||||
12247 | break;{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12248 | }{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12249 | ||||
12250 | case nsIFileKind::DoesNotExist:{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12251 | // Ignore files that got removed externally while iterating.{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12252 | break;{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12253 | }{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12254 | ||||
12255 | return Ok{};{auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }} | |||
12256 | })){auto tryResult3324 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3321.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); return tryResult3321 .propagateErr(); } const auto& dirEntryKind = tryResult3321 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3322.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12236, mozilla::dom::quota::Severity::Error); return tryResult3322 .propagateErr(); } const auto& leafName = tryResult3322.inspect ();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString s("Deleting unknown temporary file!"); mozilla::dom::indexedDB ::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12242); } while (0); {auto tryResult3323 = (ToResult(file-> Remove(false))); static_assert(std::is_empty_v<typename decltype (tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult3323.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12244, mozilla::dom::quota::Severity::Error); return tryResult3323 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult3324)::ok_type>); if ((__builtin_expect (!!(tryResult3324.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3321 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3321.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3321.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12227, mozilla::dom::quota::Severity::Error); return tryResult3321.propagateErr(); } const auto& dirEntryKind = tryResult3321.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult3322 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3322.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12236, mozilla::dom::quota::Severity::Error); return tryResult3322.propagateErr(); } const auto& leafName = tryResult3322.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12242); } while (0); {auto tryResult3323 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult3323)::ok_type>); if ((__builtin_expect(!!(tryResult3323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult3323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12244, mozilla::dom::quota::Severity::Error); return tryResult3323.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12256, mozilla::dom::quota::Severity::Error); return tryResult3324 .propagateErr(); }}; | |||
12257 | ||||
12258 | return NS_OK; | |||
12259 | } | |||
12260 | ||||
12261 | Result<UsageInfo, nsresult> QuotaClient::InitOrigin( | |||
12262 | PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata, | |||
12263 | const AtomicBool& aCanceled) { | |||
12264 | AssertIsOnIOThread(); | |||
12265 | ||||
12266 | QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(this, GetUsageForOriginInternal,{auto tryResult3325 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, true)); if ((__builtin_expect(!!(tryResult3325.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, true)" , tryResult3325.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12269, mozilla::dom::quota::Severity::Error); } return tryResult3325 ;} | |||
12267 | aPersistenceType, aOriginMetadata,{auto tryResult3325 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, true)); if ((__builtin_expect(!!(tryResult3325.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, true)" , tryResult3325.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12269, mozilla::dom::quota::Severity::Error); } return tryResult3325 ;} | |||
12268 | aCanceled,{auto tryResult3325 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, true)); if ((__builtin_expect(!!(tryResult3325.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, true)" , tryResult3325.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12269, mozilla::dom::quota::Severity::Error); } return tryResult3325 ;} | |||
12269 | /* aInitializing*/ true)){auto tryResult3325 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, true)); if ((__builtin_expect(!!(tryResult3325.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, true)" , tryResult3325.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12269, mozilla::dom::quota::Severity::Error); } return tryResult3325 ;}; | |||
12270 | } | |||
12271 | ||||
12272 | nsresult QuotaClient::InitOriginWithoutTracking( | |||
12273 | PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata, | |||
12274 | const AtomicBool& aCanceled) { | |||
12275 | AssertIsOnIOThread(); | |||
12276 | ||||
12277 | return GetUsageForOriginInternal(aPersistenceType, aOriginMetadata, aCanceled, | |||
12278 | /* aInitializing*/ true, nullptr); | |||
12279 | } | |||
12280 | ||||
12281 | Result<UsageInfo, nsresult> QuotaClient::GetUsageForOrigin( | |||
12282 | PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata, | |||
12283 | const AtomicBool& aCanceled) { | |||
12284 | AssertIsOnIOThread(); | |||
12285 | ||||
12286 | QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(this, GetUsageForOriginInternal,{auto tryResult3326 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, false)); if ((__builtin_expect(!!(tryResult3326.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, false)" , tryResult3326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12289, mozilla::dom::quota::Severity::Error); } return tryResult3326 ;} | |||
12287 | aPersistenceType, aOriginMetadata,{auto tryResult3326 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, false)); if ((__builtin_expect(!!(tryResult3326.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, false)" , tryResult3326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12289, mozilla::dom::quota::Severity::Error); } return tryResult3326 ;} | |||
12288 | aCanceled,{auto tryResult3326 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, false)); if ((__builtin_expect(!!(tryResult3326.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, false)" , tryResult3326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12289, mozilla::dom::quota::Severity::Error); } return tryResult3326 ;} | |||
12289 | /* aInitializing*/ false)){auto tryResult3326 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, false)); if ((__builtin_expect(!!(tryResult3326.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, false)" , tryResult3326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12289, mozilla::dom::quota::Severity::Error); } return tryResult3326 ;}; | |||
12290 | } | |||
12291 | ||||
12292 | nsresult QuotaClient::GetUsageForOriginInternal( | |||
12293 | PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata, | |||
12294 | const AtomicBool& aCanceled, const bool aInitializing, | |||
12295 | UsageInfo* aUsageInfo) { | |||
12296 | AssertIsOnIOThread(); | |||
12297 | MOZ_ASSERT(aOriginMetadata.mPersistenceType == aPersistenceType)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aOriginMetadata.mPersistenceType == aPersistenceType )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aOriginMetadata.mPersistenceType == aPersistenceType ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aOriginMetadata.mPersistenceType == aPersistenceType", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12297); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOriginMetadata.mPersistenceType == aPersistenceType" ")"); do { *((volatile int*)__null) = 12297; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12298 | ||||
12299 | QM_TRY_INSPECT(const nsCOMPtr<nsIFile>& directory,auto tryResult3327 = (GetDirectory(aOriginMetadata)); if ((__builtin_expect (!!(tryResult3327.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirectory(aOriginMetadata)", tryResult3327.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12300, mozilla::dom::quota::Severity::Error); return tryResult3327 .propagateErr(); } const nsCOMPtr<nsIFile>& directory = tryResult3327.inspect(); | |||
12300 | GetDirectory(aOriginMetadata))auto tryResult3327 = (GetDirectory(aOriginMetadata)); if ((__builtin_expect (!!(tryResult3327.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirectory(aOriginMetadata)", tryResult3327.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12300, mozilla::dom::quota::Severity::Error); return tryResult3327 .propagateErr(); } const nsCOMPtr<nsIFile>& directory = tryResult3327.inspect();; | |||
12301 | ||||
12302 | // We need to see if there are any files in the directory already. If they | |||
12303 | // are database files then we need to cleanup stored files (if it's needed) | |||
12304 | // and also get the usage. | |||
12305 | ||||
12306 | // XXX Can we avoid unwrapping into non-const variables here? (Only | |||
12307 | // databaseFilenames is currently modified below) | |||
12308 | QM_TRY_UNWRAP((auto [subdirsToProcess, databaseFilenames, obsoleteFilenames]),auto tryResult3328 = (GetDatabaseFilenames<ObsoleteFilenamesHandling ::Include>( *directory, aCanceled)); if ((__builtin_expect (!!(tryResult3328.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)" , tryResult3328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12310, mozilla::dom::quota::Severity::Error); return tryResult3328 .propagateErr(); } auto [subdirsToProcess, databaseFilenames, obsoleteFilenames] = tryResult3328.unwrap(); | |||
12309 | GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>(auto tryResult3328 = (GetDatabaseFilenames<ObsoleteFilenamesHandling ::Include>( *directory, aCanceled)); if ((__builtin_expect (!!(tryResult3328.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)" , tryResult3328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12310, mozilla::dom::quota::Severity::Error); return tryResult3328 .propagateErr(); } auto [subdirsToProcess, databaseFilenames, obsoleteFilenames] = tryResult3328.unwrap(); | |||
12310 | *directory, aCanceled))auto tryResult3328 = (GetDatabaseFilenames<ObsoleteFilenamesHandling ::Include>( *directory, aCanceled)); if ((__builtin_expect (!!(tryResult3328.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)" , tryResult3328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12310, mozilla::dom::quota::Severity::Error); return tryResult3328 .propagateErr(); } auto [subdirsToProcess, databaseFilenames, obsoleteFilenames] = tryResult3328.unwrap();; | |||
12311 | ||||
12312 | if (aInitializing) { | |||
12313 | QM_TRY(CollectEachInRange({auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12314 | subdirsToProcess,{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12315 | [&directory, &obsoleteFilenames = obsoleteFilenames,{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12316 | &databaseFilenames = databaseFilenames, aPersistenceType,{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12317 | &aOriginMetadata]({auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12318 | const nsAString& subdirName) -> Result<Ok, nsresult> {{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12319 | // The directory must have the correct suffix.{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12320 | nsDependentSubstring subdirNameBase;{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12321 | QM_TRY(QM_OR_ELSE_WARN({auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12322 | // Expression.{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12323 | ([&subdirName, &subdirNameBase] {{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12324 | QM_TRY_RETURN(OkIf(GetFilenameBase({auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12325 | subdirName, kFileManagerDirectoryNameSuffix,{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12326 | subdirNameBase)));{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12327 | }()),{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12328 | // Fallback.{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12329 | ([&directory,{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12330 | &subdirName](const NotOk) -> Result<Ok, nsresult> {{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12331 | // If there is an unexpected directory in the idb{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12332 | // directory, trying to delete at first instead of{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12333 | // breaking the whole initialization.{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12334 | QM_TRY(MOZ_TO_RESULT({auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12335 | DeleteFilesNoQuota(directory, subdirName)),{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12336 | Err(NS_ERROR_UNEXPECTED));{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12337 | ||||
12338 | return Ok{};{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12339 | })),{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12340 | Ok{});{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12341 | ||||
12342 | if (obsoleteFilenames.Contains(subdirNameBase)) {{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12343 | // If this fails, it probably means we are in a serious situation.{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12344 | // e.g. Filesystem corruption. Will handle this in bug 1521541.{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12345 | QM_TRY(MOZ_TO_RESULT(RemoveDatabaseFilesAndDirectory({auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12346 | *directory, subdirNameBase, /* aQuotaManager */ nullptr,{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12347 | aPersistenceType, aOriginMetadata,{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12348 | /* aDatabaseName */ u""_ns)),{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12349 | Err(NS_ERROR_UNEXPECTED));{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12350 | ||||
12351 | databaseFilenames.Remove(subdirNameBase);{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12352 | return Ok{};{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12353 | }{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12354 | ||||
12355 | // The directory base must exist in databaseFilenames.{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12356 | // If there is an unexpected directory in the idb directory, trying to{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12357 | // delete at first instead of breaking the whole initialization.{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12358 | ||||
12359 | // XXX This is still somewhat quirky. It would be nice to make it{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12360 | // clear that the warning handler is infallible, which would also{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12361 | // remove the need for the error type conversion.{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12362 | QM_WARNONLY_TRY(QM_OR_ELSE_WARN({auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12363 | // Expression.{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12364 | OkIf(databaseFilenames.Contains(subdirNameBase)){auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12365 | .mapErr([](const NotOk) { return NS_ERROR_FAILURE; }),{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12366 | // Fallback.{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12367 | ([&directory,{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12368 | &subdirName](const nsresult) -> Result<Ok, nsresult> {{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12369 | // XXX It seems if we really got here, we can fail the{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12370 | // MOZ_ASSERT(!quotaManager->IsTemporaryStorageInitializedInternal());{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12371 | // assertion in DeleteFilesNoQuota.{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12372 | QM_TRY(MOZ_TO_RESULT(DeleteFilesNoQuota(directory, subdirName)),{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12373 | Err(NS_ERROR_UNEXPECTED));{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12374 | ||||
12375 | return Ok{};{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12376 | })));{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12377 | ||||
12378 | return Ok{};{auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }} | |||
12379 | })){auto tryResult3335 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, aPersistenceType, & aOriginMetadata]( const nsAString& subdirName) -> Result <Ok, nsresult> { nsDependentSubstring subdirNameBase; { auto tryResult3331 = ((([&subdirName, &subdirNameBase ] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix , subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr ()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult3329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12339, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError ("(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase )) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames .Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([ ](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&]( const auto& firstRes) { mozilla::dom::quota::HandleError( "\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect (!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult3334.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3335 )::ok_type>); if ((__builtin_expect(!!(tryResult3335.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult3331 = ((([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult3329.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult3329.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3331)::ok_type>); if ((__builtin_expect(!!(tryResult3331.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3331.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult3329.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult3329 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult3329.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult3329.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12326, mozilla::dom::quota::Severity::Error); } return tryResult3329;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult3330 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3330)::ok_type>); if ((__builtin_expect(!!(tryResult3330.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3330.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12336, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult3332 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3332)::ok_type>); if ((__builtin_expect(!!(tryResult3332.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3332.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult3334 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult3334)::ok_type>); if ((__builtin_expect(!!(tryResult3334.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12376, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult3333 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult3333)::ok_type>); if ((__builtin_expect(!!(tryResult3333.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3333.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12373, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult3334.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12376, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult3335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12379, mozilla::dom::quota::Severity::Error); return tryResult3335 .propagateErr(); }}; | |||
12380 | } | |||
12381 | ||||
12382 | for (const auto& databaseFilename : databaseFilenames) { | |||
12383 | if (aCanceled) { | |||
12384 | break; | |||
12385 | } | |||
12386 | ||||
12387 | QM_TRY_INSPECT(auto tryResult3336 = (CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult3336.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult3336.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12390, mozilla::dom::quota::Severity::Error); return tryResult3336 .propagateErr(); } const auto& fmDirectory = tryResult3336 .inspect(); | |||
12388 | const auto& fmDirectory,auto tryResult3336 = (CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult3336.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult3336.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12390, mozilla::dom::quota::Severity::Error); return tryResult3336 .propagateErr(); } const auto& fmDirectory = tryResult3336 .inspect(); | |||
12389 | CloneFileAndAppend(*directory,auto tryResult3336 = (CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult3336.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult3336.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12390, mozilla::dom::quota::Severity::Error); return tryResult3336 .propagateErr(); } const auto& fmDirectory = tryResult3336 .inspect(); | |||
12390 | databaseFilename + kFileManagerDirectoryNameSuffix))auto tryResult3336 = (CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult3336.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult3336.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12390, mozilla::dom::quota::Severity::Error); return tryResult3336 .propagateErr(); } const auto& fmDirectory = tryResult3336 .inspect();; | |||
12391 | ||||
12392 | QM_TRY_INSPECT(auto tryResult3337 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult3337.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)" , tryResult3337.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12394, mozilla::dom::quota::Severity::Error); return tryResult3337 .propagateErr(); } const auto& databaseFile = tryResult3337 .inspect(); | |||
12393 | const auto& databaseFile,auto tryResult3337 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult3337.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)" , tryResult3337.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12394, mozilla::dom::quota::Severity::Error); return tryResult3337 .propagateErr(); } const auto& databaseFile = tryResult3337 .inspect(); | |||
12394 | CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix))auto tryResult3337 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult3337.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)" , tryResult3337.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12394, mozilla::dom::quota::Severity::Error); return tryResult3337 .propagateErr(); } const auto& databaseFile = tryResult3337 .inspect();; | |||
12395 | ||||
12396 | if (aInitializing) { | |||
12397 | QM_TRY(MOZ_TO_RESULT(DatabaseFileManager::InitDirectory({auto tryResult3338 = (ToResult(DatabaseFileManager::InitDirectory ( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile (databaseFile)))); static_assert(std::is_empty_v<typename decltype (tryResult3338)::ok_type>); if ((__builtin_expect(!!(tryResult3338 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))" , tryResult3338.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12399, mozilla::dom::quota::Severity::Error); return tryResult3338 .propagateErr(); }} | |||
12398 | *fmDirectory, *databaseFile, aOriginMetadata.mOrigin,{auto tryResult3338 = (ToResult(DatabaseFileManager::InitDirectory ( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile (databaseFile)))); static_assert(std::is_empty_v<typename decltype (tryResult3338)::ok_type>); if ((__builtin_expect(!!(tryResult3338 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))" , tryResult3338.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12399, mozilla::dom::quota::Severity::Error); return tryResult3338 .propagateErr(); }} | |||
12399 | TelemetryIdForFile(databaseFile)))){auto tryResult3338 = (ToResult(DatabaseFileManager::InitDirectory ( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile (databaseFile)))); static_assert(std::is_empty_v<typename decltype (tryResult3338)::ok_type>); if ((__builtin_expect(!!(tryResult3338 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))" , tryResult3338.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12399, mozilla::dom::quota::Severity::Error); return tryResult3338 .propagateErr(); }}; | |||
12400 | } | |||
12401 | ||||
12402 | if (aUsageInfo) { | |||
12403 | { | |||
12404 | QM_TRY_INSPECT(const int64_t& fileSize,auto tryResult3339 = (::mozilla::ToResultInvokeMember( (databaseFile ), &::mozilla::detail::DerefedType<decltype(databaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3339. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (databaseFile), &::mozilla::detail::DerefedType<decltype(databaseFile)>::GetFileSize)" , tryResult3339.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Error); return tryResult3339 .propagateErr(); } const int64_t& fileSize = tryResult3339 .inspect(); | |||
12405 | MOZ_TO_RESULT_INVOKE_MEMBER(databaseFile, GetFileSize))auto tryResult3339 = (::mozilla::ToResultInvokeMember( (databaseFile ), &::mozilla::detail::DerefedType<decltype(databaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3339. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (databaseFile), &::mozilla::detail::DerefedType<decltype(databaseFile)>::GetFileSize)" , tryResult3339.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Error); return tryResult3339 .propagateErr(); } const int64_t& fileSize = tryResult3339 .inspect();; | |||
12406 | ||||
12407 | MOZ_ASSERT(fileSize >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileSize >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize >= 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12407); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize >= 0" ")"); do { *((volatile int*)__null) = 12407; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12408 | ||||
12409 | *aUsageInfo += DatabaseUsageType(Some(uint64_t(fileSize))); | |||
12410 | } | |||
12411 | ||||
12412 | { | |||
12413 | QM_TRY_INSPECT(const auto& walFile,auto tryResult3340 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult3340 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)" , tryResult3340.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12415, mozilla::dom::quota::Severity::Error); return tryResult3340 .propagateErr(); } const auto& walFile = tryResult3340.inspect (); | |||
12414 | CloneFileAndAppend(*directory,auto tryResult3340 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult3340 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)" , tryResult3340.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12415, mozilla::dom::quota::Severity::Error); return tryResult3340 .propagateErr(); } const auto& walFile = tryResult3340.inspect (); | |||
12415 | databaseFilename + kSQLiteWALSuffix))auto tryResult3340 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult3340 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)" , tryResult3340.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12415, mozilla::dom::quota::Severity::Error); return tryResult3340 .propagateErr(); } const auto& walFile = tryResult3340.inspect ();; | |||
12416 | ||||
12417 | // QM_OR_ELSE_WARN_IF is not used here since we just want to log | |||
12418 | // NS_ERROR_FILE_NOT_FOUND result and not spam the reports (the -wal | |||
12419 | // file doesn't have to exist). | |||
12420 | QM_TRY_INSPECT(const int64_t& walFileSize,auto tryResult3341 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota:: HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult3341.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult3341.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, mozilla::dom::quota::Severity::Error); return tryResult3341 .propagateErr(); } const int64_t& walFileSize = tryResult3341 .inspect(); | |||
12421 | QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult3341 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota:: HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult3341.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult3341.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, mozilla::dom::quota::Severity::Error); return tryResult3341 .propagateErr(); } const int64_t& walFileSize = tryResult3341 .inspect(); | |||
12422 | // Expression.auto tryResult3341 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota:: HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult3341.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult3341.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, mozilla::dom::quota::Severity::Error); return tryResult3341 .propagateErr(); } const int64_t& walFileSize = tryResult3341 .inspect(); | |||
12423 | MOZ_TO_RESULT_INVOKE_MEMBER(walFile, GetFileSize),auto tryResult3341 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota:: HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult3341.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult3341.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, mozilla::dom::quota::Severity::Error); return tryResult3341 .propagateErr(); } const int64_t& walFileSize = tryResult3341 .inspect(); | |||
12424 | // Predicate.auto tryResult3341 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota:: HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult3341.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult3341.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, mozilla::dom::quota::Severity::Error); return tryResult3341 .propagateErr(); } const int64_t& walFileSize = tryResult3341 .inspect(); | |||
12425 | ([](const nsresult rv) {auto tryResult3341 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota:: HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult3341.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult3341.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, mozilla::dom::quota::Severity::Error); return tryResult3341 .propagateErr(); } const int64_t& walFileSize = tryResult3341 .inspect(); | |||
12426 | return rv == NS_ERROR_FILE_NOT_FOUND;auto tryResult3341 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota:: HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult3341.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult3341.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, mozilla::dom::quota::Severity::Error); return tryResult3341 .propagateErr(); } const int64_t& walFileSize = tryResult3341 .inspect(); | |||
12427 | }),auto tryResult3341 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota:: HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult3341.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult3341.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, mozilla::dom::quota::Severity::Error); return tryResult3341 .propagateErr(); } const int64_t& walFileSize = tryResult3341 .inspect(); | |||
12428 | // Fallback.auto tryResult3341 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota:: HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult3341.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult3341.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, mozilla::dom::quota::Severity::Error); return tryResult3341 .propagateErr(); } const int64_t& walFileSize = tryResult3341 .inspect(); | |||
12429 | (ErrToOk<0, int64_t>)))auto tryResult3341 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType <decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota:: HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult3341.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12429, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult3341.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12429, mozilla::dom::quota::Severity::Error); return tryResult3341 .propagateErr(); } const int64_t& walFileSize = tryResult3341 .inspect();; | |||
12430 | MOZ_ASSERT(walFileSize >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(walFileSize >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(walFileSize >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("walFileSize >= 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12430); AnnotateMozCrashReason("MOZ_ASSERT" "(" "walFileSize >= 0" ")"); do { *((volatile int*)__null) = 12430; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12431 | *aUsageInfo += DatabaseUsageType(Some(uint64_t(walFileSize))); | |||
12432 | } | |||
12433 | ||||
12434 | { | |||
12435 | QM_TRY_INSPECT(const auto& fileUsage,auto tryResult3342 = (DatabaseFileManager::GetUsage(fmDirectory )); if ((__builtin_expect(!!(tryResult3342.isErr()), 0))) { mozilla ::dom::quota::HandleError("DatabaseFileManager::GetUsage(fmDirectory)" , tryResult3342.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12436, mozilla::dom::quota::Severity::Error); return tryResult3342 .propagateErr(); } const auto& fileUsage = tryResult3342. inspect(); | |||
12436 | DatabaseFileManager::GetUsage(fmDirectory))auto tryResult3342 = (DatabaseFileManager::GetUsage(fmDirectory )); if ((__builtin_expect(!!(tryResult3342.isErr()), 0))) { mozilla ::dom::quota::HandleError("DatabaseFileManager::GetUsage(fmDirectory)" , tryResult3342.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12436, mozilla::dom::quota::Severity::Error); return tryResult3342 .propagateErr(); } const auto& fileUsage = tryResult3342. inspect();; | |||
12437 | ||||
12438 | *aUsageInfo += fileUsage; | |||
12439 | } | |||
12440 | } | |||
12441 | } | |||
12442 | ||||
12443 | return NS_OK; | |||
12444 | } | |||
12445 | ||||
12446 | void QuotaClient::OnOriginClearCompleted(PersistenceType aPersistenceType, | |||
12447 | const nsACString& aOrigin) { | |||
12448 | AssertIsOnIOThread(); | |||
12449 | ||||
12450 | if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) { | |||
12451 | mgr->InvalidateFileManagers(aPersistenceType, aOrigin); | |||
12452 | } | |||
12453 | } | |||
12454 | ||||
12455 | void QuotaClient::OnRepositoryClearCompleted(PersistenceType aPersistenceType) { | |||
12456 | AssertIsOnIOThread(); | |||
12457 | ||||
12458 | if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) { | |||
12459 | mgr->InvalidateFileManagers(aPersistenceType); | |||
12460 | } | |||
12461 | } | |||
12462 | ||||
12463 | void QuotaClient::ReleaseIOThreadObjects() { | |||
12464 | AssertIsOnIOThread(); | |||
12465 | ||||
12466 | if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) { | |||
12467 | mgr->InvalidateAllFileManagers(); | |||
12468 | } | |||
12469 | } | |||
12470 | ||||
12471 | void QuotaClient::AbortOperationsForLocks( | |||
12472 | const DirectoryLockIdTable& aDirectoryLockIds) { | |||
12473 | AssertIsOnBackgroundThread(); | |||
12474 | ||||
12475 | InvalidateLiveDatabasesMatching([&aDirectoryLockIds](const auto& database) { | |||
12476 | // If the database is registered in gLiveDatabaseHashtable then it must have | |||
12477 | // a directory lock. | |||
12478 | return IsLockForObjectContainedInLockTable(database, aDirectoryLockIds); | |||
12479 | }); | |||
12480 | } | |||
12481 | ||||
12482 | void QuotaClient::AbortOperationsForProcess(ContentParentId aContentParentId) { | |||
12483 | AssertIsOnBackgroundThread(); | |||
12484 | ||||
12485 | InvalidateLiveDatabasesMatching([&aContentParentId](const auto& database) { | |||
12486 | return database.IsOwnedByProcess(aContentParentId); | |||
12487 | }); | |||
12488 | } | |||
12489 | ||||
12490 | void QuotaClient::AbortAllOperations() { | |||
12491 | AssertIsOnBackgroundThread(); | |||
12492 | ||||
12493 | AbortAllMaintenances(); | |||
12494 | ||||
12495 | InvalidateLiveDatabasesMatching([](const auto&) { return true; }); | |||
12496 | } | |||
12497 | ||||
12498 | void QuotaClient::StartIdleMaintenance() { | |||
12499 | AssertIsOnBackgroundThread(); | |||
12500 | if (IsShuttingDownOnBackgroundThread()) { | |||
12501 | MOZ_ASSERT(false, "!IsShuttingDownOnBackgroundThread()")do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" "!IsShuttingDownOnBackgroundThread()" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12501); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!IsShuttingDownOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 12501; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); | |||
12502 | return; | |||
12503 | } | |||
12504 | ||||
12505 | DoMaintenance(); | |||
12506 | } | |||
12507 | ||||
12508 | void QuotaClient::StopIdleMaintenance() { | |||
12509 | AssertIsOnBackgroundThread(); | |||
12510 | ||||
12511 | AbortAllMaintenances(); | |||
12512 | } | |||
12513 | ||||
12514 | void QuotaClient::InitiateShutdown() { | |||
12515 | AssertIsOnBackgroundThread(); | |||
12516 | MOZ_ASSERT(IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(IsShuttingDownOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(IsShuttingDownOnBackgroundThread ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12516); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsShuttingDownOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 12516; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12517 | ||||
12518 | if (mDeleteTimer) { | |||
12519 | // QuotaClient::AsyncDeleteFile will not schedule new timers beyond | |||
12520 | // shutdown. And we expect all critical (PBM) deletions to have been | |||
12521 | // triggered before this point via ClearPrivateRepository (w/out using | |||
12522 | // DeleteFilesRunnable at all). | |||
12523 | mDeleteTimer->Cancel(); | |||
12524 | mDeleteTimer = nullptr; | |||
12525 | mPendingDeleteInfos.Clear(); | |||
12526 | } | |||
12527 | ||||
12528 | AbortAllOperations(); | |||
12529 | } | |||
12530 | ||||
12531 | bool QuotaClient::IsShutdownCompleted() const { | |||
12532 | return (!gFactoryOps || gFactoryOps->IsEmpty()) && | |||
12533 | (!gLiveDatabaseHashtable || !gLiveDatabaseHashtable->Count()) && | |||
12534 | !mCurrentMaintenance && !DeleteFilesRunnable::IsDeletionPending(); | |||
12535 | } | |||
12536 | ||||
12537 | void QuotaClient::ForceKillActors() { | |||
12538 | // Currently we don't implement force killing actors. | |||
12539 | } | |||
12540 | ||||
12541 | nsCString QuotaClient::GetShutdownStatus() const { | |||
12542 | AssertIsOnBackgroundThread(); | |||
12543 | ||||
12544 | nsCString data; | |||
12545 | ||||
12546 | if (gFactoryOps && !gFactoryOps->IsEmpty()) { | |||
12547 | data.Append("FactoryOperations: "_ns + | |||
12548 | IntToCString(static_cast<uint32_t>(gFactoryOps->Length())) + | |||
12549 | " ("_ns); | |||
12550 | ||||
12551 | // XXX It might be confusing to remove duplicates here, as the actual list | |||
12552 | // won't match the count then. | |||
12553 | nsTHashSet<nsCString> ids; | |||
12554 | std::transform(gFactoryOps->cbegin(), gFactoryOps->cend(), | |||
12555 | MakeInserter(ids), [](const auto& factoryOp) { | |||
12556 | MOZ_ASSERT(factoryOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(factoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(factoryOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("factoryOp", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12556); AnnotateMozCrashReason("MOZ_ASSERT" "(" "factoryOp" ")"); do { *((volatile int*)__null) = 12556; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12557 | ||||
12558 | nsCString id; | |||
12559 | factoryOp->Stringify(id); | |||
12560 | return id; | |||
12561 | }); | |||
12562 | ||||
12563 | StringJoinAppend(data, ", "_ns, ids); | |||
12564 | ||||
12565 | data.Append(")\n"); | |||
12566 | } | |||
12567 | ||||
12568 | if (gLiveDatabaseHashtable && gLiveDatabaseHashtable->Count()) { | |||
12569 | data.Append("LiveDatabases: "_ns + | |||
12570 | IntToCString(gLiveDatabaseHashtable->Count()) + " ("_ns); | |||
12571 | ||||
12572 | // XXX What's the purpose of adding these to a hashtable before joining them | |||
12573 | // to the string? (Maybe this used to be an ordered container before???) | |||
12574 | nsTHashSet<nsCString> ids; | |||
12575 | ||||
12576 | for (const auto& entry : gLiveDatabaseHashtable->Values()) { | |||
12577 | MOZ_ASSERT(entry)do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(entry))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("entry", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry" ")" ); do { *((volatile int*)__null) = 12577; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
12578 | ||||
12579 | std::transform(entry->mLiveDatabases.cbegin(), | |||
12580 | entry->mLiveDatabases.cend(), MakeInserter(ids), | |||
12581 | [](const auto& database) { | |||
12582 | nsCString id; | |||
12583 | database->Stringify(id); | |||
12584 | return id; | |||
12585 | }); | |||
12586 | } | |||
12587 | ||||
12588 | StringJoinAppend(data, ", "_ns, ids); | |||
12589 | ||||
12590 | data.Append(")\n"); | |||
12591 | } | |||
12592 | ||||
12593 | if (mCurrentMaintenance) { | |||
12594 | data.Append("IdleMaintenance: 1 ("); | |||
12595 | mCurrentMaintenance->Stringify(data); | |||
12596 | data.Append(")\n"); | |||
12597 | } | |||
12598 | ||||
12599 | return data; | |||
12600 | } | |||
12601 | ||||
12602 | void QuotaClient::FinalizeShutdown() { | |||
12603 | RefPtr<ConnectionPool> connectionPool = gConnectionPool.get(); | |||
12604 | if (connectionPool) { | |||
12605 | connectionPool->Shutdown(); | |||
12606 | ||||
12607 | gConnectionPool = nullptr; | |||
12608 | } | |||
12609 | ||||
12610 | if (mMaintenanceThreadPool) { | |||
12611 | mMaintenanceThreadPool->Shutdown(); | |||
12612 | mMaintenanceThreadPool = nullptr; | |||
12613 | } | |||
12614 | } | |||
12615 | ||||
12616 | void QuotaClient::DeleteTimerCallback(nsITimer* aTimer, void* aClosure) { | |||
12617 | AssertIsOnBackgroundThread(); | |||
12618 | MOZ_ASSERT(aTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aTimer)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aTimer))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aTimer", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12618); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTimer" ")" ); do { *((volatile int*)__null) = 12618; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
12619 | ||||
12620 | // Even though we do not schedule new timers after shutdown has started, | |||
12621 | // an already existing one might fire afterwards (actually we think it | |||
12622 | // shouldn't, but there is no reason to enforce this invariant). We can | |||
12623 | // just ignore it, the cleanup work is done in InitiateShutdown. | |||
12624 | if (NS_WARN_IF(IsShuttingDownOnBackgroundThread())NS_warn_if_impl(IsShuttingDownOnBackgroundThread(), "IsShuttingDownOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12624)) { | |||
12625 | return; | |||
12626 | } | |||
12627 | ||||
12628 | auto* const self = static_cast<QuotaClient*>(aClosure); | |||
12629 | MOZ_ASSERT(self)do { static_assert( mozilla::detail::AssertionConditionType< decltype(self)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(self))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("self", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12629); AnnotateMozCrashReason("MOZ_ASSERT" "(" "self" ")") ; do { *((volatile int*)__null) = 12629; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
12630 | MOZ_ASSERT(self->mDeleteTimer)do { static_assert( mozilla::detail::AssertionConditionType< decltype(self->mDeleteTimer)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(self->mDeleteTimer))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("self->mDeleteTimer" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12630); AnnotateMozCrashReason("MOZ_ASSERT" "(" "self->mDeleteTimer" ")"); do { *((volatile int*)__null) = 12630; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12631 | MOZ_ASSERT(SameCOMIdentity(self->mDeleteTimer, aTimer))do { static_assert( mozilla::detail::AssertionConditionType< decltype(SameCOMIdentity(self->mDeleteTimer, aTimer))>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(SameCOMIdentity(self->mDeleteTimer, aTimer)))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("SameCOMIdentity(self->mDeleteTimer, aTimer)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12631); AnnotateMozCrashReason("MOZ_ASSERT" "(" "SameCOMIdentity(self->mDeleteTimer, aTimer)" ")"); do { *((volatile int*)__null) = 12631; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12632 | ||||
12633 | for (const auto& pendingDeleteInfoEntry : self->mPendingDeleteInfos) { | |||
12634 | const auto& key = pendingDeleteInfoEntry.GetKey(); | |||
12635 | const auto& value = pendingDeleteInfoEntry.GetData(); | |||
12636 | MOZ_ASSERT(!value->IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!value->IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!value->IsEmpty()))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!value->IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12636); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!value->IsEmpty()" ")"); do { *((volatile int*)__null) = 12636; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12637 | ||||
12638 | RefPtr<DeleteFilesRunnable> runnable = new DeleteFilesRunnable( | |||
12639 | SafeRefPtr{key, AcquireStrongRefFromRawPtr{}}, std::move(*value)); | |||
12640 | ||||
12641 | MOZ_ASSERT(value->IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(value->IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(value->IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("value->IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12641); AnnotateMozCrashReason("MOZ_ASSERT" "(" "value->IsEmpty()" ")"); do { *((volatile int*)__null) = 12641; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12642 | ||||
12643 | runnable->RunImmediately(); | |||
12644 | } | |||
12645 | ||||
12646 | self->mPendingDeleteInfos.Clear(); | |||
12647 | } | |||
12648 | ||||
12649 | void QuotaClient::AbortAllMaintenances() { | |||
12650 | if (mCurrentMaintenance) { | |||
12651 | mCurrentMaintenance->Abort(); | |||
12652 | } | |||
12653 | ||||
12654 | for (const auto& maintenance : mMaintenanceQueue) { | |||
12655 | maintenance->Abort(); | |||
12656 | } | |||
12657 | } | |||
12658 | ||||
12659 | Result<nsCOMPtr<nsIFile>, nsresult> QuotaClient::GetDirectory( | |||
12660 | const OriginMetadata& aOriginMetadata) { | |||
12661 | QuotaManager* const quotaManager = QuotaManager::Get(); | |||
12662 | NS_ASSERTION(quotaManager, "This should never fail!")do { if (!(quotaManager)) { NS_DebugBreak(NS_DEBUG_ASSERTION, "This should never fail!", "quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12662); MOZ_PretendNoReturn(); } } while (0); | |||
12663 | ||||
12664 | QM_TRY_INSPECT(const auto& directory,auto tryResult3343 = (quotaManager->GetOriginDirectory(aOriginMetadata )); if ((__builtin_expect(!!(tryResult3343.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(aOriginMetadata)" , tryResult3343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12665, mozilla::dom::quota::Severity::Error); return tryResult3343 .propagateErr(); } const auto& directory = tryResult3343. inspect(); | |||
12665 | quotaManager->GetOriginDirectory(aOriginMetadata))auto tryResult3343 = (quotaManager->GetOriginDirectory(aOriginMetadata )); if ((__builtin_expect(!!(tryResult3343.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(aOriginMetadata)" , tryResult3343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12665, mozilla::dom::quota::Severity::Error); return tryResult3343 .propagateErr(); } const auto& directory = tryResult3343. inspect();; | |||
12666 | ||||
12667 | MOZ_ASSERT(directory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(directory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(directory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("directory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12667); AnnotateMozCrashReason("MOZ_ASSERT" "(" "directory" ")"); do { *((volatile int*)__null) = 12667; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12668 | ||||
12669 | QM_TRY(MOZ_TO_RESULT({auto tryResult3344 = (ToResult(directory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3344 )::ok_type>); if ((__builtin_expect(!!(tryResult3344.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3344.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12670, mozilla::dom::quota::Severity::Error); return tryResult3344 .propagateErr(); }} | |||
12670 | directory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult3344 = (ToResult(directory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3344 )::ok_type>); if ((__builtin_expect(!!(tryResult3344.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3344.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12670, mozilla::dom::quota::Severity::Error); return tryResult3344 .propagateErr(); }}; | |||
12671 | ||||
12672 | return directory; | |||
12673 | } | |||
12674 | ||||
12675 | template <QuotaClient::ObsoleteFilenamesHandling ObsoleteFilenames> | |||
12676 | Result<QuotaClient::GetDatabaseFilenamesResult<ObsoleteFilenames>, nsresult> | |||
12677 | QuotaClient::GetDatabaseFilenames(nsIFile& aDirectory, | |||
12678 | const AtomicBool& aCanceled) { | |||
12679 | AssertIsOnIOThread(); | |||
12680 | ||||
12681 | GetDatabaseFilenamesResult<ObsoleteFilenames> result; | |||
12682 | ||||
12683 | QM_TRY(CollectEachFileAtomicCancelable({auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12684 | aDirectory, aCanceled,{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12685 | [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12686 | QM_TRY_INSPECT(const auto& leafName, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12687 | nsString, file, GetLeafName));{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12688 | ||||
12689 | QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*file));{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12690 | ||||
12691 | switch (dirEntryKind) {{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12692 | case nsIFileKind::ExistsAsDirectory:{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12693 | result.subdirsToProcess.AppendElement(leafName);{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12694 | break;{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12695 | ||||
12696 | case nsIFileKind::ExistsAsFile: {{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12697 | if constexpr (ObsoleteFilenames =={auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12698 | ObsoleteFilenamesHandling::Include) {{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12699 | if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) {{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12700 | result.obsoleteFilenames.Insert({auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12701 | Substring(leafName, kIdbDeletionMarkerFilePrefix.Length()));{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12702 | break;{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12703 | }{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12704 | }{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12705 | ||||
12706 | // Skip OS metadata files. These files are only used in different{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12707 | // platforms, but the profile can be shared across different{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12708 | // operating systems, so we check it on all platforms.{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12709 | if (QuotaManager::IsOSMetadata(leafName)) {{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12710 | break;{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12711 | }{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12712 | ||||
12713 | // Skip files starting with ".".{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12714 | if (QuotaManager::IsDotFile(leafName)) {{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12715 | break;{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12716 | }{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12717 | ||||
12718 | // Skip SQLite temporary files. These files take up space on disk{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12719 | // but will be deleted as soon as the database is opened, so we{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12720 | // don't count them towards quota.{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12721 | if (StringEndsWith(leafName, kSQLiteJournalSuffix) ||{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12722 | StringEndsWith(leafName, kSQLiteSHMSuffix)) {{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12723 | break;{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12724 | }{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12725 | ||||
12726 | // The SQLite WAL file does count towards quota, but it is handled{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12727 | // below once we find the actual database file.{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12728 | if (StringEndsWith(leafName, kSQLiteWALSuffix)) {{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12729 | break;{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12730 | }{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12731 | ||||
12732 | nsDependentSubstring leafNameBase;{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12733 | if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) {{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12734 | UNKNOWN_FILE_WARNING(leafName);{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12735 | break;{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12736 | }{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12737 | ||||
12738 | result.databaseFilenames.Insert(leafNameBase);{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12739 | break;{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12740 | }{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12741 | ||||
12742 | case nsIFileKind::DoesNotExist:{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12743 | // Ignore files that got removed externally while iterating.{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12744 | break;{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12745 | }{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12746 | ||||
12747 | return Ok{};{auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }} | |||
12748 | })){auto tryResult3347 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))" , tryResult3345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12687, mozilla::dom::quota::Severity::Error); return tryResult3345 .propagateErr(); } const auto& leafName = tryResult3345.inspect ();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult3346.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12689, mozilla::dom::quota::Severity::Error); return tryResult3346 .propagateErr(); } const auto& dirEntryKind = tryResult3346 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING , nsPrintfCString( "Something (%s) in the directory that doesn't belong!" , NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12734); break; } result.databaseFilenames.Insert(leafNameBase ); break; } case nsIFileKind::DoesNotExist: break; } return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult3347 )::ok_type>); if ((__builtin_expect(!!(tryResult3347.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult3345 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult3345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult3345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12687, mozilla::dom::quota::Severity::Error); return tryResult3345.propagateErr(); } const auto& leafName = tryResult3345.inspect();; auto tryResult3346 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult3346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult3346.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12689, mozilla::dom::quota::Severity::Error); return tryResult3346.propagateErr(); } const auto& dirEntryKind = tryResult3346.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12734); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3347.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12748, mozilla::dom::quota::Severity::Error); return tryResult3347 .propagateErr(); }}; | |||
12749 | ||||
12750 | return result; | |||
12751 | } | |||
12752 | ||||
12753 | void QuotaClient::ProcessMaintenanceQueue() { | |||
12754 | AssertIsOnBackgroundThread(); | |||
12755 | ||||
12756 | if (mCurrentMaintenance || mMaintenanceQueue.IsEmpty()) { | |||
12757 | return; | |||
12758 | } | |||
12759 | ||||
12760 | mCurrentMaintenance = mMaintenanceQueue[0]; | |||
12761 | mMaintenanceQueue.RemoveElementAt(0); | |||
12762 | ||||
12763 | mCurrentMaintenance->RunImmediately(); | |||
12764 | } | |||
12765 | ||||
12766 | /******************************************************************************* | |||
12767 | * DeleteFilesRunnable | |||
12768 | ******************************************************************************/ | |||
12769 | ||||
12770 | uint64_t DeleteFilesRunnable::sPendingRunnables = 0; | |||
12771 | ||||
12772 | DeleteFilesRunnable::DeleteFilesRunnable( | |||
12773 | SafeRefPtr<DatabaseFileManager> aFileManager, nsTArray<int64_t>&& aFileIds) | |||
12774 | : Runnable("dom::indexeddb::DeleteFilesRunnable"), | |||
12775 | mOwningEventTarget(GetCurrentSerialEventTarget()), | |||
12776 | mFileManager(std::move(aFileManager)), | |||
12777 | mFileIds(std::move(aFileIds)), | |||
12778 | mState(State_Initial) {} | |||
12779 | ||||
12780 | #ifdef DEBUG1 | |||
12781 | DeleteFilesRunnable::~DeleteFilesRunnable() { | |||
12782 | MOZ_ASSERT(!mDEBUGCountsAsPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDEBUGCountsAsPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDEBUGCountsAsPending))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGCountsAsPending" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12782); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGCountsAsPending" ")"); do { *((volatile int*)__null) = 12782; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12783 | } | |||
12784 | #endif | |||
12785 | ||||
12786 | void DeleteFilesRunnable::RunImmediately() { | |||
12787 | AssertIsOnBackgroundThread(); | |||
12788 | MOZ_ASSERT(mState == State_Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State_Initial)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State_Initial))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State_Initial" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12788); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_Initial" ")"); do { *((volatile int*)__null) = 12788; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12789 | ||||
12790 | Unused << this->Run(); | |||
12791 | } | |||
12792 | ||||
12793 | void DeleteFilesRunnable::Open() { | |||
12794 | AssertIsOnBackgroundThread(); | |||
12795 | MOZ_ASSERT(mState == State_Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State_Initial)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State_Initial))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State_Initial" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12795); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_Initial" ")"); do { *((volatile int*)__null) = 12795; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12796 | ||||
12797 | MOZ_ASSERT(!mDEBUGCountsAsPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDEBUGCountsAsPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDEBUGCountsAsPending))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGCountsAsPending" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12797); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGCountsAsPending" ")"); do { *((volatile int*)__null) = 12797; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12798 | sPendingRunnables++; | |||
12799 | DEBUGONLY(mDEBUGCountsAsPending = true)mDEBUGCountsAsPending = true; | |||
12800 | ||||
12801 | QuotaManager* const quotaManager = QuotaManager::Get(); | |||
12802 | if (NS_WARN_IF(!quotaManager)NS_warn_if_impl(!quotaManager, "!quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12802)) { | |||
12803 | Finish(); | |||
12804 | return; | |||
12805 | } | |||
12806 | ||||
12807 | mState = State_DirectoryOpenPending; | |||
12808 | ||||
12809 | quotaManager | |||
12810 | ->OpenClientDirectory( | |||
12811 | {mFileManager->OriginMetadata(), quota::Client::IDB}) | |||
12812 | ->Then( | |||
12813 | GetCurrentSerialEventTarget(), __func__, | |||
12814 | [self = RefPtr(this)]( | |||
12815 | const ClientDirectoryLockPromise::ResolveOrRejectValue& aValue) { | |||
12816 | if (aValue.IsResolve()) { | |||
12817 | self->DirectoryLockAcquired(aValue.ResolveValue()); | |||
12818 | } else { | |||
12819 | self->DirectoryLockFailed(); | |||
12820 | } | |||
12821 | }); | |||
12822 | } | |||
12823 | ||||
12824 | void DeleteFilesRunnable::DoDatabaseWork() { | |||
12825 | AssertIsOnIOThread(); | |||
12826 | MOZ_ASSERT(mState == State_DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State_DatabaseWorkOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State_DatabaseWorkOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State_DatabaseWorkOpen", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DatabaseWorkOpen" ")"); do { *((volatile int*)__null) = 12826; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12827 | ||||
12828 | if (!mFileManager->Invalidated()) { | |||
12829 | for (int64_t fileId : mFileIds) { | |||
12830 | if (NS_FAILED(mFileManager->SyncDeleteFile(fileId))((bool)(__builtin_expect(!!(NS_FAILED_impl(mFileManager->SyncDeleteFile (fileId))), 0)))) { | |||
12831 | NS_WARNING("Failed to delete file!")NS_DebugBreak(NS_DEBUG_WARNING, "Failed to delete file!", nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12831); | |||
12832 | } | |||
12833 | } | |||
12834 | } | |||
12835 | ||||
12836 | Finish(); | |||
12837 | } | |||
12838 | ||||
12839 | void DeleteFilesRunnable::Finish() { | |||
12840 | MOZ_ASSERT(mState != State_UnblockingOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState != State_UnblockingOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState != State_UnblockingOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState != State_UnblockingOpen", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12840); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State_UnblockingOpen" ")"); do { *((volatile int*)__null) = 12840; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12841 | ||||
12842 | // Must set mState before dispatching otherwise we will race with the main | |||
12843 | // thread. | |||
12844 | mState = State_UnblockingOpen; | |||
12845 | ||||
12846 | MOZ_ALWAYS_SUCCEEDS(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12846); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 12846; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
12847 | } | |||
12848 | ||||
12849 | void DeleteFilesRunnable::UnblockOpen() { | |||
12850 | AssertIsOnBackgroundThread(); | |||
12851 | MOZ_ASSERT(mState == State_UnblockingOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State_UnblockingOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State_UnblockingOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State_UnblockingOpen", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12851); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_UnblockingOpen" ")"); do { *((volatile int*)__null) = 12851; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12852 | ||||
12853 | SafeDropDirectoryLock(mDirectoryLock); | |||
12854 | ||||
12855 | MOZ_ASSERT(mDEBUGCountsAsPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGCountsAsPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGCountsAsPending))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGCountsAsPending" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12855); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGCountsAsPending" ")"); do { *((volatile int*)__null) = 12855; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12856 | sPendingRunnables--; | |||
12857 | DEBUGONLY(mDEBUGCountsAsPending = false)mDEBUGCountsAsPending = false; | |||
12858 | ||||
12859 | mState = State_Completed; | |||
12860 | } | |||
12861 | ||||
12862 | NS_IMETHODIMPnsresult | |||
12863 | DeleteFilesRunnable::Run() { | |||
12864 | switch (mState) { | |||
12865 | case State_Initial: | |||
12866 | Open(); | |||
12867 | break; | |||
12868 | ||||
12869 | case State_DatabaseWorkOpen: | |||
12870 | DoDatabaseWork(); | |||
12871 | break; | |||
12872 | ||||
12873 | case State_UnblockingOpen: | |||
12874 | UnblockOpen(); | |||
12875 | break; | |||
12876 | ||||
12877 | case State_DirectoryOpenPending: | |||
12878 | default: | |||
12879 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12879); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 12879; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
12880 | } | |||
12881 | ||||
12882 | return NS_OK; | |||
12883 | } | |||
12884 | ||||
12885 | void DeleteFilesRunnable::DirectoryLockAcquired(DirectoryLock* aLock) { | |||
12886 | AssertIsOnBackgroundThread(); | |||
12887 | MOZ_ASSERT(mState == State_DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State_DirectoryOpenPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State_DirectoryOpenPending ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State_DirectoryOpenPending", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DirectoryOpenPending" ")"); do { *((volatile int*)__null) = 12887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12888 | MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"); do { *((volatile int*)__null) = 12888; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12889 | ||||
12890 | mDirectoryLock = aLock; | |||
12891 | ||||
12892 | QuotaManager* const quotaManager = QuotaManager::Get(); | |||
12893 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { *((volatile int*)__null) = 12893; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12894 | ||||
12895 | // Must set this before dispatching otherwise we will race with the IO thread | |||
12896 | mState = State_DatabaseWorkOpen; | |||
12897 | ||||
12898 | QM_TRY(MOZ_TO_RESULT({auto tryResult3348 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3348)::ok_type >); if ((__builtin_expect(!!(tryResult3348.isErr()), 0))) { auto tryTempError = tryResult3348.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12900, mozilla::dom::quota::Severity::Error); [this](const nsresult ) { Finish(); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }} | |||
12899 | quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult3348 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3348)::ok_type >); if ((__builtin_expect(!!(tryResult3348.isErr()), 0))) { auto tryTempError = tryResult3348.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12900, mozilla::dom::quota::Severity::Error); [this](const nsresult ) { Finish(); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }} | |||
12900 | QM_VOID, [this](const nsresult) { Finish(); }){auto tryResult3348 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3348)::ok_type >); if ((__builtin_expect(!!(tryResult3348.isErr()), 0))) { auto tryTempError = tryResult3348.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12900, mozilla::dom::quota::Severity::Error); [this](const nsresult ) { Finish(); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; | |||
12901 | } | |||
12902 | ||||
12903 | void DeleteFilesRunnable::DirectoryLockFailed() { | |||
12904 | AssertIsOnBackgroundThread(); | |||
12905 | MOZ_ASSERT(mState == State_DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State_DirectoryOpenPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State_DirectoryOpenPending ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State_DirectoryOpenPending", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12905); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DirectoryOpenPending" ")"); do { *((volatile int*)__null) = 12905; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12906 | MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12906); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"); do { *((volatile int*)__null) = 12906; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12907 | ||||
12908 | Finish(); | |||
12909 | } | |||
12910 | ||||
12911 | void Maintenance::Abort() { | |||
12912 | AssertIsOnBackgroundThread(); | |||
12913 | ||||
12914 | // Safe because mDatabaseMaintenances is modified | |||
12915 | // only in the background thread | |||
12916 | for (const auto& aDatabaseMaintenance : mDatabaseMaintenances) { | |||
12917 | aDatabaseMaintenance.GetData()->Abort(); | |||
12918 | } | |||
12919 | ||||
12920 | mAborted = true; | |||
12921 | } | |||
12922 | ||||
12923 | void Maintenance::RegisterDatabaseMaintenance( | |||
12924 | DatabaseMaintenance* aDatabaseMaintenance) { | |||
12925 | AssertIsOnBackgroundThread(); | |||
12926 | MOZ_ASSERT(aDatabaseMaintenance)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseMaintenance)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseMaintenance))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseMaintenance" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12926); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseMaintenance" ")"); do { *((volatile int*)__null) = 12926; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12927 | MOZ_ASSERT(mState == State::BeginDatabaseMaintenance)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginDatabaseMaintenance)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mState == State::BeginDatabaseMaintenance))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::BeginDatabaseMaintenance" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12927); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginDatabaseMaintenance" ")"); do { *((volatile int*)__null) = 12927; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12928 | MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabaseMaintenances.Contains(aDatabaseMaintenance ->DatabasePath()))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabaseMaintenances.Contains (aDatabaseMaintenance->DatabasePath())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12929); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())" ")"); do { *((volatile int*)__null) = 12929; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
12929 | !mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath()))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabaseMaintenances.Contains(aDatabaseMaintenance ->DatabasePath()))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabaseMaintenances.Contains (aDatabaseMaintenance->DatabasePath())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12929); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())" ")"); do { *((volatile int*)__null) = 12929; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12930 | ||||
12931 | mDatabaseMaintenances.InsertOrUpdate(aDatabaseMaintenance->DatabasePath(), | |||
12932 | aDatabaseMaintenance); | |||
12933 | } | |||
12934 | ||||
12935 | void Maintenance::UnregisterDatabaseMaintenance( | |||
12936 | DatabaseMaintenance* aDatabaseMaintenance) { | |||
12937 | AssertIsOnBackgroundThread(); | |||
12938 | MOZ_ASSERT(aDatabaseMaintenance)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseMaintenance)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseMaintenance))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseMaintenance" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12938); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseMaintenance" ")"); do { *((volatile int*)__null) = 12938; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12939 | MOZ_ASSERT(mState == State::WaitingForDatabaseMaintenancesToComplete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::WaitingForDatabaseMaintenancesToComplete )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::WaitingForDatabaseMaintenancesToComplete ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::WaitingForDatabaseMaintenancesToComplete", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12939); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForDatabaseMaintenancesToComplete" ")"); do { *((volatile int*)__null) = 12939; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12940 | MOZ_ASSERT(mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath()))do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath ()))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath ())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath())" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12940); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath())" ")"); do { *((volatile int*)__null) = 12940; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12941 | ||||
12942 | mDatabaseMaintenances.Remove(aDatabaseMaintenance->DatabasePath()); | |||
12943 | ||||
12944 | if (mDatabaseMaintenances.Count()) { | |||
12945 | return; | |||
12946 | } | |||
12947 | ||||
12948 | for (const auto& completeCallback : mCompleteCallbacks) { | |||
12949 | MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(completeCallback))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (NS_DispatchToCurrentThread(completeCallback))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(completeCallback))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12949); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(completeCallback))" ")"); do { *((volatile int*)__null) = 12949; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
12950 | } | |||
12951 | mCompleteCallbacks.Clear(); | |||
12952 | ||||
12953 | mState = State::Finishing; | |||
12954 | Finish(); | |||
12955 | } | |||
12956 | ||||
12957 | void Maintenance::Stringify(nsACString& aResult) const { | |||
12958 | AssertIsOnBackgroundThread(); | |||
12959 | ||||
12960 | aResult.Append("DatabaseMaintenances: "_ns + | |||
12961 | IntToCString(mDatabaseMaintenances.Count()) + " ("_ns); | |||
12962 | ||||
12963 | // XXX It might be confusing to remove duplicates here, as the actual list | |||
12964 | // won't match the count then. | |||
12965 | nsTHashSet<nsCString> ids; | |||
12966 | std::transform(mDatabaseMaintenances.Values().cbegin(), | |||
12967 | mDatabaseMaintenances.Values().cend(), MakeInserter(ids), | |||
12968 | [](const auto& entry) { | |||
12969 | MOZ_ASSERT(entry)do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(entry))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("entry", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12969); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry" ")" ); do { *((volatile int*)__null) = 12969; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
12970 | ||||
12971 | nsCString id; | |||
12972 | entry->Stringify(id); | |||
12973 | ||||
12974 | return id; | |||
12975 | }); | |||
12976 | ||||
12977 | StringJoinAppend(aResult, ", "_ns, ids); | |||
12978 | ||||
12979 | aResult.Append(")"); | |||
12980 | } | |||
12981 | ||||
12982 | nsresult Maintenance::Start() { | |||
12983 | AssertIsOnBackgroundThread(); | |||
12984 | MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial" ")"); do { *((volatile int*)__null) = 12984; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
12985 | ||||
12986 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 12986) || | |||
12987 | IsAborted()) { | |||
12988 | return NS_ERROR_ABORT; | |||
12989 | } | |||
12990 | ||||
12991 | // Make sure that the IndexedDatabaseManager is running so that we can check | |||
12992 | // for low disk space mode. | |||
12993 | ||||
12994 | if (IndexedDatabaseManager::Get()) { | |||
12995 | OpenDirectory(); | |||
12996 | return NS_OK; | |||
12997 | } | |||
12998 | ||||
12999 | mState = State::CreateIndexedDatabaseManager; | |||
13000 | MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(this))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (NS_DispatchToMainThread(this))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(NS_DispatchToMainThread(this))" ")" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13000); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(NS_DispatchToMainThread(this))" ")"); do { *((volatile int*)__null) = 13000; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } } while (false ); | |||
13001 | ||||
13002 | return NS_OK; | |||
13003 | } | |||
13004 | ||||
13005 | nsresult Maintenance::CreateIndexedDatabaseManager() { | |||
13006 | MOZ_ASSERT(NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13006); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 13006; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13007 | MOZ_ASSERT(mState == State::CreateIndexedDatabaseManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::CreateIndexedDatabaseManager)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::CreateIndexedDatabaseManager))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::CreateIndexedDatabaseManager" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13007); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::CreateIndexedDatabaseManager" ")"); do { *((volatile int*)__null) = 13007; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13008 | ||||
13009 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13009) || | |||
13010 | IsAborted()) { | |||
13011 | return NS_ERROR_ABORT; | |||
13012 | } | |||
13013 | ||||
13014 | IndexedDatabaseManager* const mgr = IndexedDatabaseManager::GetOrCreate(); | |||
13015 | if (NS_WARN_IF(!mgr)NS_warn_if_impl(!mgr, "!mgr", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13015)) { | |||
13016 | return NS_ERROR_FAILURE; | |||
13017 | } | |||
13018 | ||||
13019 | mState = State::IndexedDatabaseManagerOpen; | |||
13020 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget ::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13021); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 13021; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
13021 | mQuotaClient->BackgroundThread()->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget ::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13021); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 13021; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
13022 | ||||
13023 | return NS_OK; | |||
13024 | } | |||
13025 | ||||
13026 | nsresult Maintenance::OpenDirectory() { | |||
13027 | AssertIsOnBackgroundThread(); | |||
13028 | MOZ_ASSERT(mState == State::Initial ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial || mState == State::IndexedDatabaseManagerOpen )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::Initial || mState == State::IndexedDatabaseManagerOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::Initial || mState == State::IndexedDatabaseManagerOpen" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::IndexedDatabaseManagerOpen" ")"); do { *((volatile int*)__null) = 13029; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
13029 | mState == State::IndexedDatabaseManagerOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial || mState == State::IndexedDatabaseManagerOpen )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::Initial || mState == State::IndexedDatabaseManagerOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::Initial || mState == State::IndexedDatabaseManagerOpen" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::IndexedDatabaseManagerOpen" ")"); do { *((volatile int*)__null) = 13029; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13030 | MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13030); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"); do { *((volatile int*)__null) = 13030; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13031 | MOZ_ASSERT(QuotaManager::Get())do { static_assert( mozilla::detail::AssertionConditionType< decltype(QuotaManager::Get())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(QuotaManager::Get()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("QuotaManager::Get()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13031); AnnotateMozCrashReason("MOZ_ASSERT" "(" "QuotaManager::Get()" ")"); do { *((volatile int*)__null) = 13031; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13032 | ||||
13033 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13033) || | |||
13034 | IsAborted()) { | |||
13035 | return NS_ERROR_ABORT; | |||
13036 | } | |||
13037 | ||||
13038 | QuotaManager* quotaManager = QuotaManager::Get(); | |||
13039 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13039); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { *((volatile int*)__null) = 13039; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13040 | ||||
13041 | // Get a shared lock for <profile>/storage/*/*/idb | |||
13042 | ||||
13043 | mState = State::DirectoryOpenPending; | |||
13044 | ||||
13045 | quotaManager | |||
13046 | ->OpenStorageDirectory( | |||
13047 | Nullable<PersistenceType>(), OriginScope::FromNull(), | |||
13048 | Nullable<Client::Type>(Client::IDB), /* aExclusive */ false, | |||
13049 | DirectoryLockCategory::None, SomeRef(mPendingDirectoryLock)) | |||
13050 | ->Then(GetCurrentSerialEventTarget(), __func__, | |||
13051 | [self = RefPtr(this)]( | |||
13052 | const UniversalDirectoryLockPromise::ResolveOrRejectValue& | |||
13053 | aValue) { | |||
13054 | if (aValue.IsResolve()) { | |||
13055 | self->DirectoryLockAcquired(aValue.ResolveValue()); | |||
13056 | } else { | |||
13057 | self->DirectoryLockFailed(); | |||
13058 | } | |||
13059 | }); | |||
13060 | ||||
13061 | return NS_OK; | |||
13062 | } | |||
13063 | ||||
13064 | nsresult Maintenance::DirectoryOpen() { | |||
13065 | AssertIsOnBackgroundThread(); | |||
13066 | MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryOpenPending)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mState == State::DirectoryOpenPending))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13066); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending" ")"); do { *((volatile int*)__null) = 13066; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13067 | MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13067); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")"); do { *((volatile int*)__null) = 13067; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13068 | ||||
13069 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13069) || | |||
13070 | IsAborted()) { | |||
13071 | return NS_ERROR_ABORT; | |||
13072 | } | |||
13073 | ||||
13074 | QuotaManager* const quotaManager = QuotaManager::Get(); | |||
13075 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13075); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { *((volatile int*)__null) = 13075; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13076 | ||||
13077 | mState = State::DirectoryWorkOpen; | |||
13078 | ||||
13079 | QM_TRY(MOZ_TO_RESULT({auto tryResult3349 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3349)::ok_type >); if ((__builtin_expect(!!(tryResult3349.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3349 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13081, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_FAILURE); }} | |||
13080 | quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult3349 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3349)::ok_type >); if ((__builtin_expect(!!(tryResult3349.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3349 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13081, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_FAILURE); }} | |||
13081 | NS_ERROR_FAILURE){auto tryResult3349 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3349)::ok_type >); if ((__builtin_expect(!!(tryResult3349.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3349 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13081, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_FAILURE); }}; | |||
13082 | ||||
13083 | return NS_OK; | |||
13084 | } | |||
13085 | ||||
13086 | nsresult Maintenance::DirectoryWork() { | |||
13087 | AssertIsOnIOThread(); | |||
13088 | MOZ_ASSERT(mState == State::DirectoryWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryWorkOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DirectoryWorkOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DirectoryWorkOpen", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13088); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkOpen" ")"); do { *((volatile int*)__null) = 13088; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13089 | ||||
13090 | // The storage directory is structured like this: | |||
13091 | // | |||
13092 | // <profile>/storage/<persistence>/<origin>/idb/*.sqlite | |||
13093 | // | |||
13094 | // We have to find all database files that match any persistence type and any | |||
13095 | // origin. We ignore anything out of the ordinary for now. | |||
13096 | ||||
13097 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13097) || | |||
13098 | IsAborted()) { | |||
13099 | return NS_ERROR_ABORT; | |||
13100 | } | |||
13101 | ||||
13102 | QuotaManager* const quotaManager = QuotaManager::Get(); | |||
13103 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13103); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { *((volatile int*)__null) = 13103; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13104 | ||||
13105 | // Since idle maintenance may occur before temporary storage is initialized, | |||
13106 | // make sure it's initialized here (all non-persistent origins need to be | |||
13107 | // cleaned up and quota info needs to be loaded for them). | |||
13108 | ||||
13109 | // Don't fail whole idle maintenance in case of an error, the persistent | |||
13110 | // repository can still | |||
13111 | // be processed. | |||
13112 | const bool initTemporaryStorageFailed = ["aManager] { | |||
13113 | QM_TRY(MOZ_TO_RESULT({auto tryResult3350 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3350 )::ok_type>); if ((__builtin_expect(!!(tryResult3350.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3350 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13115, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryTempError, true); }} | |||
13114 | quotaManager->EnsureTemporaryStorageIsInitializedInternal()),{auto tryResult3350 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3350 )::ok_type>); if ((__builtin_expect(!!(tryResult3350.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3350 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13115, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryTempError, true); }} | |||
13115 | true){auto tryResult3350 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3350 )::ok_type>); if ((__builtin_expect(!!(tryResult3350.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3350 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13115, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryTempError, true); }}; | |||
13116 | return false; | |||
13117 | }(); | |||
13118 | ||||
13119 | const nsCOMPtr<nsIFile> storageDir = | |||
13120 | GetFileForPath(quotaManager->GetStoragePath()); | |||
13121 | QM_TRY(OkIf(storageDir), NS_ERROR_FAILURE){auto tryResult3351 = (OkIf(storageDir)); static_assert(std:: is_empty_v<typename decltype(tryResult3351)::ok_type>); if ((__builtin_expect(!!(tryResult3351.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3351.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(storageDir)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13121, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(storageDir)" , tryTempError, NS_ERROR_FAILURE); }}; | |||
13122 | ||||
13123 | { | |||
13124 | QM_TRY_INSPECT(const bool& exists,auto tryResult3352 = (::mozilla::ToResultInvokeMember( (storageDir ), &::mozilla::detail::DerefedType<decltype(storageDir )>::Exists)); if ((__builtin_expect(!!(tryResult3352.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::Exists)" , tryResult3352.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13125, mozilla::dom::quota::Severity::Error); return tryResult3352 .propagateErr(); } const bool& exists = tryResult3352.inspect (); | |||
13125 | MOZ_TO_RESULT_INVOKE_MEMBER(storageDir, Exists))auto tryResult3352 = (::mozilla::ToResultInvokeMember( (storageDir ), &::mozilla::detail::DerefedType<decltype(storageDir )>::Exists)); if ((__builtin_expect(!!(tryResult3352.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::Exists)" , tryResult3352.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13125, mozilla::dom::quota::Severity::Error); return tryResult3352 .propagateErr(); } const bool& exists = tryResult3352.inspect ();; | |||
13126 | ||||
13127 | // XXX No warning here? | |||
13128 | if (!exists) { | |||
13129 | return NS_ERROR_NOT_AVAILABLE; | |||
13130 | } | |||
13131 | } | |||
13132 | ||||
13133 | { | |||
13134 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult3353 = (::mozilla::ToResultInvokeMember( (storageDir ), &::mozilla::detail::DerefedType<decltype(storageDir )>::IsDirectory)); if ((__builtin_expect(!!(tryResult3353. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::IsDirectory)" , tryResult3353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13135, mozilla::dom::quota::Severity::Error); return tryResult3353 .propagateErr(); } const bool& isDirectory = tryResult3353 .inspect(); | |||
13135 | MOZ_TO_RESULT_INVOKE_MEMBER(storageDir, IsDirectory))auto tryResult3353 = (::mozilla::ToResultInvokeMember( (storageDir ), &::mozilla::detail::DerefedType<decltype(storageDir )>::IsDirectory)); if ((__builtin_expect(!!(tryResult3353. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::IsDirectory)" , tryResult3353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13135, mozilla::dom::quota::Severity::Error); return tryResult3353 .propagateErr(); } const bool& isDirectory = tryResult3353 .inspect();; | |||
13136 | ||||
13137 | QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult3354 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult3354)::ok_type>); if ((__builtin_expect(!!(tryResult3354.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3354.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13137, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, NS_ERROR_FAILURE); }}; | |||
13138 | } | |||
13139 | ||||
13140 | // There are currently only 4 persistence types, and we want to iterate them | |||
13141 | // in this order: | |||
13142 | static const PersistenceType kPersistenceTypes[] = { | |||
13143 | PERSISTENCE_TYPE_PERSISTENT, PERSISTENCE_TYPE_DEFAULT, | |||
13144 | PERSISTENCE_TYPE_TEMPORARY, PERSISTENCE_TYPE_PRIVATE}; | |||
13145 | ||||
13146 | static_assert( | |||
13147 | ArrayLength(kPersistenceTypes) == size_t(PERSISTENCE_TYPE_INVALID), | |||
13148 | "Something changed with available persistence types!"); | |||
13149 | ||||
13150 | constexpr auto idbDirName = | |||
13151 | NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)static_cast<const nsLiteralString&>( nsLiteralString (u"" "idb")); | |||
13152 | ||||
13153 | for (const PersistenceType persistenceType : kPersistenceTypes) { | |||
13154 | // Loop over "<persistence>" directories. | |||
13155 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13155) || | |||
13156 | IsAborted()) { | |||
13157 | return NS_ERROR_ABORT; | |||
13158 | } | |||
13159 | ||||
13160 | // Don't do any maintenance for private browsing databases, which are only | |||
13161 | // temporary. | |||
13162 | if (persistenceType == PERSISTENCE_TYPE_PRIVATE) { | |||
13163 | continue; | |||
13164 | } | |||
13165 | ||||
13166 | const bool persistent = persistenceType == PERSISTENCE_TYPE_PERSISTENT; | |||
13167 | ||||
13168 | if (!persistent && initTemporaryStorageFailed) { | |||
13169 | // Non-persistent (best effort) repositories can't be processed if | |||
13170 | // temporary storage initialization failed. | |||
13171 | continue; | |||
13172 | } | |||
13173 | ||||
13174 | // XXX persistenceType == PERSISTENCE_TYPE_PERSISTENT shouldn't be a special | |||
13175 | // case... | |||
13176 | const auto persistenceTypeString = | |||
13177 | persistenceType == PERSISTENCE_TYPE_PERSISTENT | |||
13178 | ? "permanent"_ns | |||
13179 | : PersistenceTypeToString(persistenceType); | |||
13180 | ||||
13181 | QM_TRY_INSPECT(const auto& persistenceDir,auto tryResult3355 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16 ( persistenceTypeString))); if ((__builtin_expect(!!(tryResult3355 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))" , tryResult3355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13183, mozilla::dom::quota::Severity::Error); return tryResult3355 .propagateErr(); } const auto& persistenceDir = tryResult3355 .inspect(); | |||
13182 | CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16(auto tryResult3355 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16 ( persistenceTypeString))); if ((__builtin_expect(!!(tryResult3355 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))" , tryResult3355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13183, mozilla::dom::quota::Severity::Error); return tryResult3355 .propagateErr(); } const auto& persistenceDir = tryResult3355 .inspect(); | |||
13183 | persistenceTypeString)))auto tryResult3355 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16 ( persistenceTypeString))); if ((__builtin_expect(!!(tryResult3355 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))" , tryResult3355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13183, mozilla::dom::quota::Severity::Error); return tryResult3355 .propagateErr(); } const auto& persistenceDir = tryResult3355 .inspect();; | |||
13184 | ||||
13185 | { | |||
13186 | QM_TRY_INSPECT(const bool& exists,auto tryResult3356 = (::mozilla::ToResultInvokeMember( (persistenceDir ), &::mozilla::detail::DerefedType<decltype(persistenceDir )>::Exists)); if ((__builtin_expect(!!(tryResult3356.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::Exists)" , tryResult3356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13187, mozilla::dom::quota::Severity::Error); return tryResult3356 .propagateErr(); } const bool& exists = tryResult3356.inspect (); | |||
13187 | MOZ_TO_RESULT_INVOKE_MEMBER(persistenceDir, Exists))auto tryResult3356 = (::mozilla::ToResultInvokeMember( (persistenceDir ), &::mozilla::detail::DerefedType<decltype(persistenceDir )>::Exists)); if ((__builtin_expect(!!(tryResult3356.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::Exists)" , tryResult3356.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13187, mozilla::dom::quota::Severity::Error); return tryResult3356 .propagateErr(); } const bool& exists = tryResult3356.inspect ();; | |||
13188 | ||||
13189 | if (!exists) { | |||
13190 | continue; | |||
13191 | } | |||
13192 | ||||
13193 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult3357 = (::mozilla::ToResultInvokeMember( (persistenceDir ), &::mozilla::detail::DerefedType<decltype(persistenceDir )>::IsDirectory)); if ((__builtin_expect(!!(tryResult3357. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::IsDirectory)" , tryResult3357.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13194, mozilla::dom::quota::Severity::Error); return tryResult3357 .propagateErr(); } const bool& isDirectory = tryResult3357 .inspect(); | |||
13194 | MOZ_TO_RESULT_INVOKE_MEMBER(persistenceDir, IsDirectory))auto tryResult3357 = (::mozilla::ToResultInvokeMember( (persistenceDir ), &::mozilla::detail::DerefedType<decltype(persistenceDir )>::IsDirectory)); if ((__builtin_expect(!!(tryResult3357. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::IsDirectory)" , tryResult3357.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13194, mozilla::dom::quota::Severity::Error); return tryResult3357 .propagateErr(); } const bool& isDirectory = tryResult3357 .inspect();; | |||
13195 | ||||
13196 | if (NS_WARN_IF(!isDirectory)NS_warn_if_impl(!isDirectory, "!isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13196)) { | |||
13197 | continue; | |||
13198 | } | |||
13199 | } | |||
13200 | ||||
13201 | // Loop over "<origin>/idb" directories. | |||
13202 | QM_TRY(CollectEachFile({auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13203 | *persistenceDir,{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13204 | [this, "aManager, persistent, persistenceType, &idbDirName]({auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13205 | const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> {{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13206 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread()) ||{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13207 | IsAborted()) {{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13208 | return Err(NS_ERROR_ABORT);{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13209 | }{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13210 | ||||
13211 | QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*originDir));{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13212 | ||||
13213 | switch (dirEntryKind) {{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13214 | case nsIFileKind::ExistsAsFile:{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13215 | break;{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13216 | ||||
13217 | case nsIFileKind::ExistsAsDirectory: {{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13218 | // Get the necessary information about the origin{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13219 | // (GetOriginMetadata also checks if it's a valid origin).{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13220 | ||||
13221 | QM_TRY_INSPECT(const auto& metadata,{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13222 | quotaManager->GetOriginMetadata(originDir),{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13223 | // Not much we can do here...{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13224 | Ok{});{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13225 | ||||
13226 | // We now use a dedicated repository for private browsing{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13227 | // databases, but there could be some forgotten private browsing{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13228 | // databases in other repositories, so it's better to check for{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13229 | // that and don't do any maintenance for such databases.{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13230 | if (metadata.mIsPrivate) {{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13231 | return Ok{};{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13232 | }{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13233 | ||||
13234 | if (persistent) {{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13235 | // We have to check that all persistent origins are cleaned up,{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13236 | // but there's no way to do that by one call, we need to{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13237 | // initialize (and possibly clean up) them one by one{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13238 | // (EnsureTemporaryStorageIsInitializedInternal cleans up only{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13239 | // non-persistent origins).{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13240 | ||||
13241 | QM_TRY_UNWRAP({auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13242 | const DebugOnly<bool> created,{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13243 | quotaManager{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13244 | ->EnsurePersistentOriginIsInitializedInternal(metadata){auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13245 | .map([](const auto& res) { return res.second; }),{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13246 | // Not much we can do here...{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13247 | Ok{});{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13248 | ||||
13249 | // We found this origin directory by traversing the repository,{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13250 | // so EnsurePersistentOriginIsInitializedInternal shouldn't{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13251 | // report that a new directory has been created.{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13252 | MOZ_ASSERT(!created);{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13253 | }{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13254 | ||||
13255 | QM_TRY_INSPECT(const auto& idbDir,{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13256 | CloneFileAndAppend(*originDir, idbDirName));{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13257 | ||||
13258 | QM_TRY_INSPECT(const bool& exists,{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13259 | MOZ_TO_RESULT_INVOKE_MEMBER(idbDir, Exists));{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13260 | ||||
13261 | if (!exists) {{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13262 | return Ok{};{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13263 | }{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13264 | ||||
13265 | QM_TRY_INSPECT(const bool& isDirectory,{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13266 | MOZ_TO_RESULT_INVOKE_MEMBER(idbDir, IsDirectory));{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13267 | ||||
13268 | QM_TRY(OkIf(isDirectory), Ok{});{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13269 | ||||
13270 | nsTArray<nsString> databasePaths;{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13271 | ||||
13272 | // Loop over files in the "idb" directory.{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13273 | QM_TRY(CollectEachFile({auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13274 | *idbDir,{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13275 | [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile){auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13276 | -> Result<Ok, nsresult> {{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13277 | if (NS_WARN_IF(QuotaClient::{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13278 | IsShuttingDownOnNonBackgroundThread()) ||{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13279 | IsAborted()) {{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13280 | return Err(NS_ERROR_ABORT);{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13281 | }{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13282 | ||||
13283 | QM_TRY_UNWRAP(auto idbFilePath,{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13284 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13285 | nsString, idbDirFile, GetPath));{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13286 | ||||
13287 | if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) {{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13288 | return Ok{};{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13289 | }{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13290 | ||||
13291 | QM_TRY_INSPECT(const auto& dirEntryKind,{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13292 | GetDirEntryKind(*idbDirFile));{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13293 | ||||
13294 | switch (dirEntryKind) {{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13295 | case nsIFileKind::ExistsAsDirectory:{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13296 | break;{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13297 | ||||
13298 | case nsIFileKind::ExistsAsFile:{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13299 | // Found a database.{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13300 | ||||
13301 | MOZ_ASSERT(!databasePaths.Contains(idbFilePath));{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13302 | ||||
13303 | databasePaths.AppendElement(std::move(idbFilePath));{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13304 | break;{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13305 | ||||
13306 | case nsIFileKind::DoesNotExist:{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13307 | // Ignore files that got removed externally while{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13308 | // iterating.{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13309 | break;{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13310 | }{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13311 | ||||
13312 | return Ok{};{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13313 | }));{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13314 | ||||
13315 | if (!databasePaths.IsEmpty()) {{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13316 | mDirectoryInfos.EmplaceBack(persistenceType, metadata,{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13317 | std::move(databasePaths));{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13318 | }{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13319 | ||||
13320 | break;{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13321 | }{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13322 | ||||
13323 | case nsIFileKind::DoesNotExist:{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13324 | // Ignore files that got removed externally while iterating.{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13325 | break;{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13326 | }{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13327 | ||||
13328 | return Ok{};{auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }} | |||
13329 | })){auto tryResult3368 = (CollectEachFile( *persistenceDir, [this , "aManager, persistent, persistenceType, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult3358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13211, mozilla::dom::quota::Severity::Error); return tryResult3358 .propagateErr(); } const auto& dirEntryKind = tryResult3358 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota ::HandleError("quotaManager->GetOriginMetadata(originDir)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } const auto& metadata = tryResult3359 .inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent ) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal (metadata) .map([](const auto& res) { return res.second; } )); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr (); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })" , tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")" ); do { *((volatile int*)__null) = 13252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect (!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*originDir, idbDirName)", tryResult3361. inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13256, mozilla::dom::quota::Severity::Error); return tryResult3361 .propagateErr(); } const auto& idbDir = tryResult3361.inspect ();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)" , tryResult3362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13259, mozilla::dom::quota::Severity::Error); return tryResult3362 .propagateErr(); } const bool& exists = tryResult3362.inspect ();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory)); if ((__builtin_expect (!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)" , tryResult3363.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13266, mozilla::dom::quota::Severity::Error); return tryResult3363 .propagateErr(); } const bool& isDirectory = tryResult3363 .inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult3364)::ok_type >); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)" , tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths ; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, & databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient :: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect (!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))" , tryResult3365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13285, mozilla::dom::quota::Severity::Error); return tryResult3365 .propagateErr(); } auto idbFilePath = tryResult3365.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult3366 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13292, mozilla::dom::quota::Severity::Error); return tryResult3366 .propagateErr(); } const auto& dirEntryKind = tryResult3366 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { *((volatile int*)__null) = 13301; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13313, mozilla::dom::quota::Severity::Error); return tryResult3367 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos .EmplaceBack(persistenceType, metadata, std::move(databasePaths )); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype (tryResult3368)::ok_type>); if ((__builtin_expect(!!(tryResult3368 .isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, "aManager, persistent, persistenceType, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13206) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3358 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult3358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult3358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13211, mozilla::dom::quota::Severity::Error); return tryResult3358.propagateErr(); } const auto& dirEntryKind = tryResult3358.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult3359 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult3359.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3359.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13224, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } const auto& metadata = tryResult3359.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult3360 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult3360.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3360.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13247, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult3360.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13252; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult3361 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult3361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult3361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13256, mozilla::dom::quota::Severity::Error); return tryResult3361.propagateErr(); } const auto& idbDir = tryResult3361.inspect();; auto tryResult3362 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult3362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult3362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13259, mozilla::dom::quota::Severity::Error); return tryResult3362.propagateErr(); } const bool& exists = tryResult3362.inspect();; if (!exists) { return Ok{}; } auto tryResult3363 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult3363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult3363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13266, mozilla::dom::quota::Severity::Error); return tryResult3363.propagateErr(); } const bool& isDirectory = tryResult3363.inspect();; {auto tryResult3364 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult3364)::ok_type>); if ((__builtin_expect(!!(tryResult3364.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3364.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13268, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult3367 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult3365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult3366.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13301); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3367)::ok_type>); if ((__builtin_expect(!!(tryResult3367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13278) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult3365 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult3365.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult3365.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13285, mozilla::dom::quota::Severity::Error); return tryResult3365.propagateErr(); } auto idbFilePath = tryResult3365.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult3366 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult3366.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult3366.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13292, mozilla::dom::quota::Severity::Error); return tryResult3366.propagateErr(); } const auto& dirEntryKind = tryResult3366.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13301); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13301; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult3367.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13313, mozilla::dom::quota::Severity::Error); return tryResult3367.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult3368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13329, mozilla::dom::quota::Severity::Error); return tryResult3368 .propagateErr(); }}; | |||
13330 | } | |||
13331 | ||||
13332 | mState = State::BeginDatabaseMaintenance; | |||
13333 | ||||
13334 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget ::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13335); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 13335; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
13335 | mQuotaClient->BackgroundThread()->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget ::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13335); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 13335; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
13336 | ||||
13337 | return NS_OK; | |||
13338 | } | |||
13339 | ||||
13340 | nsresult Maintenance::BeginDatabaseMaintenance() { | |||
13341 | AssertIsOnBackgroundThread(); | |||
13342 | MOZ_ASSERT(mState == State::BeginDatabaseMaintenance)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginDatabaseMaintenance)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mState == State::BeginDatabaseMaintenance))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::BeginDatabaseMaintenance" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13342); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginDatabaseMaintenance" ")"); do { *((volatile int*)__null) = 13342; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13343 | ||||
13344 | class MOZ_STACK_CLASS Helper final { | |||
13345 | public: | |||
13346 | static bool IsSafeToRunMaintenance(const nsAString& aDatabasePath) { | |||
13347 | if (gFactoryOps) { | |||
13348 | for (uint32_t index = gFactoryOps->Length(); index > 0; index--) { | |||
13349 | CheckedUnsafePtr<FactoryOp>& existingOp = (*gFactoryOps)[index - 1]; | |||
13350 | ||||
13351 | if (existingOp->DatabaseNameRef().isNothing()) { | |||
13352 | return false; | |||
13353 | } | |||
13354 | ||||
13355 | if (!existingOp->DatabaseFilePathIsKnown()) { | |||
13356 | continue; | |||
13357 | } | |||
13358 | ||||
13359 | if (existingOp->DatabaseFilePath() == aDatabasePath) { | |||
13360 | return false; | |||
13361 | } | |||
13362 | } | |||
13363 | } | |||
13364 | ||||
13365 | if (gLiveDatabaseHashtable) { | |||
13366 | return std::all_of( | |||
13367 | gLiveDatabaseHashtable->Values().cbegin(), | |||
13368 | gLiveDatabaseHashtable->Values().cend(), | |||
13369 | [&aDatabasePath](const auto& liveDatabasesEntry) { | |||
13370 | const auto& liveDatabases = liveDatabasesEntry->mLiveDatabases; | |||
13371 | return std::all_of(liveDatabases.cbegin(), liveDatabases.cend(), | |||
13372 | [&aDatabasePath](const auto& database) { | |||
13373 | return database->FilePath() != aDatabasePath; | |||
13374 | }); | |||
13375 | }); | |||
13376 | } | |||
13377 | ||||
13378 | return true; | |||
13379 | } | |||
13380 | }; | |||
13381 | ||||
13382 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13382) || | |||
13383 | IsAborted()) { | |||
13384 | return NS_ERROR_ABORT; | |||
13385 | } | |||
13386 | ||||
13387 | RefPtr<nsThreadPool> threadPool; | |||
13388 | ||||
13389 | for (DirectoryInfo& directoryInfo : mDirectoryInfos) { | |||
13390 | for (const nsAString& databasePath : *directoryInfo.mDatabasePaths) { | |||
13391 | if (Helper::IsSafeToRunMaintenance(databasePath)) { | |||
13392 | RefPtr<DirectoryLock> directoryLock = | |||
13393 | mDirectoryLock->SpecializeForClient(directoryInfo.mPersistenceType, | |||
13394 | *directoryInfo.mOriginMetadata, | |||
13395 | Client::IDB); | |||
13396 | MOZ_ASSERT(directoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(directoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(directoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("directoryLock", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13396); AnnotateMozCrashReason("MOZ_ASSERT" "(" "directoryLock" ")"); do { *((volatile int*)__null) = 13396; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13397 | ||||
13398 | // No key needs to be passed here, because we skip encrypted databases | |||
13399 | // in DoDirectoryWork as long as they are only used in private browsing | |||
13400 | // mode. | |||
13401 | const auto databaseMaintenance = MakeRefPtr<DatabaseMaintenance>( | |||
13402 | this, std::move(directoryLock), directoryInfo.mPersistenceType, | |||
13403 | *directoryInfo.mOriginMetadata, databasePath, Nothing{}); | |||
13404 | ||||
13405 | if (!threadPool) { | |||
13406 | threadPool = mQuotaClient->GetOrCreateThreadPool(); | |||
13407 | MOZ_ASSERT(threadPool)do { static_assert( mozilla::detail::AssertionConditionType< decltype(threadPool)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(threadPool))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("threadPool", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13407); AnnotateMozCrashReason("MOZ_ASSERT" "(" "threadPool" ")"); do { *((volatile int*)__null) = 13407; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13408 | } | |||
13409 | ||||
13410 | // Perform database maintenance on a TaskQueue, as database connections | |||
13411 | // require a serial event target when being opened in order to allow | |||
13412 | // memory pressure notifications to clear caches (bug 1806751). | |||
13413 | const auto taskQueue = TaskQueue::Create( | |||
13414 | do_AddRef(threadPool), "IndexedDB Database Maintenance"); | |||
13415 | ||||
13416 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (taskQueue->Dispatch(databaseMaintenance, nsIEventTarget:: DISPATCH_NORMAL))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13417); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 13417; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
13417 | taskQueue->Dispatch(databaseMaintenance, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (taskQueue->Dispatch(databaseMaintenance, nsIEventTarget:: DISPATCH_NORMAL))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13417); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 13417; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
13418 | ||||
13419 | RegisterDatabaseMaintenance(databaseMaintenance); | |||
13420 | } | |||
13421 | } | |||
13422 | } | |||
13423 | ||||
13424 | mDirectoryInfos.Clear(); | |||
13425 | ||||
13426 | DropDirectoryLock(mDirectoryLock); | |||
13427 | ||||
13428 | if (mDatabaseMaintenances.Count()) { | |||
13429 | mState = State::WaitingForDatabaseMaintenancesToComplete; | |||
13430 | } else { | |||
13431 | mState = State::Finishing; | |||
13432 | Finish(); | |||
13433 | } | |||
13434 | ||||
13435 | return NS_OK; | |||
13436 | } | |||
13437 | ||||
13438 | void Maintenance::Finish() { | |||
13439 | AssertIsOnBackgroundThread(); | |||
13440 | MOZ_ASSERT(mState == State::Finishing)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Finishing)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Finishing)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Finishing" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13440); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Finishing" ")"); do { *((volatile int*)__null) = 13440; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13441 | ||||
13442 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | |||
13443 | mPromiseHolder.ResolveIfExists(true, __func__); | |||
13444 | } else { | |||
13445 | mPromiseHolder.RejectIfExists(mResultCode, __func__); | |||
13446 | ||||
13447 | nsCString errorName; | |||
13448 | GetErrorName(mResultCode, errorName); | |||
13449 | ||||
13450 | IDB_WARNING("Maintenance finished with error: %s", errorName.get())do { nsPrintfCString s("Maintenance finished with error: %s", errorName.get()); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13450, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13450); } while (0); | |||
13451 | } | |||
13452 | ||||
13453 | SafeDropDirectoryLock(mDirectoryLock); | |||
13454 | ||||
13455 | // It can happen that we are only referenced by mCurrentMaintenance which is | |||
13456 | // cleared in NoteFinishedMaintenance() | |||
13457 | const RefPtr<Maintenance> kungFuDeathGrip = this; | |||
13458 | ||||
13459 | mQuotaClient->NoteFinishedMaintenance(this); | |||
13460 | ||||
13461 | mState = State::Complete; | |||
13462 | } | |||
13463 | ||||
13464 | NS_IMETHODIMPnsresult | |||
13465 | Maintenance::Run() { | |||
13466 | MOZ_ASSERT(mState != State::Complete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState != State::Complete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState != State::Complete))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState != State::Complete" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13466); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State::Complete" ")"); do { *((volatile int*)__null) = 13466; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13467 | ||||
13468 | const auto handleError = [this](const nsresult rv) { | |||
13469 | if (mState != State::Finishing) { | |||
13470 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | |||
13471 | mResultCode = rv; | |||
13472 | } | |||
13473 | ||||
13474 | // Must set mState before dispatching otherwise we will race with the | |||
13475 | // owning thread. | |||
13476 | mState = State::Finishing; | |||
13477 | ||||
13478 | if (IsOnBackgroundThread()) { | |||
13479 | Finish(); | |||
13480 | } else { | |||
13481 | MOZ_ALWAYS_SUCCEEDS(mQuotaClient->BackgroundThread()->Dispatch(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget ::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13482); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 13482; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
13482 | this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget ::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13482); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 13482; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
13483 | } | |||
13484 | } | |||
13485 | }; | |||
13486 | ||||
13487 | switch (mState) { | |||
13488 | case State::Initial: | |||
13489 | QM_TRY(MOZ_TO_RESULT(Start()), NS_OK, handleError){auto tryResult3369 = (ToResult(Start())); static_assert(std:: is_empty_v<typename decltype(tryResult3369)::ok_type>); if ((__builtin_expect(!!(tryResult3369.isErr()), 0))) { auto tryTempError = tryResult3369.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(Start())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13489, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "ToResult(Start())", tryTempError, NS_OK); }}; | |||
13490 | break; | |||
13491 | ||||
13492 | case State::CreateIndexedDatabaseManager: | |||
13493 | QM_TRY(MOZ_TO_RESULT(CreateIndexedDatabaseManager()), NS_OK, handleError){auto tryResult3370 = (ToResult(CreateIndexedDatabaseManager( ))); static_assert(std::is_empty_v<typename decltype(tryResult3370 )::ok_type>); if ((__builtin_expect(!!(tryResult3370.isErr ()), 0))) { auto tryTempError = tryResult3370.unwrapErr(); mozilla ::dom::quota::HandleError("ToResult(CreateIndexedDatabaseManager())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13493, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "ToResult(CreateIndexedDatabaseManager())", tryTempError, NS_OK ); }}; | |||
13494 | break; | |||
13495 | ||||
13496 | case State::IndexedDatabaseManagerOpen: | |||
13497 | QM_TRY(MOZ_TO_RESULT(OpenDirectory()), NS_OK, handleError){auto tryResult3371 = (ToResult(OpenDirectory())); static_assert (std::is_empty_v<typename decltype(tryResult3371)::ok_type >); if ((__builtin_expect(!!(tryResult3371.isErr()), 0))) { auto tryTempError = tryResult3371.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(OpenDirectory())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13497, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "ToResult(OpenDirectory())", tryTempError, NS_OK); }}; | |||
13498 | break; | |||
13499 | ||||
13500 | case State::DirectoryWorkOpen: | |||
13501 | QM_TRY(MOZ_TO_RESULT(DirectoryWork()), NS_OK, handleError){auto tryResult3372 = (ToResult(DirectoryWork())); static_assert (std::is_empty_v<typename decltype(tryResult3372)::ok_type >); if ((__builtin_expect(!!(tryResult3372.isErr()), 0))) { auto tryTempError = tryResult3372.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DirectoryWork())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13501, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "ToResult(DirectoryWork())", tryTempError, NS_OK); }}; | |||
13502 | break; | |||
13503 | ||||
13504 | case State::BeginDatabaseMaintenance: | |||
13505 | QM_TRY(MOZ_TO_RESULT(BeginDatabaseMaintenance()), NS_OK, handleError){auto tryResult3373 = (ToResult(BeginDatabaseMaintenance())); static_assert(std::is_empty_v<typename decltype(tryResult3373 )::ok_type>); if ((__builtin_expect(!!(tryResult3373.isErr ()), 0))) { auto tryTempError = tryResult3373.unwrapErr(); mozilla ::dom::quota::HandleError("ToResult(BeginDatabaseMaintenance())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13505, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "ToResult(BeginDatabaseMaintenance())", tryTempError, NS_OK ); }}; | |||
13506 | break; | |||
13507 | ||||
13508 | case State::Finishing: | |||
13509 | Finish(); | |||
13510 | break; | |||
13511 | ||||
13512 | default: | |||
13513 | MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13513); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")" ); do { *((volatile int*)__null) = 13513; __attribute__((nomerge )) ::abort(); } while (false); } while (false); | |||
13514 | } | |||
13515 | ||||
13516 | return NS_OK; | |||
13517 | } | |||
13518 | ||||
13519 | void Maintenance::DirectoryLockAcquired(DirectoryLock* aLock) { | |||
13520 | AssertIsOnBackgroundThread(); | |||
13521 | MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryOpenPending)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mState == State::DirectoryOpenPending))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending" ")"); do { *((volatile int*)__null) = 13521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13522 | MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"); do { *((volatile int*)__null) = 13522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13523 | ||||
13524 | mDirectoryLock = std::exchange(mPendingDirectoryLock, nullptr); | |||
13525 | ||||
13526 | nsresult rv = DirectoryOpen(); | |||
13527 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13527)) { | |||
13528 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | |||
13529 | mResultCode = rv; | |||
13530 | } | |||
13531 | ||||
13532 | mState = State::Finishing; | |||
13533 | Finish(); | |||
13534 | ||||
13535 | return; | |||
13536 | } | |||
13537 | } | |||
13538 | ||||
13539 | void Maintenance::DirectoryLockFailed() { | |||
13540 | AssertIsOnBackgroundThread(); | |||
13541 | MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryOpenPending)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mState == State::DirectoryOpenPending))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending" ")"); do { *((volatile int*)__null) = 13541; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13542 | MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13542); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"); do { *((volatile int*)__null) = 13542; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13543 | ||||
13544 | mPendingDirectoryLock = nullptr; | |||
13545 | ||||
13546 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | |||
13547 | mResultCode = NS_ERROR_FAILURE; | |||
13548 | } | |||
13549 | ||||
13550 | mState = State::Finishing; | |||
13551 | Finish(); | |||
13552 | } | |||
13553 | ||||
13554 | void DatabaseMaintenance::Stringify(nsACString& aResult) const { | |||
13555 | AssertIsOnBackgroundThread(); | |||
13556 | ||||
13557 | aResult.AppendLiteral("Origin:"); | |||
13558 | aResult.Append(AnonymizedOriginString(mOriginMetadata.mOrigin)); | |||
13559 | aResult.Append(kQuotaGenericDelimiter); | |||
13560 | ||||
13561 | aResult.AppendLiteral("PersistenceType:"); | |||
13562 | aResult.Append(PersistenceTypeToString(mPersistenceType)); | |||
13563 | aResult.Append(kQuotaGenericDelimiter); | |||
13564 | ||||
13565 | aResult.AppendLiteral("Duration:"); | |||
13566 | aResult.AppendInt((PR_Now() - mMaintenance->StartTime()) / PR_USEC_PER_MSEC1000L); | |||
13567 | } | |||
13568 | ||||
13569 | nsresult DatabaseMaintenance::Abort() { | |||
13570 | AssertIsOnBackgroundThread(); | |||
13571 | ||||
13572 | // StopIdleMaintenance and AbortAllOperations may request abort independently | |||
13573 | if (!mAborted.compareExchange(false, true)) { | |||
13574 | return NS_OK; | |||
13575 | } | |||
13576 | ||||
13577 | { | |||
13578 | auto shardStorageConnectionLocked = mSharedStorageConnection.Lock(); | |||
13579 | if (nsCOMPtr<mozIStorageConnection> connection = | |||
13580 | *shardStorageConnectionLocked) { | |||
13581 | QM_TRY(MOZ_TO_RESULT(connection->Interrupt())){auto tryResult3374 = (ToResult(connection->Interrupt())); static_assert(std::is_empty_v<typename decltype(tryResult3374 )::ok_type>); if ((__builtin_expect(!!(tryResult3374.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->Interrupt())" , tryResult3374.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13581, mozilla::dom::quota::Severity::Error); return tryResult3374 .propagateErr(); }}; | |||
13582 | } | |||
13583 | } | |||
13584 | ||||
13585 | return NS_OK; | |||
13586 | } | |||
13587 | ||||
13588 | void DatabaseMaintenance::PerformMaintenanceOnDatabase() { | |||
13589 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13589); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 13589; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13590 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13590); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 13590; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13591 | MOZ_ASSERT(mMaintenance)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaintenance)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaintenance))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMaintenance", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13591); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaintenance" ")"); do { *((volatile int*)__null) = 13591; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13592 | MOZ_ASSERT(mMaintenance->StartTime())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaintenance->StartTime())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaintenance->StartTime() ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mMaintenance->StartTime()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13592); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaintenance->StartTime()" ")"); do { *((volatile int*)__null) = 13592; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13593 | MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13593); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")"); do { *((volatile int*)__null) = 13593; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13594 | MOZ_ASSERT(!mDatabasePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabasePath.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabasePath.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabasePath.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13594); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasePath.IsEmpty()" ")"); do { *((volatile int*)__null) = 13594; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13595 | MOZ_ASSERT(!mOriginMetadata.mGroup.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mOriginMetadata.mGroup.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mOriginMetadata.mGroup.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mOriginMetadata.mGroup.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13595); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata.mGroup.IsEmpty()" ")"); do { *((volatile int*)__null) = 13595; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13596 | MOZ_ASSERT(!mOriginMetadata.mOrigin.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mOriginMetadata.mOrigin.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mOriginMetadata.mOrigin.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mOriginMetadata.mOrigin.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13596); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata.mOrigin.IsEmpty()" ")"); do { *((volatile int*)__null) = 13596; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13597 | ||||
13598 | if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13598)) { | |||
13599 | return; | |||
13600 | } | |||
13601 | ||||
13602 | const nsCOMPtr<nsIFile> databaseFile = GetFileForPath(mDatabasePath); | |||
13603 | MOZ_ASSERT(databaseFile)do { static_assert( mozilla::detail::AssertionConditionType< decltype(databaseFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(databaseFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("databaseFile", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13603); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFile" ")"); do { *((volatile int*)__null) = 13603; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13604 | ||||
13605 | QM_TRY_UNWRAP(auto tryResult3375 = (GetStorageConnection(*databaseFile, mDirectoryLockId , TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect (!!(tryResult3375.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3375.unwrapErr(); mozilla::dom::quota ::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13609, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const NotNull<nsCOMPtr<mozIStorageConnection>> connection = tryResult3375.unwrap(); | |||
13606 | const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult3375 = (GetStorageConnection(*databaseFile, mDirectoryLockId , TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect (!!(tryResult3375.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3375.unwrapErr(); mozilla::dom::quota ::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13609, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const NotNull<nsCOMPtr<mozIStorageConnection>> connection = tryResult3375.unwrap(); | |||
13607 | GetStorageConnection(*databaseFile, mDirectoryLockId,auto tryResult3375 = (GetStorageConnection(*databaseFile, mDirectoryLockId , TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect (!!(tryResult3375.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3375.unwrapErr(); mozilla::dom::quota ::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13609, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const NotNull<nsCOMPtr<mozIStorageConnection>> connection = tryResult3375.unwrap(); | |||
13608 | TelemetryIdForFile(databaseFile), mMaybeKey),auto tryResult3375 = (GetStorageConnection(*databaseFile, mDirectoryLockId , TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect (!!(tryResult3375.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3375.unwrapErr(); mozilla::dom::quota ::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13609, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const NotNull<nsCOMPtr<mozIStorageConnection>> connection = tryResult3375.unwrap(); | |||
13609 | QM_VOID)auto tryResult3375 = (GetStorageConnection(*databaseFile, mDirectoryLockId , TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect (!!(tryResult3375.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3375.unwrapErr(); mozilla::dom::quota ::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13609, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const NotNull<nsCOMPtr<mozIStorageConnection>> connection = tryResult3375.unwrap();; | |||
13610 | ||||
13611 | auto autoClearConnection = MakeScopeExit([&]() { | |||
13612 | auto sharedStorageConnectionLocked = mSharedStorageConnection.Lock(); | |||
13613 | sharedStorageConnectionLocked.ref() = nullptr; | |||
13614 | connection->Close(); | |||
13615 | }); | |||
13616 | ||||
13617 | { | |||
13618 | auto sharedStorageConnectionLocked = mSharedStorageConnection.Lock(); | |||
13619 | sharedStorageConnectionLocked.ref() = connection; | |||
13620 | } | |||
13621 | ||||
13622 | auto databaseIsOk = false; | |||
13623 | QM_TRY(MOZ_TO_RESULT(CheckIntegrity(*connection, &databaseIsOk)), QM_VOID){auto tryResult3376 = (ToResult(CheckIntegrity(*connection, & databaseIsOk))); static_assert(std::is_empty_v<typename decltype (tryResult3376)::ok_type>); if ((__builtin_expect(!!(tryResult3376 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3376.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(CheckIntegrity(*connection, &databaseIsOk))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13623, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; | |||
13624 | ||||
13625 | QM_TRY(OkIf(databaseIsOk), QM_VOID, [](auto result) {{auto tryResult3377 = (OkIf(databaseIsOk)); static_assert(std ::is_empty_v<typename decltype(tryResult3377)::ok_type> ); if ((__builtin_expect(!!(tryResult3377.isErr()), 0))) { auto tryTempError = tryResult3377.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(databaseIsOk)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); [](auto result ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!" ")"); do { *((volatile int*) __null) = 13628; __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return ; } } | |||
13626 | // XXX Handle this somehow! Probably need to clear all storage for the{auto tryResult3377 = (OkIf(databaseIsOk)); static_assert(std ::is_empty_v<typename decltype(tryResult3377)::ok_type> ); if ((__builtin_expect(!!(tryResult3377.isErr()), 0))) { auto tryTempError = tryResult3377.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(databaseIsOk)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); [](auto result ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!" ")"); do { *((volatile int*) __null) = 13628; __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return ; } } | |||
13627 | // origin. See Bug 1760612.{auto tryResult3377 = (OkIf(databaseIsOk)); static_assert(std ::is_empty_v<typename decltype(tryResult3377)::ok_type> ); if ((__builtin_expect(!!(tryResult3377.isErr()), 0))) { auto tryTempError = tryResult3377.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(databaseIsOk)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); [](auto result ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!" ")"); do { *((volatile int*) __null) = 13628; __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return ; } } | |||
13628 | MOZ_ASSERT(false, "Database corruption detected!");{auto tryResult3377 = (OkIf(databaseIsOk)); static_assert(std ::is_empty_v<typename decltype(tryResult3377)::ok_type> ); if ((__builtin_expect(!!(tryResult3377.isErr()), 0))) { auto tryTempError = tryResult3377.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(databaseIsOk)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); [](auto result ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!" ")"); do { *((volatile int*) __null) = 13628; __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return ; } } | |||
13629 | }){auto tryResult3377 = (OkIf(databaseIsOk)); static_assert(std ::is_empty_v<typename decltype(tryResult3377)::ok_type> ); if ((__builtin_expect(!!(tryResult3377.isErr()), 0))) { auto tryTempError = tryResult3377.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(databaseIsOk)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); [](auto result ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!" ")"); do { *((volatile int*) __null) = 13628; __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return ; } }; | |||
13630 | ||||
13631 | MaintenanceAction maintenanceAction; | |||
13632 | QM_TRY(MOZ_TO_RESULT(DetermineMaintenanceAction(*connection, databaseFile,{auto tryResult3378 = (ToResult(DetermineMaintenanceAction(*connection , databaseFile, &maintenanceAction))); static_assert(std:: is_empty_v<typename decltype(tryResult3378)::ok_type>); if ((__builtin_expect(!!(tryResult3378.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3378.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13634, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }} | |||
13633 | &maintenanceAction)),{auto tryResult3378 = (ToResult(DetermineMaintenanceAction(*connection , databaseFile, &maintenanceAction))); static_assert(std:: is_empty_v<typename decltype(tryResult3378)::ok_type>); if ((__builtin_expect(!!(tryResult3378.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3378.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13634, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }} | |||
13634 | QM_VOID){auto tryResult3378 = (ToResult(DetermineMaintenanceAction(*connection , databaseFile, &maintenanceAction))); static_assert(std:: is_empty_v<typename decltype(tryResult3378)::ok_type>); if ((__builtin_expect(!!(tryResult3378.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3378.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13634, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; | |||
13635 | ||||
13636 | switch (maintenanceAction) { | |||
13637 | case MaintenanceAction::Nothing: | |||
13638 | break; | |||
13639 | ||||
13640 | case MaintenanceAction::IncrementalVacuum: | |||
13641 | IncrementalVacuum(*connection); | |||
13642 | break; | |||
13643 | ||||
13644 | case MaintenanceAction::FullVacuum: | |||
13645 | FullVacuum(*connection, databaseFile); | |||
13646 | break; | |||
13647 | ||||
13648 | default: | |||
13649 | MOZ_CRASH("Unknown MaintenanceAction!")do { do { } while (false); MOZ_ReportCrash("" "Unknown MaintenanceAction!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13649); AnnotateMozCrashReason("MOZ_CRASH(" "Unknown MaintenanceAction!" ")"); do { *((volatile int*)__null) = 13649; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
13650 | } | |||
13651 | } | |||
13652 | ||||
13653 | nsresult DatabaseMaintenance::CheckIntegrity(mozIStorageConnection& aConnection, | |||
13654 | bool* aOk) { | |||
13655 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13655); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 13655; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13656 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 13656; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13657 | MOZ_ASSERT(aOk)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aOk)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(aOk))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("aOk", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13657); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOk" ")"); do { *((volatile int*)__null) = 13657; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
13658 | ||||
13659 | if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13659)) { | |||
13660 | return NS_ERROR_ABORT; | |||
13661 | } | |||
13662 | ||||
13663 | // First do a full integrity_check. Scope statements tightly here because | |||
13664 | // later operations require zero live statements. | |||
13665 | { | |||
13666 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3379 = (CreateAndExecuteSingleStepStatement( aConnection , "PRAGMA integrity_check(1);"_ns)); if ((__builtin_expect(!! (tryResult3379.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA integrity_check(1);\"_ns)" , tryResult3379.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13668, mozilla::dom::quota::Severity::Error); return tryResult3379 .propagateErr(); } const auto& stmt = tryResult3379.inspect (); | |||
13667 | CreateAndExecuteSingleStepStatement(auto tryResult3379 = (CreateAndExecuteSingleStepStatement( aConnection , "PRAGMA integrity_check(1);"_ns)); if ((__builtin_expect(!! (tryResult3379.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA integrity_check(1);\"_ns)" , tryResult3379.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13668, mozilla::dom::quota::Severity::Error); return tryResult3379 .propagateErr(); } const auto& stmt = tryResult3379.inspect (); | |||
13668 | aConnection, "PRAGMA integrity_check(1);"_ns))auto tryResult3379 = (CreateAndExecuteSingleStepStatement( aConnection , "PRAGMA integrity_check(1);"_ns)); if ((__builtin_expect(!! (tryResult3379.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA integrity_check(1);\"_ns)" , tryResult3379.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13668, mozilla::dom::quota::Severity::Error); return tryResult3379 .propagateErr(); } const auto& stmt = tryResult3379.inspect ();; | |||
13669 | ||||
13670 | QM_TRY_INSPECT(const auto& result, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3380 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetString), (*stmt), 0)); if ((__builtin_expect( !!(tryResult3380.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetString), (*stmt), 0)" , tryResult3380.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13671, mozilla::dom::quota::Severity::Error); return tryResult3380 .propagateErr(); } const auto& result = tryResult3380.inspect (); | |||
13671 | nsString, *stmt, GetString, 0))auto tryResult3380 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetString), (*stmt), 0)); if ((__builtin_expect( !!(tryResult3380.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetString), (*stmt), 0)" , tryResult3380.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13671, mozilla::dom::quota::Severity::Error); return tryResult3380 .propagateErr(); } const auto& result = tryResult3380.inspect ();; | |||
13672 | ||||
13673 | QM_TRY(OkIf(result.EqualsLiteral("ok")), NS_OK,{auto tryResult3381 = (OkIf(result.EqualsLiteral("ok"))); static_assert (std::is_empty_v<typename decltype(tryResult3381)::ok_type >); if ((__builtin_expect(!!(tryResult3381.isErr()), 0))) { auto tryTempError = tryResult3381.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(result.EqualsLiteral(\"ok\"))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13674, mozilla::dom::quota::Severity::Error); [&aOk](const auto) { *aOk = false; }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(result.EqualsLiteral(\"ok\"))" , tryTempError, NS_OK); }} | |||
13674 | [&aOk](const auto) { *aOk = false; }){auto tryResult3381 = (OkIf(result.EqualsLiteral("ok"))); static_assert (std::is_empty_v<typename decltype(tryResult3381)::ok_type >); if ((__builtin_expect(!!(tryResult3381.isErr()), 0))) { auto tryTempError = tryResult3381.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(result.EqualsLiteral(\"ok\"))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13674, mozilla::dom::quota::Severity::Error); [&aOk](const auto) { *aOk = false; }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(result.EqualsLiteral(\"ok\"))" , tryTempError, NS_OK); }}; | |||
13675 | } | |||
13676 | ||||
13677 | // Now enable and check for foreign key constraints. | |||
13678 | { | |||
13679 | QM_TRY_INSPECT(auto tryResult3384 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult3382 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult3382.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult3382.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13684, mozilla::dom::quota::Severity::Error); return tryResult3382 .propagateErr(); } const auto& stmt = tryResult3382.inspect ();; {auto tryResult3383 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3383. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)" , tryResult3383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13686, mozilla::dom::quota::Severity::Error); } return tryResult3383 ;}; }())); if ((__builtin_expect(!!(tryResult3384.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult3382 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult3382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult3382.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13684, mozilla::dom::quota::Severity::Error); return tryResult3382.propagateErr(); } const auto& stmt = tryResult3382.inspect();; {auto tryResult3383 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3383.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult3383.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13686, mozilla::dom::quota::Severity::Error); } return tryResult3383;}; }())" , tryResult3384.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult3384 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult3384.inspect(); | |||
13680 | const int32_t& foreignKeysWereEnabled,auto tryResult3384 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult3382 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult3382.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult3382.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13684, mozilla::dom::quota::Severity::Error); return tryResult3382 .propagateErr(); } const auto& stmt = tryResult3382.inspect ();; {auto tryResult3383 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3383. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)" , tryResult3383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13686, mozilla::dom::quota::Severity::Error); } return tryResult3383 ;}; }())); if ((__builtin_expect(!!(tryResult3384.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult3382 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult3382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult3382.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13684, mozilla::dom::quota::Severity::Error); return tryResult3382.propagateErr(); } const auto& stmt = tryResult3382.inspect();; {auto tryResult3383 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3383.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult3383.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13686, mozilla::dom::quota::Severity::Error); } return tryResult3383;}; }())" , tryResult3384.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult3384 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult3384.inspect(); | |||
13681 | ([&aConnection]() -> Result<int32_t, nsresult> {auto tryResult3384 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult3382 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult3382.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult3382.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13684, mozilla::dom::quota::Severity::Error); return tryResult3382 .propagateErr(); } const auto& stmt = tryResult3382.inspect ();; {auto tryResult3383 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3383. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)" , tryResult3383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13686, mozilla::dom::quota::Severity::Error); } return tryResult3383 ;}; }())); if ((__builtin_expect(!!(tryResult3384.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult3382 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult3382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult3382.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13684, mozilla::dom::quota::Severity::Error); return tryResult3382.propagateErr(); } const auto& stmt = tryResult3382.inspect();; {auto tryResult3383 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3383.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult3383.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13686, mozilla::dom::quota::Severity::Error); } return tryResult3383;}; }())" , tryResult3384.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult3384 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult3384.inspect(); | |||
13682 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3384 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult3382 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult3382.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult3382.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13684, mozilla::dom::quota::Severity::Error); return tryResult3382 .propagateErr(); } const auto& stmt = tryResult3382.inspect ();; {auto tryResult3383 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3383. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)" , tryResult3383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13686, mozilla::dom::quota::Severity::Error); } return tryResult3383 ;}; }())); if ((__builtin_expect(!!(tryResult3384.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult3382 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult3382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult3382.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13684, mozilla::dom::quota::Severity::Error); return tryResult3382.propagateErr(); } const auto& stmt = tryResult3382.inspect();; {auto tryResult3383 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3383.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult3383.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13686, mozilla::dom::quota::Severity::Error); } return tryResult3383;}; }())" , tryResult3384.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult3384 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult3384.inspect(); | |||
13683 | CreateAndExecuteSingleStepStatement(auto tryResult3384 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult3382 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult3382.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult3382.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13684, mozilla::dom::quota::Severity::Error); return tryResult3382 .propagateErr(); } const auto& stmt = tryResult3382.inspect ();; {auto tryResult3383 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3383. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)" , tryResult3383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13686, mozilla::dom::quota::Severity::Error); } return tryResult3383 ;}; }())); if ((__builtin_expect(!!(tryResult3384.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult3382 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult3382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult3382.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13684, mozilla::dom::quota::Severity::Error); return tryResult3382.propagateErr(); } const auto& stmt = tryResult3382.inspect();; {auto tryResult3383 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3383.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult3383.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13686, mozilla::dom::quota::Severity::Error); } return tryResult3383;}; }())" , tryResult3384.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult3384 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult3384.inspect(); | |||
13684 | aConnection, "PRAGMA foreign_keys;"_ns));auto tryResult3384 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult3382 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult3382.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult3382.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13684, mozilla::dom::quota::Severity::Error); return tryResult3382 .propagateErr(); } const auto& stmt = tryResult3382.inspect ();; {auto tryResult3383 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3383. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)" , tryResult3383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13686, mozilla::dom::quota::Severity::Error); } return tryResult3383 ;}; }())); if ((__builtin_expect(!!(tryResult3384.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult3382 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult3382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult3382.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13684, mozilla::dom::quota::Severity::Error); return tryResult3382.propagateErr(); } const auto& stmt = tryResult3382.inspect();; {auto tryResult3383 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3383.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult3383.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13686, mozilla::dom::quota::Severity::Error); } return tryResult3383;}; }())" , tryResult3384.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult3384 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult3384.inspect(); | |||
13685 | ||||
13686 | QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0));auto tryResult3384 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult3382 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult3382.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult3382.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13684, mozilla::dom::quota::Severity::Error); return tryResult3382 .propagateErr(); } const auto& stmt = tryResult3382.inspect ();; {auto tryResult3383 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3383. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)" , tryResult3383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13686, mozilla::dom::quota::Severity::Error); } return tryResult3383 ;}; }())); if ((__builtin_expect(!!(tryResult3384.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult3382 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult3382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult3382.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13684, mozilla::dom::quota::Severity::Error); return tryResult3382.propagateErr(); } const auto& stmt = tryResult3382.inspect();; {auto tryResult3383 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3383.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult3383.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13686, mozilla::dom::quota::Severity::Error); } return tryResult3383;}; }())" , tryResult3384.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult3384 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult3384.inspect(); | |||
13687 | }()))auto tryResult3384 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult3382 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult3382.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult3382.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13684, mozilla::dom::quota::Severity::Error); return tryResult3382 .propagateErr(); } const auto& stmt = tryResult3382.inspect ();; {auto tryResult3383 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3383. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)" , tryResult3383.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13686, mozilla::dom::quota::Severity::Error); } return tryResult3383 ;}; }())); if ((__builtin_expect(!!(tryResult3384.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult3382 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult3382.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult3382.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13684, mozilla::dom::quota::Severity::Error); return tryResult3382.propagateErr(); } const auto& stmt = tryResult3382.inspect();; {auto tryResult3383 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3383.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult3383.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13686, mozilla::dom::quota::Severity::Error); } return tryResult3383;}; }())" , tryResult3384.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult3384 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult3384.inspect();; | |||
13688 | ||||
13689 | if (!foreignKeysWereEnabled) { | |||
13690 | QM_TRY(MOZ_TO_RESULT({auto tryResult3385 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA foreign_keys = ON;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult3385)::ok_type>); if ((__builtin_expect (!!(tryResult3385.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = ON;\"_ns))" , tryResult3385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13691, mozilla::dom::quota::Severity::Error); return tryResult3385 .propagateErr(); }} | |||
13691 | aConnection.ExecuteSimpleSQL("PRAGMA foreign_keys = ON;"_ns))){auto tryResult3385 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA foreign_keys = ON;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult3385)::ok_type>); if ((__builtin_expect (!!(tryResult3385.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = ON;\"_ns))" , tryResult3385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13691, mozilla::dom::quota::Severity::Error); return tryResult3385 .propagateErr(); }}; | |||
13692 | } | |||
13693 | ||||
13694 | QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult3386 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult3386.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)" , tryResult3386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13697, mozilla::dom::quota::Severity::Error); return tryResult3386 .propagateErr(); } const bool& foreignKeyError = tryResult3386 .inspect(); | |||
13695 | CreateAndExecuteSingleStepStatement<auto tryResult3386 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult3386.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)" , tryResult3386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13697, mozilla::dom::quota::Severity::Error); return tryResult3386 .propagateErr(); } const bool& foreignKeyError = tryResult3386 .inspect(); | |||
13696 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult3386 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult3386.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)" , tryResult3386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13697, mozilla::dom::quota::Severity::Error); return tryResult3386 .propagateErr(); } const bool& foreignKeyError = tryResult3386 .inspect(); | |||
13697 | aConnection, "PRAGMA foreign_key_check;"_ns))auto tryResult3386 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult3386.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)" , tryResult3386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13697, mozilla::dom::quota::Severity::Error); return tryResult3386 .propagateErr(); } const bool& foreignKeyError = tryResult3386 .inspect();; | |||
13698 | ||||
13699 | if (!foreignKeysWereEnabled) { | |||
13700 | QM_TRY(MOZ_TO_RESULT({auto tryResult3387 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA foreign_keys = OFF;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult3387)::ok_type>); if ((__builtin_expect (!!(tryResult3387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" , tryResult3387.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13701, mozilla::dom::quota::Severity::Error); return tryResult3387 .propagateErr(); }} | |||
13701 | aConnection.ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))){auto tryResult3387 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA foreign_keys = OFF;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult3387)::ok_type>); if ((__builtin_expect (!!(tryResult3387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" , tryResult3387.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13701, mozilla::dom::quota::Severity::Error); return tryResult3387 .propagateErr(); }}; | |||
13702 | } | |||
13703 | ||||
13704 | if (foreignKeyError) { | |||
13705 | *aOk = false; | |||
13706 | return NS_OK; | |||
13707 | } | |||
13708 | } | |||
13709 | ||||
13710 | *aOk = true; | |||
13711 | return NS_OK; | |||
13712 | } | |||
13713 | ||||
13714 | nsresult DatabaseMaintenance::DetermineMaintenanceAction( | |||
13715 | mozIStorageConnection& aConnection, nsIFile* aDatabaseFile, | |||
13716 | MaintenanceAction* aMaintenanceAction) { | |||
13717 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13717); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 13717; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13718 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13718); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 13718; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13719 | MOZ_ASSERT(aDatabaseFile)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseFile", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13719); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseFile" ")"); do { *((volatile int*)__null) = 13719; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13720 | MOZ_ASSERT(aMaintenanceAction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMaintenanceAction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMaintenanceAction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aMaintenanceAction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13720); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMaintenanceAction" ")"); do { *((volatile int*)__null) = 13720; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13721 | ||||
13722 | if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13722)) { | |||
13723 | return NS_ERROR_ABORT; | |||
13724 | } | |||
13725 | ||||
13726 | QM_TRY_INSPECT(const int32_t& schemaVersion,auto tryResult3388 = (::mozilla::ToResultInvokeMember( (aConnection ), &::mozilla::detail::DerefedType<decltype(aConnection )>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult3388 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aConnection), &::mozilla::detail::DerefedType<decltype(aConnection)>::GetSchemaVersion)" , tryResult3388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13727, mozilla::dom::quota::Severity::Error); return tryResult3388 .propagateErr(); } const int32_t& schemaVersion = tryResult3388 .inspect(); | |||
13727 | MOZ_TO_RESULT_INVOKE_MEMBER(aConnection, GetSchemaVersion))auto tryResult3388 = (::mozilla::ToResultInvokeMember( (aConnection ), &::mozilla::detail::DerefedType<decltype(aConnection )>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult3388 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aConnection), &::mozilla::detail::DerefedType<decltype(aConnection)>::GetSchemaVersion)" , tryResult3388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13727, mozilla::dom::quota::Severity::Error); return tryResult3388 .propagateErr(); } const int32_t& schemaVersion = tryResult3388 .inspect();; | |||
13728 | ||||
13729 | // Don't do anything if the schema version is less than 18; before that | |||
13730 | // version no databases had |auto_vacuum == INCREMENTAL| set and we didn't | |||
13731 | // track the values needed for the heuristics below. | |||
13732 | if (schemaVersion < MakeSchemaVersion(18, 0)) { | |||
13733 | *aMaintenanceAction = MaintenanceAction::Nothing; | |||
13734 | return NS_OK; | |||
13735 | } | |||
13736 | ||||
13737 | // This method shouldn't make any permanent changes to the database, so make | |||
13738 | // sure everything gets rolled back when we leave. | |||
13739 | mozStorageTransaction transaction(&aConnection, | |||
13740 | /* aCommitOnComplete */ false); | |||
13741 | ||||
13742 | QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult3389 = (ToResult(transaction.Start())); static_assert (std::is_empty_v<typename decltype(tryResult3389)::ok_type >); if ((__builtin_expect(!!(tryResult3389.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(transaction.Start())" , tryResult3389.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13742, mozilla::dom::quota::Severity::Error); return tryResult3389 .propagateErr(); }} | |||
13743 | ||||
13744 | // Check to see when we last vacuumed this database. | |||
13745 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3390 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns )); if ((__builtin_expect(!!(tryResult3390.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)" , tryResult3390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13749, mozilla::dom::quota::Severity::Error); return tryResult3390 .propagateErr(); } const auto& stmt = tryResult3390.inspect (); | |||
13746 | CreateAndExecuteSingleStepStatement(auto tryResult3390 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns )); if ((__builtin_expect(!!(tryResult3390.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)" , tryResult3390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13749, mozilla::dom::quota::Severity::Error); return tryResult3390 .propagateErr(); } const auto& stmt = tryResult3390.inspect (); | |||
13747 | aConnection,auto tryResult3390 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns )); if ((__builtin_expect(!!(tryResult3390.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)" , tryResult3390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13749, mozilla::dom::quota::Severity::Error); return tryResult3390 .propagateErr(); } const auto& stmt = tryResult3390.inspect (); | |||
13748 | "SELECT last_vacuum_time, last_vacuum_size "auto tryResult3390 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns )); if ((__builtin_expect(!!(tryResult3390.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)" , tryResult3390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13749, mozilla::dom::quota::Severity::Error); return tryResult3390 .propagateErr(); } const auto& stmt = tryResult3390.inspect (); | |||
13749 | "FROM database;"_ns))auto tryResult3390 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns )); if ((__builtin_expect(!!(tryResult3390.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)" , tryResult3390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13749, mozilla::dom::quota::Severity::Error); return tryResult3390 .propagateErr(); } const auto& stmt = tryResult3390.inspect ();; | |||
13750 | ||||
13751 | QM_TRY_INSPECT(const PRTime& lastVacuumTime,auto tryResult3391 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3391.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64, 0)" , tryResult3391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13752, mozilla::dom::quota::Severity::Error); return tryResult3391 .propagateErr(); } const PRTime& lastVacuumTime = tryResult3391 .inspect(); | |||
13752 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt64, 0))auto tryResult3391 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3391.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64, 0)" , tryResult3391.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13752, mozilla::dom::quota::Severity::Error); return tryResult3391 .propagateErr(); } const PRTime& lastVacuumTime = tryResult3391 .inspect();; | |||
13753 | ||||
13754 | QM_TRY_INSPECT(const int64_t& lastVacuumSize,auto tryResult3392 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3392.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64, 1)" , tryResult3392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13755, mozilla::dom::quota::Severity::Error); return tryResult3392 .propagateErr(); } const int64_t& lastVacuumSize = tryResult3392 .inspect(); | |||
13755 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt64, 1))auto tryResult3392 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3392.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64, 1)" , tryResult3392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13755, mozilla::dom::quota::Severity::Error); return tryResult3392 .propagateErr(); } const int64_t& lastVacuumSize = tryResult3392 .inspect();; | |||
13756 | ||||
13757 | NS_ASSERTION(lastVacuumSize > 0,do { if (!(lastVacuumSize > 0)) { NS_DebugBreak(NS_DEBUG_ASSERTION , "Thy last vacuum size shall be greater than zero, less than " "zero shall thy last vacuum size not be. Zero is right out." , "lastVacuumSize > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13759); MOZ_PretendNoReturn(); } } while (0) | |||
13758 | "Thy last vacuum size shall be greater than zero, less than "do { if (!(lastVacuumSize > 0)) { NS_DebugBreak(NS_DEBUG_ASSERTION , "Thy last vacuum size shall be greater than zero, less than " "zero shall thy last vacuum size not be. Zero is right out." , "lastVacuumSize > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13759); MOZ_PretendNoReturn(); } } while (0) | |||
13759 | "zero shall thy last vacuum size not be. Zero is right out.")do { if (!(lastVacuumSize > 0)) { NS_DebugBreak(NS_DEBUG_ASSERTION , "Thy last vacuum size shall be greater than zero, less than " "zero shall thy last vacuum size not be. Zero is right out." , "lastVacuumSize > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13759); MOZ_PretendNoReturn(); } } while (0); | |||
13760 | ||||
13761 | const PRTime startTime = mMaintenance->StartTime(); | |||
13762 | ||||
13763 | // This shouldn't really be possible... | |||
13764 | if (NS_WARN_IF(startTime <= lastVacuumTime)NS_warn_if_impl(startTime <= lastVacuumTime, "startTime <= lastVacuumTime" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13764)) { | |||
13765 | *aMaintenanceAction = MaintenanceAction::Nothing; | |||
13766 | return NS_OK; | |||
13767 | } | |||
13768 | ||||
13769 | if (startTime - lastVacuumTime < kMinVacuumAge) { | |||
13770 | *aMaintenanceAction = MaintenanceAction::IncrementalVacuum; | |||
13771 | return NS_OK; | |||
13772 | } | |||
13773 | ||||
13774 | // It has been more than a week since the database was vacuumed, so gather | |||
13775 | // statistics on its usage to see if vacuuming is worthwhile. | |||
13776 | ||||
13777 | // Create a temporary copy of the dbstat table to speed up the queries that | |||
13778 | // come later. | |||
13779 | QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL({auto tryResult3393 = (ToResult(aConnection.ExecuteSimpleSQL( "CREATE VIRTUAL TABLE __stats__ USING dbstat;" "CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult3393 )::ok_type>); if ((__builtin_expect(!!(tryResult3393.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE __stats__ USING dbstat;\" \"CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;\"_ns))" , tryResult3393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13781, mozilla::dom::quota::Severity::Error); return tryResult3393 .propagateErr(); }} | |||
13780 | "CREATE VIRTUAL TABLE __stats__ USING dbstat;"{auto tryResult3393 = (ToResult(aConnection.ExecuteSimpleSQL( "CREATE VIRTUAL TABLE __stats__ USING dbstat;" "CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult3393 )::ok_type>); if ((__builtin_expect(!!(tryResult3393.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE __stats__ USING dbstat;\" \"CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;\"_ns))" , tryResult3393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13781, mozilla::dom::quota::Severity::Error); return tryResult3393 .propagateErr(); }} | |||
13781 | "CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;"_ns))){auto tryResult3393 = (ToResult(aConnection.ExecuteSimpleSQL( "CREATE VIRTUAL TABLE __stats__ USING dbstat;" "CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult3393 )::ok_type>); if ((__builtin_expect(!!(tryResult3393.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE __stats__ USING dbstat;\" \"CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;\"_ns))" , tryResult3393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13781, mozilla::dom::quota::Severity::Error); return tryResult3393 .propagateErr(); }}; | |||
13782 | ||||
13783 | { // Calculate the percentage of the database pages that are not in | |||
13784 | // contiguous order. | |||
13785 | QM_TRY_INSPECT(auto tryResult3394 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / " "COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ " "WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns )); if ((__builtin_expect(!!(tryResult3394.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)" , tryResult3394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13793, mozilla::dom::quota::Severity::Error); return tryResult3394 .propagateErr(); } const auto& stmt = tryResult3394.inspect (); | |||
13786 | const auto& stmt,auto tryResult3394 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / " "COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ " "WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns )); if ((__builtin_expect(!!(tryResult3394.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)" , tryResult3394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13793, mozilla::dom::quota::Severity::Error); return tryResult3394 .propagateErr(); } const auto& stmt = tryResult3394.inspect (); | |||
13787 | CreateAndExecuteSingleStepStatement(auto tryResult3394 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / " "COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ " "WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns )); if ((__builtin_expect(!!(tryResult3394.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)" , tryResult3394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13793, mozilla::dom::quota::Severity::Error); return tryResult3394 .propagateErr(); } const auto& stmt = tryResult3394.inspect (); | |||
13788 | aConnection,auto tryResult3394 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / " "COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ " "WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns )); if ((__builtin_expect(!!(tryResult3394.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)" , tryResult3394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13793, mozilla::dom::quota::Severity::Error); return tryResult3394 .propagateErr(); } const auto& stmt = tryResult3394.inspect (); | |||
13789 | "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "auto tryResult3394 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / " "COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ " "WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns )); if ((__builtin_expect(!!(tryResult3394.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)" , tryResult3394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13793, mozilla::dom::quota::Severity::Error); return tryResult3394 .propagateErr(); } const auto& stmt = tryResult3394.inspect (); | |||
13790 | "COUNT(*) "auto tryResult3394 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / " "COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ " "WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns )); if ((__builtin_expect(!!(tryResult3394.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)" , tryResult3394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13793, mozilla::dom::quota::Severity::Error); return tryResult3394 .propagateErr(); } const auto& stmt = tryResult3394.inspect (); | |||
13791 | "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "auto tryResult3394 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / " "COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ " "WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns )); if ((__builtin_expect(!!(tryResult3394.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)" , tryResult3394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13793, mozilla::dom::quota::Severity::Error); return tryResult3394 .propagateErr(); } const auto& stmt = tryResult3394.inspect (); | |||
13792 | "WHERE __ts1__.name = __ts2__.name "auto tryResult3394 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / " "COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ " "WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns )); if ((__builtin_expect(!!(tryResult3394.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)" , tryResult3394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13793, mozilla::dom::quota::Severity::Error); return tryResult3394 .propagateErr(); } const auto& stmt = tryResult3394.inspect (); | |||
13793 | "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns))auto tryResult3394 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / " "COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ " "WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns )); if ((__builtin_expect(!!(tryResult3394.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)" , tryResult3394.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13793, mozilla::dom::quota::Severity::Error); return tryResult3394 .propagateErr(); } const auto& stmt = tryResult3394.inspect ();; | |||
13794 | ||||
13795 | QM_TRY_INSPECT(const int32_t& percentUnordered,auto tryResult3395 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3395.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)" , tryResult3395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13796, mozilla::dom::quota::Severity::Error); return tryResult3395 .propagateErr(); } const int32_t& percentUnordered = tryResult3395 .inspect(); | |||
13796 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult3395 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3395.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)" , tryResult3395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13796, mozilla::dom::quota::Severity::Error); return tryResult3395 .propagateErr(); } const int32_t& percentUnordered = tryResult3395 .inspect();; | |||
13797 | ||||
13798 | MOZ_ASSERT(percentUnordered >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(percentUnordered >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(percentUnordered >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("percentUnordered >= 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnordered >= 0" ")"); do { *((volatile int*)__null) = 13798; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13799 | MOZ_ASSERT(percentUnordered <= 100)do { static_assert( mozilla::detail::AssertionConditionType< decltype(percentUnordered <= 100)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(percentUnordered <= 100)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("percentUnordered <= 100" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13799); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnordered <= 100" ")"); do { *((volatile int*)__null) = 13799; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13800 | ||||
13801 | if (percentUnordered >= kPercentUnorderedThreshold) { | |||
13802 | *aMaintenanceAction = MaintenanceAction::FullVacuum; | |||
13803 | return NS_OK; | |||
13804 | } | |||
13805 | } | |||
13806 | ||||
13807 | // Don't try a full vacuum if the file hasn't grown by 10%. | |||
13808 | QM_TRY_INSPECT(const int64_t& currentFileSize,auto tryResult3396 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3396. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13809, mozilla::dom::quota::Severity::Error); return tryResult3396 .propagateErr(); } const int64_t& currentFileSize = tryResult3396 .inspect(); | |||
13809 | MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, GetFileSize))auto tryResult3396 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3396. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13809, mozilla::dom::quota::Severity::Error); return tryResult3396 .propagateErr(); } const int64_t& currentFileSize = tryResult3396 .inspect();; | |||
13810 | ||||
13811 | if (currentFileSize <= lastVacuumSize || | |||
13812 | (((currentFileSize - lastVacuumSize) * 100 / currentFileSize) < | |||
13813 | kPercentFileSizeGrowthThreshold)) { | |||
13814 | *aMaintenanceAction = MaintenanceAction::IncrementalVacuum; | |||
13815 | return NS_OK; | |||
13816 | } | |||
13817 | ||||
13818 | { // See if there are any free pages that we can reclaim. | |||
13819 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3397 = (CreateAndExecuteSingleStepStatement( aConnection , "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult3397 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)" , tryResult3397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13821, mozilla::dom::quota::Severity::Error); return tryResult3397 .propagateErr(); } const auto& stmt = tryResult3397.inspect (); | |||
13820 | CreateAndExecuteSingleStepStatement(auto tryResult3397 = (CreateAndExecuteSingleStepStatement( aConnection , "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult3397 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)" , tryResult3397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13821, mozilla::dom::quota::Severity::Error); return tryResult3397 .propagateErr(); } const auto& stmt = tryResult3397.inspect (); | |||
13821 | aConnection, "PRAGMA freelist_count;"_ns))auto tryResult3397 = (CreateAndExecuteSingleStepStatement( aConnection , "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult3397 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)" , tryResult3397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13821, mozilla::dom::quota::Severity::Error); return tryResult3397 .propagateErr(); } const auto& stmt = tryResult3397.inspect ();; | |||
13822 | ||||
13823 | QM_TRY_INSPECT(const int32_t& freelistCount,auto tryResult3398 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3398.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)" , tryResult3398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13824, mozilla::dom::quota::Severity::Error); return tryResult3398 .propagateErr(); } const int32_t& freelistCount = tryResult3398 .inspect(); | |||
13824 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult3398 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3398.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)" , tryResult3398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13824, mozilla::dom::quota::Severity::Error); return tryResult3398 .propagateErr(); } const int32_t& freelistCount = tryResult3398 .inspect();; | |||
13825 | ||||
13826 | MOZ_ASSERT(freelistCount >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(freelistCount >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(freelistCount >= 0))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("freelistCount >= 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "freelistCount >= 0" ")"); do { *((volatile int*)__null) = 13826; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13827 | ||||
13828 | // If we have too many free pages then we should try an incremental | |||
13829 | // vacuum. If that causes too much fragmentation then we'll try a full | |||
13830 | // vacuum later. | |||
13831 | if (freelistCount > kMaxFreelistThreshold) { | |||
13832 | *aMaintenanceAction = MaintenanceAction::IncrementalVacuum; | |||
13833 | return NS_OK; | |||
13834 | } | |||
13835 | } | |||
13836 | ||||
13837 | { // Calculate the percentage of unused bytes on pages in the database. | |||
13838 | QM_TRY_INSPECT(auto tryResult3399 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns )); if ((__builtin_expect(!!(tryResult3399.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)" , tryResult3399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13842, mozilla::dom::quota::Severity::Error); return tryResult3399 .propagateErr(); } const auto& stmt = tryResult3399.inspect (); | |||
13839 | const auto& stmt,auto tryResult3399 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns )); if ((__builtin_expect(!!(tryResult3399.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)" , tryResult3399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13842, mozilla::dom::quota::Severity::Error); return tryResult3399 .propagateErr(); } const auto& stmt = tryResult3399.inspect (); | |||
13840 | CreateAndExecuteSingleStepStatement(auto tryResult3399 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns )); if ((__builtin_expect(!!(tryResult3399.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)" , tryResult3399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13842, mozilla::dom::quota::Severity::Error); return tryResult3399 .propagateErr(); } const auto& stmt = tryResult3399.inspect (); | |||
13841 | aConnection,auto tryResult3399 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns )); if ((__builtin_expect(!!(tryResult3399.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)" , tryResult3399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13842, mozilla::dom::quota::Severity::Error); return tryResult3399 .propagateErr(); } const auto& stmt = tryResult3399.inspect (); | |||
13842 | "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns))auto tryResult3399 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns )); if ((__builtin_expect(!!(tryResult3399.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)" , tryResult3399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13842, mozilla::dom::quota::Severity::Error); return tryResult3399 .propagateErr(); } const auto& stmt = tryResult3399.inspect ();; | |||
13843 | ||||
13844 | QM_TRY_INSPECT(const int32_t& percentUnused,auto tryResult3400 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3400.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)" , tryResult3400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13845, mozilla::dom::quota::Severity::Error); return tryResult3400 .propagateErr(); } const int32_t& percentUnused = tryResult3400 .inspect(); | |||
13845 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult3400 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32, 0)); if ((__builtin_expect(!!(tryResult3400.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)" , tryResult3400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13845, mozilla::dom::quota::Severity::Error); return tryResult3400 .propagateErr(); } const int32_t& percentUnused = tryResult3400 .inspect();; | |||
13846 | ||||
13847 | MOZ_ASSERT(percentUnused >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(percentUnused >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(percentUnused >= 0))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("percentUnused >= 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13847); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnused >= 0" ")"); do { *((volatile int*)__null) = 13847; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13848 | MOZ_ASSERT(percentUnused <= 100)do { static_assert( mozilla::detail::AssertionConditionType< decltype(percentUnused <= 100)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(percentUnused <= 100))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("percentUnused <= 100" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13848); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnused <= 100" ")"); do { *((volatile int*)__null) = 13848; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13849 | ||||
13850 | *aMaintenanceAction = percentUnused >= kPercentUnusedThreshold | |||
13851 | ? MaintenanceAction::FullVacuum | |||
13852 | : MaintenanceAction::IncrementalVacuum; | |||
13853 | } | |||
13854 | ||||
13855 | return NS_OK; | |||
13856 | } | |||
13857 | ||||
13858 | void DatabaseMaintenance::IncrementalVacuum( | |||
13859 | mozIStorageConnection& aConnection) { | |||
13860 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13860); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 13860; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13861 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13861); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 13861; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13862 | ||||
13863 | if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13863)) { | |||
13864 | return; | |||
13865 | } | |||
13866 | ||||
13867 | nsresult rv = aConnection.ExecuteSimpleSQL("PRAGMA incremental_vacuum;"_ns); | |||
13868 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13868)) { | |||
13869 | return; | |||
13870 | } | |||
13871 | } | |||
13872 | ||||
13873 | void DatabaseMaintenance::FullVacuum(mozIStorageConnection& aConnection, | |||
13874 | nsIFile* aDatabaseFile) { | |||
13875 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13875); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 13875; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13876 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13876); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 13876; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13877 | MOZ_ASSERT(aDatabaseFile)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseFile", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13877); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseFile" ")"); do { *((volatile int*)__null) = 13877; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13878 | ||||
13879 | if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13879)) { | |||
13880 | return; | |||
13881 | } | |||
13882 | ||||
13883 | QM_WARNONLY_TRY(([&]() -> Result<Ok, nsresult> {{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13884 | QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL("VACUUM;"_ns)));{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13885 | ||||
13886 | const PRTime vacuumTime = PR_Now();{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13887 | MOZ_ASSERT(vacuumTime > 0);{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13888 | ||||
13889 | QM_TRY_INSPECT(const int64_t& fileSize,{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13890 | MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, GetFileSize));{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13891 | ||||
13892 | MOZ_ASSERT(fileSize > 0);{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13893 | ||||
13894 | // The parameter names are not used, parameters are bound by index only{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13895 | // locally in the same function.{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13896 | QM_TRY_INSPECT(const auto& stmt, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13897 | nsCOMPtr<mozIStorageStatement>,{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13898 | aConnection, CreateStatement,{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13899 | "UPDATE database "{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13900 | "SET last_vacuum_time = :time"{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13901 | ", last_vacuum_size = :size;"_ns));{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13902 | ||||
13903 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByIndex(0, vacuumTime)));{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13904 | ||||
13905 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByIndex(1, fileSize)));{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13906 | ||||
13907 | QM_TRY(MOZ_TO_RESULT(stmt->Execute()));{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13908 | return Ok{};{auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }} | |||
13909 | }())){auto tryResult3407 = (([&]() -> Result<Ok, nsresult > { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult3401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13884, mozilla::dom::quota::Severity::Error); return tryResult3401 .propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype (vacuumTime > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0" ")"); do { *((volatile int*)__null) = 13887; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)" , tryResult3402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13890, mozilla::dom::quota::Severity::Error); return tryResult3402 .propagateErr(); } const int64_t& fileSize = tryResult3402 .inspect();; do { static_assert( mozilla::detail::AssertionConditionType <decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"); do { *((volatile int*)__null) = 13892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement > >( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(aConnection)>::CreateStatement), (aConnection ), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns )); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)" , tryResult3403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13901, mozilla::dom::quota::Severity::Error); return tryResult3403 .propagateErr(); } const auto& stmt = tryResult3403.inspect ();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult3404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13903, mozilla::dom::quota::Severity::Error); return tryResult3404 .propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect (!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult3405 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13905, mozilla::dom::quota::Severity::Error); return tryResult3405 .propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3406.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13907, mozilla::dom::quota::Severity::Error); return tryResult3406 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult3407)::ok_type>); if ((__builtin_expect (!!(tryResult3407.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult3401 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult3401)::ok_type>); if ((__builtin_expect(!!(tryResult3401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult3401.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13884, mozilla::dom::quota::Severity::Error); return tryResult3401.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13887); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13887; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3402 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult3402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult3402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13890, mozilla::dom::quota::Severity::Error); return tryResult3402.propagateErr(); } const int64_t& fileSize = tryResult3402.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13892); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13892; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult3403 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult3403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult3403.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13901, mozilla::dom::quota::Severity::Error); return tryResult3403.propagateErr(); } const auto& stmt = tryResult3403.inspect();; {auto tryResult3404 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult3404)::ok_type>); if ((__builtin_expect(!!(tryResult3404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult3404.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13903, mozilla::dom::quota::Severity::Error); return tryResult3404.propagateErr(); }}; {auto tryResult3405 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult3405)::ok_type>); if ((__builtin_expect(!!(tryResult3405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult3405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13905, mozilla::dom::quota::Severity::Error); return tryResult3405.propagateErr(); }}; {auto tryResult3406 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3406)::ok_type>); if ((__builtin_expect(!!(tryResult3406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult3406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13907, mozilla::dom::quota::Severity::Error); return tryResult3406.propagateErr(); }}; return Ok{}; }())" , tryResult3407.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13909, mozilla::dom::quota::Severity::Warning); }}; | |||
13910 | } | |||
13911 | ||||
13912 | void DatabaseMaintenance::RunOnOwningThread() { | |||
13913 | AssertIsOnBackgroundThread(); | |||
13914 | ||||
13915 | DropDirectoryLock(mDirectoryLock); | |||
13916 | ||||
13917 | if (mCompleteCallback) { | |||
13918 | MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(mCompleteCallback.forget()))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (NS_DispatchToCurrentThread(mCompleteCallback.forget()))), 1) ))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(mCompleteCallback.forget()))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13918); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(mCompleteCallback.forget()))" ")"); do { *((volatile int*)__null) = 13918; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
13919 | } | |||
13920 | ||||
13921 | mMaintenance->UnregisterDatabaseMaintenance(this); | |||
13922 | } | |||
13923 | ||||
13924 | void DatabaseMaintenance::RunOnConnectionThread() { | |||
13925 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13925); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 13925; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13926 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13926); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 13926; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13927 | ||||
13928 | PerformMaintenanceOnDatabase(); | |||
13929 | ||||
13930 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget ::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13931); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 13931; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
13931 | mMaintenance->BackgroundThread()->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget ::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13931); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 13931; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
13932 | } | |||
13933 | ||||
13934 | NS_IMETHODIMPnsresult | |||
13935 | DatabaseMaintenance::Run() { | |||
13936 | if (IsOnBackgroundThread()) { | |||
13937 | RunOnOwningThread(); | |||
13938 | } else { | |||
13939 | RunOnConnectionThread(); | |||
13940 | } | |||
13941 | ||||
13942 | return NS_OK; | |||
13943 | } | |||
13944 | ||||
13945 | /******************************************************************************* | |||
13946 | * Local class implementations | |||
13947 | ******************************************************************************/ | |||
13948 | ||||
13949 | // static | |||
13950 | nsAutoCString DatabaseOperationBase::MaybeGetBindingClauseForKeyRange( | |||
13951 | const Maybe<SerializedKeyRange>& aOptionalKeyRange, | |||
13952 | const nsACString& aKeyColumnName) { | |||
13953 | return aOptionalKeyRange.isSome() | |||
13954 | ? GetBindingClauseForKeyRange(aOptionalKeyRange.ref(), | |||
13955 | aKeyColumnName) | |||
13956 | : nsAutoCString{}; | |||
13957 | } | |||
13958 | ||||
13959 | // static | |||
13960 | nsAutoCString DatabaseOperationBase::GetBindingClauseForKeyRange( | |||
13961 | const SerializedKeyRange& aKeyRange, const nsACString& aKeyColumnName) { | |||
13962 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13962); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 13962; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13963 | MOZ_ASSERT(!aKeyColumnName.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aKeyColumnName.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aKeyColumnName.IsEmpty()))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aKeyColumnName.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13963); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aKeyColumnName.IsEmpty()" ")"); do { *((volatile int*)__null) = 13963; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13964 | ||||
13965 | constexpr auto andStr = " AND "_ns; | |||
13966 | constexpr auto spacecolon = " :"_ns; | |||
13967 | ||||
13968 | nsAutoCString result; | |||
13969 | if (aKeyRange.isOnly()) { | |||
13970 | // Both keys equal. | |||
13971 | result = | |||
13972 | andStr + aKeyColumnName + " ="_ns + spacecolon + kStmtParamNameLowerKey; | |||
13973 | } else { | |||
13974 | if (!aKeyRange.lower().IsUnset()) { | |||
13975 | // Lower key is set. | |||
13976 | result.Append(andStr + aKeyColumnName); | |||
13977 | result.AppendLiteral(" >"); | |||
13978 | if (!aKeyRange.lowerOpen()) { | |||
13979 | result.AppendLiteral("="); | |||
13980 | } | |||
13981 | result.Append(spacecolon + kStmtParamNameLowerKey); | |||
13982 | } | |||
13983 | ||||
13984 | if (!aKeyRange.upper().IsUnset()) { | |||
13985 | // Upper key is set. | |||
13986 | result.Append(andStr + aKeyColumnName); | |||
13987 | result.AppendLiteral(" <"); | |||
13988 | if (!aKeyRange.upperOpen()) { | |||
13989 | result.AppendLiteral("="); | |||
13990 | } | |||
13991 | result.Append(spacecolon + kStmtParamNameUpperKey); | |||
13992 | } | |||
13993 | } | |||
13994 | ||||
13995 | MOZ_ASSERT(!result.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!result.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!result.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!result.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 13995); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!result.IsEmpty()" ")"); do { *((volatile int*)__null) = 13995; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
13996 | ||||
13997 | return result; | |||
13998 | } | |||
13999 | ||||
14000 | // static | |||
14001 | uint64_t DatabaseOperationBase::ReinterpretDoubleAsUInt64(double aDouble) { | |||
14002 | // This is a duplicate of the js engine's byte munging in StructuredClone.cpp | |||
14003 | return BitwiseCast<uint64_t>(aDouble); | |||
14004 | } | |||
14005 | ||||
14006 | // static | |||
14007 | template <typename KeyTransformation> | |||
14008 | nsresult DatabaseOperationBase::MaybeBindKeyToStatement( | |||
14009 | const Key& aKey, mozIStorageStatement* const aStatement, | |||
14010 | const nsACString& aParameterName, | |||
14011 | const KeyTransformation& aKeyTransformation) { | |||
14012 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14012); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 14012; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14013 | MOZ_ASSERT(aStatement)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aStatement)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aStatement))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aStatement", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14013); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStatement" ")"); do { *((volatile int*)__null) = 14013; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14014 | ||||
14015 | if (!aKey.IsUnset()) { | |||
14016 | // XXX This case distinction could be avoided if QM_TRY_INSPECT would also | |||
14017 | // work with a function not returning a Result<V, E> but simply a V (which | |||
14018 | // is const Key& here) and then assuming it is always a success. Or the | |||
14019 | // transformation could be changed to return Result<const V&, void> but I | |||
14020 | // don't think that Result supports that at the moment. | |||
14021 | if constexpr (std::is_reference_v< | |||
14022 | std::invoke_result_t<KeyTransformation, Key>>) { | |||
14023 | QM_TRY(MOZ_TO_RESULT(aKeyTransformation(aKey).BindToStatement({auto tryResult3408 = (ToResult(aKeyTransformation(aKey).BindToStatement ( aStatement, aParameterName))); static_assert(std::is_empty_v <typename decltype(tryResult3408)::ok_type>); if ((__builtin_expect (!!(tryResult3408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aKeyTransformation(aKey).BindToStatement( aStatement, aParameterName))" , tryResult3408.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14024, mozilla::dom::quota::Severity::Error); return tryResult3408 .propagateErr(); }} | |||
14024 | aStatement, aParameterName))){auto tryResult3408 = (ToResult(aKeyTransformation(aKey).BindToStatement ( aStatement, aParameterName))); static_assert(std::is_empty_v <typename decltype(tryResult3408)::ok_type>); if ((__builtin_expect (!!(tryResult3408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aKeyTransformation(aKey).BindToStatement( aStatement, aParameterName))" , tryResult3408.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14024, mozilla::dom::quota::Severity::Error); return tryResult3408 .propagateErr(); }}; | |||
14025 | } else { | |||
14026 | QM_TRY_INSPECT(const auto& transformedKey, aKeyTransformation(aKey))auto tryResult3409 = (aKeyTransformation(aKey)); if ((__builtin_expect (!!(tryResult3409.isErr()), 0))) { mozilla::dom::quota::HandleError ("aKeyTransformation(aKey)", tryResult3409.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14026, mozilla::dom::quota::Severity::Error); return tryResult3409 .propagateErr(); } const auto& transformedKey = tryResult3409 .inspect();; | |||
14027 | QM_TRY(MOZ_TO_RESULT({auto tryResult3410 = (ToResult(transformedKey.BindToStatement (aStatement, aParameterName))); static_assert(std::is_empty_v <typename decltype(tryResult3410)::ok_type>); if ((__builtin_expect (!!(tryResult3410.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(transformedKey.BindToStatement(aStatement, aParameterName))" , tryResult3410.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14028, mozilla::dom::quota::Severity::Error); return tryResult3410 .propagateErr(); }} | |||
14028 | transformedKey.BindToStatement(aStatement, aParameterName))){auto tryResult3410 = (ToResult(transformedKey.BindToStatement (aStatement, aParameterName))); static_assert(std::is_empty_v <typename decltype(tryResult3410)::ok_type>); if ((__builtin_expect (!!(tryResult3410.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(transformedKey.BindToStatement(aStatement, aParameterName))" , tryResult3410.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14028, mozilla::dom::quota::Severity::Error); return tryResult3410 .propagateErr(); }}; | |||
14029 | } | |||
14030 | } | |||
14031 | ||||
14032 | return NS_OK; | |||
14033 | } | |||
14034 | ||||
14035 | // static | |||
14036 | template <typename KeyTransformation> | |||
14037 | nsresult DatabaseOperationBase::BindTransformedKeyRangeToStatement( | |||
14038 | const SerializedKeyRange& aKeyRange, mozIStorageStatement* const aStatement, | |||
14039 | const KeyTransformation& aKeyTransformation) { | |||
14040 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 14040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14041 | MOZ_ASSERT(aStatement)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aStatement)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aStatement))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aStatement", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStatement" ")"); do { *((volatile int*)__null) = 14041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14042 | ||||
14043 | QM_TRY(MOZ_TO_RESULT(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement,{auto tryResult3411 = (ToResult(MaybeBindKeyToStatement(aKeyRange .lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult3411 )::ok_type>); if ((__builtin_expect(!!(tryResult3411.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))" , tryResult3411.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14045, mozilla::dom::quota::Severity::Error); return tryResult3411 .propagateErr(); }} | |||
14044 | kStmtParamNameLowerKey,{auto tryResult3411 = (ToResult(MaybeBindKeyToStatement(aKeyRange .lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult3411 )::ok_type>); if ((__builtin_expect(!!(tryResult3411.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))" , tryResult3411.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14045, mozilla::dom::quota::Severity::Error); return tryResult3411 .propagateErr(); }} | |||
14045 | aKeyTransformation))){auto tryResult3411 = (ToResult(MaybeBindKeyToStatement(aKeyRange .lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult3411 )::ok_type>); if ((__builtin_expect(!!(tryResult3411.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))" , tryResult3411.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14045, mozilla::dom::quota::Severity::Error); return tryResult3411 .propagateErr(); }}; | |||
14046 | ||||
14047 | if (aKeyRange.isOnly()) { | |||
14048 | return NS_OK; | |||
14049 | } | |||
14050 | ||||
14051 | QM_TRY(MOZ_TO_RESULT(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement,{auto tryResult3412 = (ToResult(MaybeBindKeyToStatement(aKeyRange .upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult3412 )::ok_type>); if ((__builtin_expect(!!(tryResult3412.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))" , tryResult3412.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14053, mozilla::dom::quota::Severity::Error); return tryResult3412 .propagateErr(); }} | |||
14052 | kStmtParamNameUpperKey,{auto tryResult3412 = (ToResult(MaybeBindKeyToStatement(aKeyRange .upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult3412 )::ok_type>); if ((__builtin_expect(!!(tryResult3412.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))" , tryResult3412.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14053, mozilla::dom::quota::Severity::Error); return tryResult3412 .propagateErr(); }} | |||
14053 | aKeyTransformation))){auto tryResult3412 = (ToResult(MaybeBindKeyToStatement(aKeyRange .upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult3412 )::ok_type>); if ((__builtin_expect(!!(tryResult3412.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))" , tryResult3412.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14053, mozilla::dom::quota::Severity::Error); return tryResult3412 .propagateErr(); }}; | |||
14054 | ||||
14055 | return NS_OK; | |||
14056 | } | |||
14057 | ||||
14058 | // static | |||
14059 | nsresult DatabaseOperationBase::BindKeyRangeToStatement( | |||
14060 | const SerializedKeyRange& aKeyRange, | |||
14061 | mozIStorageStatement* const aStatement) { | |||
14062 | return BindTransformedKeyRangeToStatement( | |||
14063 | aKeyRange, aStatement, [](const Key& key) -> const auto& { return key; }); | |||
14064 | } | |||
14065 | ||||
14066 | // static | |||
14067 | nsresult DatabaseOperationBase::BindKeyRangeToStatement( | |||
14068 | const SerializedKeyRange& aKeyRange, mozIStorageStatement* const aStatement, | |||
14069 | const nsCString& aLocale) { | |||
14070 | MOZ_ASSERT(!aLocale.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aLocale.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aLocale.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aLocale.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14070); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aLocale.IsEmpty()" ")"); do { *((volatile int*)__null) = 14070; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14071 | ||||
14072 | return BindTransformedKeyRangeToStatement( | |||
14073 | aKeyRange, aStatement, | |||
14074 | [&aLocale](const Key& key) { return key.ToLocaleAwareKey(aLocale); }); | |||
14075 | } | |||
14076 | ||||
14077 | // static | |||
14078 | void CommonOpenOpHelperBase::AppendConditionClause( | |||
14079 | const nsACString& aColumnName, const nsACString& aStatementParameterName, | |||
14080 | bool aLessThan, bool aEquals, nsCString& aResult) { | |||
14081 | aResult += " AND "_ns + aColumnName + " "_ns; | |||
14082 | ||||
14083 | if (aLessThan) { | |||
14084 | aResult.Append('<'); | |||
14085 | } else { | |||
14086 | aResult.Append('>'); | |||
14087 | } | |||
14088 | ||||
14089 | if (aEquals) { | |||
14090 | aResult.Append('='); | |||
14091 | } | |||
14092 | ||||
14093 | aResult += " :"_ns + aStatementParameterName; | |||
14094 | } | |||
14095 | ||||
14096 | // static | |||
14097 | Result<IndexDataValuesAutoArray, nsresult> | |||
14098 | DatabaseOperationBase::IndexDataValuesFromUpdateInfos( | |||
14099 | const nsTArray<IndexUpdateInfo>& aUpdateInfos, | |||
14100 | const UniqueIndexTable& aUniqueIndexTable) { | |||
14101 | MOZ_ASSERT_IF(!aUpdateInfos.IsEmpty(), aUniqueIndexTable.Count())do { if (!aUpdateInfos.IsEmpty()) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(aUniqueIndexTable .Count())>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(aUniqueIndexTable.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aUniqueIndexTable.Count()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14101); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aUniqueIndexTable.Count()" ")"); do { *((volatile int*)__null) = 14101; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
14102 | ||||
14103 | AUTO_PROFILER_LABEL("DatabaseOperationBase::IndexDataValuesFromUpdateInfos",mozilla::AutoProfilerLabel raiiObject14104( "DatabaseOperationBase::IndexDataValuesFromUpdateInfos" , nullptr, JS::ProfilingCategoryPair::DOM) | |||
14104 | DOM)mozilla::AutoProfilerLabel raiiObject14104( "DatabaseOperationBase::IndexDataValuesFromUpdateInfos" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
14105 | ||||
14106 | // XXX We could use TransformIntoNewArray here if it allowed to specify that | |||
14107 | // an AutoArray should be created. | |||
14108 | IndexDataValuesAutoArray indexValues; | |||
14109 | ||||
14110 | if (NS_WARN_IF(!indexValues.SetCapacity(aUpdateInfos.Length(), fallible))NS_warn_if_impl(!indexValues.SetCapacity(aUpdateInfos.Length( ), fallible), "!indexValues.SetCapacity(aUpdateInfos.Length(), fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14110)) { | |||
14111 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14111, "UnknownErr"); | |||
14112 | return Err(NS_ERROR_OUT_OF_MEMORY); | |||
14113 | } | |||
14114 | ||||
14115 | std::transform(aUpdateInfos.cbegin(), aUpdateInfos.cend(), | |||
14116 | MakeBackInserter(indexValues), | |||
14117 | [&aUniqueIndexTable](const IndexUpdateInfo& updateInfo) { | |||
14118 | const IndexOrObjectStoreId& indexId = updateInfo.indexId(); | |||
14119 | ||||
14120 | bool unique = false; | |||
14121 | MOZ_ALWAYS_TRUE(aUniqueIndexTable.Get(indexId, &unique))do { if ((__builtin_expect(!!(aUniqueIndexTable.Get(indexId, & unique)), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "aUniqueIndexTable.Get(indexId, &unique)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14121); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "aUniqueIndexTable.Get(indexId, &unique)" ")"); do { *((volatile int*)__null) = 14121; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } } while (false ); | |||
14122 | ||||
14123 | return IndexDataValue{indexId, unique, updateInfo.value(), | |||
14124 | updateInfo.localizedValue()}; | |||
14125 | }); | |||
14126 | indexValues.Sort(); | |||
14127 | ||||
14128 | return indexValues; | |||
14129 | } | |||
14130 | ||||
14131 | // static | |||
14132 | nsresult DatabaseOperationBase::InsertIndexTableRows( | |||
14133 | DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId, | |||
14134 | const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues) { | |||
14135 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14135); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 14135; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14136 | aConnection->AssertIsOnConnectionThread(); | |||
14137 | MOZ_ASSERT(!aObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aObjectStoreKey.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aObjectStoreKey.IsUnset())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aObjectStoreKey.IsUnset()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14137); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()" ")"); do { *((volatile int*)__null) = 14137; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14138 | ||||
14139 | AUTO_PROFILER_LABEL("DatabaseOperationBase::InsertIndexTableRows", DOM)mozilla::AutoProfilerLabel raiiObject14139( "DatabaseOperationBase::InsertIndexTableRows" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
14140 | ||||
14141 | const uint32_t count = aIndexValues.Length(); | |||
14142 | if (!count) { | |||
14143 | return NS_OK; | |||
14144 | } | |||
14145 | ||||
14146 | auto insertUniqueStmt = DatabaseConnection::LazyStatement{ | |||
14147 | *aConnection, | |||
14148 | "INSERT INTO unique_index_data " | |||
14149 | "(index_id, value, object_store_id, " | |||
14150 | "object_data_key, value_locale) " | |||
14151 | "VALUES (:"_ns + | |||
14152 | kStmtParamNameIndexId + ", :"_ns + kStmtParamNameValue + ", :"_ns + | |||
14153 | kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameObjectDataKey + | |||
14154 | ", :"_ns + kStmtParamNameValueLocale + ");"_ns}; | |||
14155 | auto insertStmt = DatabaseConnection::LazyStatement{ | |||
14156 | *aConnection, | |||
14157 | "INSERT OR IGNORE INTO index_data " | |||
14158 | "(index_id, value, object_data_key, " | |||
14159 | "object_store_id, value_locale) " | |||
14160 | "VALUES (:"_ns + | |||
14161 | kStmtParamNameIndexId + ", :"_ns + kStmtParamNameValue + ", :"_ns + | |||
14162 | kStmtParamNameObjectDataKey + ", :"_ns + kStmtParamNameObjectStoreId + | |||
14163 | ", :"_ns + kStmtParamNameValueLocale + ");"_ns}; | |||
14164 | ||||
14165 | for (uint32_t index = 0; index < count; index++) { | |||
14166 | const IndexDataValue& info = aIndexValues[index]; | |||
14167 | ||||
14168 | auto& stmt = info.mUnique ? insertUniqueStmt : insertStmt; | |||
14169 | ||||
14170 | QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult3413 = (stmt.Borrow()); if ((__builtin_expect(! !(tryResult3413.isErr()), 0))) { mozilla::dom::quota::HandleError ("stmt.Borrow()", tryResult3413.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult3413 .propagateErr(); } const auto& borrowedStmt = tryResult3413 .inspect();; | |||
14171 | ||||
14172 | QM_TRY(MOZ_TO_RESULT({auto tryResult3414 = (ToResult(borrowedStmt->BindInt64ByName (kStmtParamNameIndexId, info.mIndexId))); static_assert(std:: is_empty_v<typename decltype(tryResult3414)::ok_type>); if ((__builtin_expect(!!(tryResult3414.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))" , tryResult3414.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14173, mozilla::dom::quota::Severity::Error); return tryResult3414 .propagateErr(); }} | |||
14173 | borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))){auto tryResult3414 = (ToResult(borrowedStmt->BindInt64ByName (kStmtParamNameIndexId, info.mIndexId))); static_assert(std:: is_empty_v<typename decltype(tryResult3414)::ok_type>); if ((__builtin_expect(!!(tryResult3414.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))" , tryResult3414.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14173, mozilla::dom::quota::Severity::Error); return tryResult3414 .propagateErr(); }}; | |||
14174 | QM_TRY(MOZ_TO_RESULT({auto tryResult3415 = (ToResult(info.mPosition.BindToStatement (&*borrowedStmt, kStmtParamNameValue))); static_assert(std ::is_empty_v<typename decltype(tryResult3415)::ok_type> ); if ((__builtin_expect(!!(tryResult3415.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))" , tryResult3415.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14175, mozilla::dom::quota::Severity::Error); return tryResult3415 .propagateErr(); }} | |||
14175 | info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))){auto tryResult3415 = (ToResult(info.mPosition.BindToStatement (&*borrowedStmt, kStmtParamNameValue))); static_assert(std ::is_empty_v<typename decltype(tryResult3415)::ok_type> ); if ((__builtin_expect(!!(tryResult3415.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))" , tryResult3415.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14175, mozilla::dom::quota::Severity::Error); return tryResult3415 .propagateErr(); }}; | |||
14176 | QM_TRY(MOZ_TO_RESULT(info.mLocaleAwarePosition.BindToStatement({auto tryResult3416 = (ToResult(info.mLocaleAwarePosition.BindToStatement ( &*borrowedStmt, kStmtParamNameValueLocale))); static_assert (std::is_empty_v<typename decltype(tryResult3416)::ok_type >); if ((__builtin_expect(!!(tryResult3416.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(info.mLocaleAwarePosition.BindToStatement( &*borrowedStmt, kStmtParamNameValueLocale))" , tryResult3416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14177, mozilla::dom::quota::Severity::Error); return tryResult3416 .propagateErr(); }} | |||
14177 | &*borrowedStmt, kStmtParamNameValueLocale))){auto tryResult3416 = (ToResult(info.mLocaleAwarePosition.BindToStatement ( &*borrowedStmt, kStmtParamNameValueLocale))); static_assert (std::is_empty_v<typename decltype(tryResult3416)::ok_type >); if ((__builtin_expect(!!(tryResult3416.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(info.mLocaleAwarePosition.BindToStatement( &*borrowedStmt, kStmtParamNameValueLocale))" , tryResult3416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14177, mozilla::dom::quota::Severity::Error); return tryResult3416 .propagateErr(); }}; | |||
14178 | QM_TRY(MOZ_TO_RESULT(borrowedStmt->BindInt64ByName({auto tryResult3417 = (ToResult(borrowedStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3417)::ok_type >); if ((__builtin_expect(!!(tryResult3417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14179, mozilla::dom::quota::Severity::Error); return tryResult3417 .propagateErr(); }} | |||
14179 | kStmtParamNameObjectStoreId, aObjectStoreId))){auto tryResult3417 = (ToResult(borrowedStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3417)::ok_type >); if ((__builtin_expect(!!(tryResult3417.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3417.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14179, mozilla::dom::quota::Severity::Error); return tryResult3417 .propagateErr(); }}; | |||
14180 | QM_TRY(MOZ_TO_RESULT(aObjectStoreKey.BindToStatement({auto tryResult3418 = (ToResult(aObjectStoreKey.BindToStatement ( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3418)::ok_type >); if ((__builtin_expect(!!(tryResult3418.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))" , tryResult3418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14181, mozilla::dom::quota::Severity::Error); return tryResult3418 .propagateErr(); }} | |||
14181 | &*borrowedStmt, kStmtParamNameObjectDataKey))){auto tryResult3418 = (ToResult(aObjectStoreKey.BindToStatement ( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3418)::ok_type >); if ((__builtin_expect(!!(tryResult3418.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))" , tryResult3418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14181, mozilla::dom::quota::Severity::Error); return tryResult3418 .propagateErr(); }}; | |||
14182 | ||||
14183 | // QM_OR_ELSE_WARN_IF is not used here since we just want to log the | |||
14184 | // collision and not spam the reports. | |||
14185 | QM_TRY(QM_OR_ELSE_LOG_VERBOSE_IF({auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14186 | // Expression.{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14187 | MOZ_TO_RESULT(borrowedStmt->Execute()),{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14188 | // Predicate.{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14189 | ([&info, index, &aIndexValues](nsresult rv) {{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14190 | if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) {{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14191 | // If we're inserting multiple entries for the same unique{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14192 | // index, then we might have failed to insert due to{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14193 | // colliding with another entry for the same index in which{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14194 | // case we should ignore it.{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14195 | for (int32_t index2 = int32_t(index) - 1;{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14196 | index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId;{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14197 | --index2) {{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14198 | if (info.mPosition == aIndexValues[index2].mPosition) {{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14199 | // We found a key with the same value for the same{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14200 | // index. So we must have had a collision with a value{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14201 | // we just inserted.{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14202 | return true;{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14203 | }{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14204 | }{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14205 | }{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14206 | ||||
14207 | return false;{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14208 | }),{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14209 | // Fallback.{auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }} | |||
14210 | ErrToDefaultOk<>)){auto tryResult3419 = (mozilla::dom::quota::OrElseIf( (ToResult (borrowedStmt->Execute())), [&](const auto& firstRes ) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info. mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition ) { return true; } } } return false; })(firstRes); mozilla::dom ::quota::HandleError("\"ToResult(borrowedStmt->Execute())\"" , firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult3419)::ok_type>); if ((__builtin_expect(!!(tryResult3419 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14210, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult3419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14210, mozilla::dom::quota::Severity::Error); return tryResult3419 .propagateErr(); }}; | |||
14211 | } | |||
14212 | ||||
14213 | return NS_OK; | |||
14214 | } | |||
14215 | ||||
14216 | // static | |||
14217 | nsresult DatabaseOperationBase::DeleteIndexDataTableRows( | |||
14218 | DatabaseConnection* aConnection, const Key& aObjectStoreKey, | |||
14219 | const nsTArray<IndexDataValue>& aIndexValues) { | |||
14220 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14220); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 14220; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14221 | aConnection->AssertIsOnConnectionThread(); | |||
14222 | MOZ_ASSERT(!aObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aObjectStoreKey.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aObjectStoreKey.IsUnset())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aObjectStoreKey.IsUnset()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14222); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()" ")"); do { *((volatile int*)__null) = 14222; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14223 | ||||
14224 | AUTO_PROFILER_LABEL("DatabaseOperationBase::DeleteIndexDataTableRows", DOM)mozilla::AutoProfilerLabel raiiObject14224( "DatabaseOperationBase::DeleteIndexDataTableRows" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
14225 | ||||
14226 | const uint32_t count = aIndexValues.Length(); | |||
14227 | if (!count) { | |||
14228 | return NS_OK; | |||
14229 | } | |||
14230 | ||||
14231 | auto deleteUniqueStmt = DatabaseConnection::LazyStatement{ | |||
14232 | *aConnection, "DELETE FROM unique_index_data WHERE index_id = :"_ns + | |||
14233 | kStmtParamNameIndexId + " AND value = :"_ns + | |||
14234 | kStmtParamNameValue + ";"_ns}; | |||
14235 | auto deleteStmt = DatabaseConnection::LazyStatement{ | |||
14236 | *aConnection, "DELETE FROM index_data WHERE index_id = :"_ns + | |||
14237 | kStmtParamNameIndexId + " AND value = :"_ns + | |||
14238 | kStmtParamNameValue + " AND object_data_key = :"_ns + | |||
14239 | kStmtParamNameObjectDataKey + ";"_ns}; | |||
14240 | ||||
14241 | for (uint32_t index = 0; index < count; index++) { | |||
14242 | const IndexDataValue& indexValue = aIndexValues[index]; | |||
14243 | ||||
14244 | auto& stmt = indexValue.mUnique ? deleteUniqueStmt : deleteStmt; | |||
14245 | ||||
14246 | QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult3420 = (stmt.Borrow()); if ((__builtin_expect(! !(tryResult3420.isErr()), 0))) { mozilla::dom::quota::HandleError ("stmt.Borrow()", tryResult3420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14246, mozilla::dom::quota::Severity::Error); return tryResult3420 .propagateErr(); } const auto& borrowedStmt = tryResult3420 .inspect();; | |||
14247 | ||||
14248 | QM_TRY(MOZ_TO_RESULT(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult3421 = (ToResult(borrowedStmt->BindInt64ByName (kStmtParamNameIndexId, indexValue.mIndexId))); static_assert (std::is_empty_v<typename decltype(tryResult3421)::ok_type >); if ((__builtin_expect(!!(tryResult3421.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, indexValue.mIndexId))" , tryResult3421.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14249, mozilla::dom::quota::Severity::Error); return tryResult3421 .propagateErr(); }} | |||
14249 | indexValue.mIndexId))){auto tryResult3421 = (ToResult(borrowedStmt->BindInt64ByName (kStmtParamNameIndexId, indexValue.mIndexId))); static_assert (std::is_empty_v<typename decltype(tryResult3421)::ok_type >); if ((__builtin_expect(!!(tryResult3421.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, indexValue.mIndexId))" , tryResult3421.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14249, mozilla::dom::quota::Severity::Error); return tryResult3421 .propagateErr(); }}; | |||
14250 | ||||
14251 | QM_TRY(MOZ_TO_RESULT(indexValue.mPosition.BindToStatement({auto tryResult3422 = (ToResult(indexValue.mPosition.BindToStatement ( &*borrowedStmt, kStmtParamNameValue))); static_assert(std ::is_empty_v<typename decltype(tryResult3422)::ok_type> ); if ((__builtin_expect(!!(tryResult3422.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(indexValue.mPosition.BindToStatement( &*borrowedStmt, kStmtParamNameValue))" , tryResult3422.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14252, mozilla::dom::quota::Severity::Error); return tryResult3422 .propagateErr(); }} | |||
14252 | &*borrowedStmt, kStmtParamNameValue))){auto tryResult3422 = (ToResult(indexValue.mPosition.BindToStatement ( &*borrowedStmt, kStmtParamNameValue))); static_assert(std ::is_empty_v<typename decltype(tryResult3422)::ok_type> ); if ((__builtin_expect(!!(tryResult3422.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(indexValue.mPosition.BindToStatement( &*borrowedStmt, kStmtParamNameValue))" , tryResult3422.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14252, mozilla::dom::quota::Severity::Error); return tryResult3422 .propagateErr(); }}; | |||
14253 | ||||
14254 | if (!indexValue.mUnique) { | |||
14255 | QM_TRY(MOZ_TO_RESULT(aObjectStoreKey.BindToStatement({auto tryResult3423 = (ToResult(aObjectStoreKey.BindToStatement ( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3423)::ok_type >); if ((__builtin_expect(!!(tryResult3423.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))" , tryResult3423.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14256, mozilla::dom::quota::Severity::Error); return tryResult3423 .propagateErr(); }} | |||
14256 | &*borrowedStmt, kStmtParamNameObjectDataKey))){auto tryResult3423 = (ToResult(aObjectStoreKey.BindToStatement ( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3423)::ok_type >); if ((__builtin_expect(!!(tryResult3423.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))" , tryResult3423.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14256, mozilla::dom::quota::Severity::Error); return tryResult3423 .propagateErr(); }}; | |||
14257 | } | |||
14258 | ||||
14259 | QM_TRY(MOZ_TO_RESULT(borrowedStmt->Execute())){auto tryResult3424 = (ToResult(borrowedStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3424 )::ok_type>); if ((__builtin_expect(!!(tryResult3424.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->Execute())" , tryResult3424.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14259, mozilla::dom::quota::Severity::Error); return tryResult3424 .propagateErr(); }}; | |||
14260 | } | |||
14261 | ||||
14262 | return NS_OK; | |||
14263 | } | |||
14264 | ||||
14265 | // static | |||
14266 | nsresult DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes( | |||
14267 | DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId, | |||
14268 | const Maybe<SerializedKeyRange>& aKeyRange) { | |||
14269 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14269); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 14269; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14270 | aConnection->AssertIsOnConnectionThread(); | |||
14271 | MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aObjectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"); do { *((volatile int*)__null) = 14271; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14272 | ||||
14273 | #ifdef DEBUG1 | |||
14274 | { | |||
14275 | QM_TRY_INSPECT(const bool& hasIndexes,auto tryResult3425 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId )); if ((__builtin_expect(!!(tryResult3425.isErr()), 0))) { auto tryTempError = tryResult3425.unwrapErr(); mozilla::dom::quota ::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14277, mozilla::dom::quota::Severity::Error); [](const auto &) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14277); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")" ); do { *((volatile int*)__null) = 14277; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "ObjectStoreHasIndexes(*aConnection, aObjectStoreId)", tryTempError , Err(tryTempError)); } const bool& hasIndexes = tryResult3425 .inspect(); | |||
14276 | ObjectStoreHasIndexes(*aConnection, aObjectStoreId),auto tryResult3425 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId )); if ((__builtin_expect(!!(tryResult3425.isErr()), 0))) { auto tryTempError = tryResult3425.unwrapErr(); mozilla::dom::quota ::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14277, mozilla::dom::quota::Severity::Error); [](const auto &) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14277); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")" ); do { *((volatile int*)__null) = 14277; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "ObjectStoreHasIndexes(*aConnection, aObjectStoreId)", tryTempError , Err(tryTempError)); } const bool& hasIndexes = tryResult3425 .inspect(); | |||
14277 | QM_PROPAGATE, [](const auto&) { MOZ_ASSERT(false); })auto tryResult3425 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId )); if ((__builtin_expect(!!(tryResult3425.isErr()), 0))) { auto tryTempError = tryResult3425.unwrapErr(); mozilla::dom::quota ::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14277, mozilla::dom::quota::Severity::Error); [](const auto &) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14277); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")" ); do { *((volatile int*)__null) = 14277; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func , "ObjectStoreHasIndexes(*aConnection, aObjectStoreId)", tryTempError , Err(tryTempError)); } const bool& hasIndexes = tryResult3425 .inspect();; | |||
14278 | MOZ_ASSERT(hasIndexes,do { static_assert( mozilla::detail::AssertionConditionType< decltype(hasIndexes)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(hasIndexes))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("hasIndexes" " (" "Don't use this slow method if there are no indexes!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14279); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") (" "Don't use this slow method if there are no indexes!" ")" ); do { *((volatile int*)__null) = 14279; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
14279 | "Don't use this slow method if there are no indexes!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(hasIndexes)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(hasIndexes))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("hasIndexes" " (" "Don't use this slow method if there are no indexes!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14279); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") (" "Don't use this slow method if there are no indexes!" ")" ); do { *((volatile int*)__null) = 14279; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
14280 | } | |||
14281 | #endif | |||
14282 | ||||
14283 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject14284( "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes" , nullptr, JS::ProfilingCategoryPair::DOM) | |||
14284 | "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes", DOM)mozilla::AutoProfilerLabel raiiObject14284( "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
14285 | ||||
14286 | const bool singleRowOnly = aKeyRange.isSome() && aKeyRange.ref().isOnly(); | |||
14287 | ||||
14288 | const auto keyRangeClause = | |||
14289 | MaybeGetBindingClauseForKeyRange(aKeyRange, kColumnNameKey); | |||
14290 | ||||
14291 | Key objectStoreKey; | |||
14292 | QM_TRY_INSPECT(auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14293 | const auto& selectStmt,auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14294 | ([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange,auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14295 | &keyRangeClause]()auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14296 | -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> {auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14297 | if (singleRowOnly) {auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14298 | QM_TRY_UNWRAP(auto selectStmt,auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14299 | aConnection->BorrowCachedStatement(auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14300 | "SELECT index_data_values "auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14301 | "FROM object_data "auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14302 | "WHERE object_store_id = :"_ns +auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14303 | kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14304 | kStmtParamNameKey + ";"_ns));auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14305 | ||||
14306 | objectStoreKey = aKeyRange.ref().lower();auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14307 | ||||
14308 | QM_TRY(MOZ_TO_RESULT(auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14309 | objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey)));auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14310 | ||||
14311 | return selectStmt;auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14312 | }auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14313 | ||||
14314 | QM_TRY_UNWRAP(auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14315 | auto selectStmt,auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14316 | aConnection->BorrowCachedStatement(auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14317 | "SELECT index_data_values, "_ns + kColumnNameKey +auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14318 | " FROM object_data WHERE object_store_id = :"_ns +auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14319 | kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns));auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14320 | ||||
14321 | if (aKeyRange.isSome()) {auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14322 | QM_TRY(MOZ_TO_RESULT(auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14323 | BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt)));auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14324 | }auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14325 | ||||
14326 | return selectStmt;auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect(); | |||
14327 | }()))auto tryResult3430 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14304, mozilla::dom::quota::Severity::Error); return tryResult3426 .propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect (!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult3427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14309, mozilla::dom::quota::Severity::Error); return tryResult3427 .propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14319, mozilla::dom::quota::Severity::Error); return tryResult3428 .propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect (!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult3429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14323, mozilla::dom::quota::Severity::Error); return tryResult3429 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult3430.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult3426 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult3426.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult3426.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14304, mozilla::dom::quota::Severity::Error); return tryResult3426.propagateErr(); } auto selectStmt = tryResult3426.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult3427 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3427)::ok_type>); if ((__builtin_expect(!!(tryResult3427.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult3427.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14309, mozilla::dom::quota::Severity::Error); return tryResult3427.propagateErr(); }}; return selectStmt; } auto tryResult3428 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult3428.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult3428.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14319, mozilla::dom::quota::Severity::Error); return tryResult3428.propagateErr(); } auto selectStmt = tryResult3428.unwrap();; if (aKeyRange.isSome()) { {auto tryResult3429 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult3429)::ok_type>); if ((__builtin_expect(!!(tryResult3429.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult3429.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14323, mozilla::dom::quota::Severity::Error); return tryResult3429.propagateErr(); }}; } return selectStmt; }())" , tryResult3430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14327, mozilla::dom::quota::Severity::Error); return tryResult3430 .propagateErr(); } const auto& selectStmt = tryResult3430 .inspect();; | |||
14328 | ||||
14329 | QM_TRY(MOZ_TO_RESULT(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId,{auto tryResult3431 = (ToResult(selectStmt->BindInt64ByName (kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3431)::ok_type >); if ((__builtin_expect(!!(tryResult3431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3431.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14330, mozilla::dom::quota::Severity::Error); return tryResult3431 .propagateErr(); }} | |||
14330 | aObjectStoreId))){auto tryResult3431 = (ToResult(selectStmt->BindInt64ByName (kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3431)::ok_type >); if ((__builtin_expect(!!(tryResult3431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3431.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14330, mozilla::dom::quota::Severity::Error); return tryResult3431 .propagateErr(); }}; | |||
14331 | ||||
14332 | DebugOnly<uint32_t> resultCountDEBUG = 0; | |||
14333 | ||||
14334 | QM_TRY(CollectWhileHasResult({auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }} | |||
14335 | *selectStmt,{auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }} | |||
14336 | [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG,{auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }} | |||
14337 | indexValues = IndexDataValuesAutoArray{}]({auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }} | |||
14338 | auto& selectStmt) mutable -> Result<Ok, nsresult> {{auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }} | |||
14339 | if (!singleRowOnly) {{auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }} | |||
14340 | QM_TRY({auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }} | |||
14341 | MOZ_TO_RESULT(objectStoreKey.SetFromStatement(&selectStmt, 1)));{auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }} | |||
14342 | ||||
14343 | indexValues.ClearAndRetainStorage();{auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }} | |||
14344 | }{auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }} | |||
14345 | ||||
14346 | QM_TRY(MOZ_TO_RESULT({auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }} | |||
14347 | ReadCompressedIndexDataValues(selectStmt, 0, indexValues)));{auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }} | |||
14348 | QM_TRY(MOZ_TO_RESULT(DeleteIndexDataTableRows({auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }} | |||
14349 | aConnection, objectStoreKey, indexValues)));{auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }} | |||
14350 | ||||
14351 | resultCountDEBUG++;{auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }} | |||
14352 | ||||
14353 | return Ok{};{auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }} | |||
14354 | })){auto tryResult3435 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect (!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult3432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14341, mozilla::dom::quota::Severity::Error); return tryResult3432 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect (!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult3433.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14347, mozilla::dom::quota::Severity::Error); return tryResult3433 .propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult3434)::ok_type> ); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult3434.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14349, mozilla::dom::quota::Severity::Error); return tryResult3434 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3435)::ok_type >); if ((__builtin_expect(!!(tryResult3435.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult3432 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3432)::ok_type>); if ((__builtin_expect(!!(tryResult3432.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult3432.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14341, mozilla::dom::quota::Severity::Error); return tryResult3432.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult3433 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3433)::ok_type>); if ((__builtin_expect(!!(tryResult3433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult3433.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14347, mozilla::dom::quota::Severity::Error); return tryResult3433.propagateErr(); }}; {auto tryResult3434 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3434)::ok_type>); if ((__builtin_expect(!!(tryResult3434.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult3434.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14349, mozilla::dom::quota::Severity::Error); return tryResult3434.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult3435.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14354, mozilla::dom::quota::Severity::Error); return tryResult3435 .propagateErr(); }}; | |||
14355 | ||||
14356 | MOZ_ASSERT_IF(singleRowOnly, resultCountDEBUG <= 1)do { if (singleRowOnly) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(resultCountDEBUG <= 1 )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(resultCountDEBUG <= 1))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("resultCountDEBUG <= 1", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14356); AnnotateMozCrashReason("MOZ_ASSERT" "(" "resultCountDEBUG <= 1" ")"); do { *((volatile int*)__null) = 14356; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
14357 | ||||
14358 | QM_TRY_UNWRAP(auto tryResult3436 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3436 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3436.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14362, mozilla::dom::quota::Severity::Error); return tryResult3436 .propagateErr(); } auto deleteManyStmt = tryResult3436.unwrap (); | |||
14359 | auto deleteManyStmt,auto tryResult3436 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3436 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3436.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14362, mozilla::dom::quota::Severity::Error); return tryResult3436 .propagateErr(); } auto deleteManyStmt = tryResult3436.unwrap (); | |||
14360 | aConnection->BorrowCachedStatement(auto tryResult3436 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3436 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3436.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14362, mozilla::dom::quota::Severity::Error); return tryResult3436 .propagateErr(); } auto deleteManyStmt = tryResult3436.unwrap (); | |||
14361 | "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns +auto tryResult3436 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3436 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3436.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14362, mozilla::dom::quota::Severity::Error); return tryResult3436 .propagateErr(); } auto deleteManyStmt = tryResult3436.unwrap (); | |||
14362 | kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns))auto tryResult3436 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult3436 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult3436.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14362, mozilla::dom::quota::Severity::Error); return tryResult3436 .propagateErr(); } auto deleteManyStmt = tryResult3436.unwrap ();; | |||
14363 | ||||
14364 | QM_TRY(MOZ_TO_RESULT(deleteManyStmt->BindInt64ByName({auto tryResult3437 = (ToResult(deleteManyStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3437)::ok_type >); if ((__builtin_expect(!!(tryResult3437.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3437.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14365, mozilla::dom::quota::Severity::Error); return tryResult3437 .propagateErr(); }} | |||
14365 | kStmtParamNameObjectStoreId, aObjectStoreId))){auto tryResult3437 = (ToResult(deleteManyStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3437)::ok_type >); if ((__builtin_expect(!!(tryResult3437.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3437.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14365, mozilla::dom::quota::Severity::Error); return tryResult3437 .propagateErr(); }}; | |||
14366 | ||||
14367 | if (aKeyRange.isSome()) { | |||
14368 | QM_TRY(MOZ_TO_RESULT({auto tryResult3438 = (ToResult(BindKeyRangeToStatement(aKeyRange .ref(), &*deleteManyStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3438)::ok_type>); if ((__builtin_expect (!!(tryResult3438.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))" , tryResult3438.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14369, mozilla::dom::quota::Severity::Error); return tryResult3438 .propagateErr(); }} | |||
14369 | BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))){auto tryResult3438 = (ToResult(BindKeyRangeToStatement(aKeyRange .ref(), &*deleteManyStmt))); static_assert(std::is_empty_v <typename decltype(tryResult3438)::ok_type>); if ((__builtin_expect (!!(tryResult3438.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))" , tryResult3438.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14369, mozilla::dom::quota::Severity::Error); return tryResult3438 .propagateErr(); }}; | |||
14370 | } | |||
14371 | ||||
14372 | QM_TRY(MOZ_TO_RESULT(deleteManyStmt->Execute())){auto tryResult3439 = (ToResult(deleteManyStmt->Execute()) ); static_assert(std::is_empty_v<typename decltype(tryResult3439 )::ok_type>); if ((__builtin_expect(!!(tryResult3439.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->Execute())" , tryResult3439.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14372, mozilla::dom::quota::Severity::Error); return tryResult3439 .propagateErr(); }}; | |||
14373 | ||||
14374 | return NS_OK; | |||
14375 | } | |||
14376 | ||||
14377 | // static | |||
14378 | nsresult DatabaseOperationBase::UpdateIndexValues( | |||
14379 | DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId, | |||
14380 | const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues) { | |||
14381 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14381); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 14381; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14382 | aConnection->AssertIsOnConnectionThread(); | |||
14383 | MOZ_ASSERT(!aObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aObjectStoreKey.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aObjectStoreKey.IsUnset())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aObjectStoreKey.IsUnset()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14383); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()" ")"); do { *((volatile int*)__null) = 14383; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14384 | ||||
14385 | AUTO_PROFILER_LABEL("DatabaseOperationBase::UpdateIndexValues", DOM)mozilla::AutoProfilerLabel raiiObject14385( "DatabaseOperationBase::UpdateIndexValues" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
14386 | ||||
14387 | QM_TRY_UNWRAP((auto [indexDataValues, indexDataValuesLength]),auto tryResult3440 = (MakeCompressedIndexDataValues(aIndexValues )); if ((__builtin_expect(!!(tryResult3440.isErr()), 0))) { mozilla ::dom::quota::HandleError("MakeCompressedIndexDataValues(aIndexValues)" , tryResult3440.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14388, mozilla::dom::quota::Severity::Error); return tryResult3440 .propagateErr(); } auto [indexDataValues, indexDataValuesLength ] = tryResult3440.unwrap(); | |||
14388 | MakeCompressedIndexDataValues(aIndexValues))auto tryResult3440 = (MakeCompressedIndexDataValues(aIndexValues )); if ((__builtin_expect(!!(tryResult3440.isErr()), 0))) { mozilla ::dom::quota::HandleError("MakeCompressedIndexDataValues(aIndexValues)" , tryResult3440.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14388, mozilla::dom::quota::Severity::Error); return tryResult3440 .propagateErr(); } auto [indexDataValues, indexDataValuesLength ] = tryResult3440.unwrap();; | |||
14389 | ||||
14390 | MOZ_ASSERT(!indexDataValuesLength == !(indexDataValues.get()))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!indexDataValuesLength == !(indexDataValues.get()))> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!indexDataValuesLength == !(indexDataValues.get()))) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!indexDataValuesLength == !(indexDataValues.get())" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14390); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexDataValuesLength == !(indexDataValues.get())" ")"); do { *((volatile int*)__null) = 14390; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14391 | ||||
14392 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14393 | "UPDATE object_data SET index_data_values = :"_ns +{auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14394 | kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns +{auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14395 | kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey +{auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14396 | ";"_ns,{auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14397 | [&indexDataValues = indexDataValues,{auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14398 | indexDataValuesLength = indexDataValuesLength, aObjectStoreId,{auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14399 | &aObjectStoreKey]({auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14400 | mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> {{auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14401 | QM_TRY(MOZ_TO_RESULT({auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14402 | indexDataValues{auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14403 | ? updateStmt.BindAdoptedBlobByName({auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14404 | kStmtParamNameIndexDataValues, indexDataValues.release(),{auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14405 | indexDataValuesLength){auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14406 | : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)));{auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14407 | ||||
14408 | QM_TRY(MOZ_TO_RESULT(updateStmt.BindInt64ByName({auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14409 | kStmtParamNameObjectStoreId, aObjectStoreId)));{auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14410 | ||||
14411 | QM_TRY(MOZ_TO_RESULT({auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14412 | aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey)));{auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14413 | ||||
14414 | return Ok{};{auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }} | |||
14415 | }))){auto tryResult3444 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength , aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement & updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult3441 )::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult3441.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14406, mozilla::dom::quota::Severity::Error); return tryResult3441 .propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3442 )::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14409, mozilla::dom::quota::Severity::Error); return tryResult3442 .propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3443)::ok_type >); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult3443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14412, mozilla::dom::quota::Severity::Error); return tryResult3443 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3444)::ok_type>); if ((__builtin_expect (!!(tryResult3444.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult3441 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult3441)::ok_type>); if ((__builtin_expect(!!(tryResult3441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult3441.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14406, mozilla::dom::quota::Severity::Error); return tryResult3441.propagateErr(); }}; {auto tryResult3442 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3442)::ok_type>); if ((__builtin_expect(!!(tryResult3442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3442.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14409, mozilla::dom::quota::Severity::Error); return tryResult3442.propagateErr(); }}; {auto tryResult3443 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3443)::ok_type>); if ((__builtin_expect(!!(tryResult3443.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult3443.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14412, mozilla::dom::quota::Severity::Error); return tryResult3443.propagateErr(); }}; return Ok{}; }))" , tryResult3444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14415, mozilla::dom::quota::Severity::Error); return tryResult3444 .propagateErr(); }}; | |||
14416 | ||||
14417 | return NS_OK; | |||
14418 | } | |||
14419 | ||||
14420 | // static | |||
14421 | Result<bool, nsresult> DatabaseOperationBase::ObjectStoreHasIndexes( | |||
14422 | DatabaseConnection& aConnection, | |||
14423 | const IndexOrObjectStoreId aObjectStoreId) { | |||
14424 | aConnection.AssertIsOnConnectionThread(); | |||
14425 | MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aObjectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14425); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"); do { *((volatile int*)__null) = 14425; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14426 | ||||
14427 | QM_TRY_RETURN(aConnection{auto tryResult3446 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect (!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3445.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14435, mozilla::dom::quota::Severity::Error); return tryResult3445 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3446.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect(!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3445.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14435, mozilla::dom::quota::Severity::Error); return tryResult3445.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14438, mozilla::dom::quota::Severity::Error); } return tryResult3446 ;} | |||
14428 | .BorrowAndExecuteSingleStepStatement({auto tryResult3446 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect (!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3445.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14435, mozilla::dom::quota::Severity::Error); return tryResult3445 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3446.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect(!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3445.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14435, mozilla::dom::quota::Severity::Error); return tryResult3445.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14438, mozilla::dom::quota::Severity::Error); } return tryResult3446 ;} | |||
14429 | "SELECT id "{auto tryResult3446 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect (!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3445.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14435, mozilla::dom::quota::Severity::Error); return tryResult3445 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3446.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect(!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3445.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14435, mozilla::dom::quota::Severity::Error); return tryResult3445.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14438, mozilla::dom::quota::Severity::Error); } return tryResult3446 ;} | |||
14430 | "FROM object_store_index "{auto tryResult3446 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect (!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3445.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14435, mozilla::dom::quota::Severity::Error); return tryResult3445 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3446.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect(!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3445.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14435, mozilla::dom::quota::Severity::Error); return tryResult3445.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14438, mozilla::dom::quota::Severity::Error); } return tryResult3446 ;} | |||
14431 | "WHERE object_store_id = :"_ns +{auto tryResult3446 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect (!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3445.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14435, mozilla::dom::quota::Severity::Error); return tryResult3445 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3446.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect(!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3445.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14435, mozilla::dom::quota::Severity::Error); return tryResult3445.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14438, mozilla::dom::quota::Severity::Error); } return tryResult3446 ;} | |||
14432 | kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns,{auto tryResult3446 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect (!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3445.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14435, mozilla::dom::quota::Severity::Error); return tryResult3445 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3446.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect(!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3445.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14435, mozilla::dom::quota::Severity::Error); return tryResult3445.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14438, mozilla::dom::quota::Severity::Error); } return tryResult3446 ;} | |||
14433 | [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult3446 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect (!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3445.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14435, mozilla::dom::quota::Severity::Error); return tryResult3445 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3446.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect(!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3445.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14435, mozilla::dom::quota::Severity::Error); return tryResult3445.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14438, mozilla::dom::quota::Severity::Error); } return tryResult3446 ;} | |||
14434 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName({auto tryResult3446 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect (!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3445.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14435, mozilla::dom::quota::Severity::Error); return tryResult3445 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3446.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect(!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3445.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14435, mozilla::dom::quota::Severity::Error); return tryResult3445.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14438, mozilla::dom::quota::Severity::Error); } return tryResult3446 ;} | |||
14435 | kStmtParamNameObjectStoreId, aObjectStoreId)));{auto tryResult3446 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect (!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3445.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14435, mozilla::dom::quota::Severity::Error); return tryResult3445 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3446.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect(!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3445.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14435, mozilla::dom::quota::Severity::Error); return tryResult3445.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14438, mozilla::dom::quota::Severity::Error); } return tryResult3446 ;} | |||
14436 | return Ok{};{auto tryResult3446 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect (!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3445.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14435, mozilla::dom::quota::Severity::Error); return tryResult3445 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3446.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect(!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3445.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14435, mozilla::dom::quota::Severity::Error); return tryResult3445.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14438, mozilla::dom::quota::Severity::Error); } return tryResult3446 ;} | |||
14437 | }){auto tryResult3446 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect (!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3445.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14435, mozilla::dom::quota::Severity::Error); return tryResult3445 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3446.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect(!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3445.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14435, mozilla::dom::quota::Severity::Error); return tryResult3445.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14438, mozilla::dom::quota::Severity::Error); } return tryResult3446 ;} | |||
14438 | .map(IsSome)){auto tryResult3446 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect (!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult3445.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14435, mozilla::dom::quota::Severity::Error); return tryResult3445 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3446.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3445 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3445)::ok_type>); if ((__builtin_expect(!!(tryResult3445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult3445.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14435, mozilla::dom::quota::Severity::Error); return tryResult3445.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult3446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14438, mozilla::dom::quota::Severity::Error); } return tryResult3446 ;}; | |||
14439 | } | |||
14440 | ||||
14441 | NS_IMPL_ISUPPORTS_INHERITED(DatabaseOperationBase, Runnable,nsresult DatabaseOperationBase::QueryInterface(const nsIID& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak (NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!" , "aInstancePtr", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14442); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE_INHERITED" ); static const QITableEntry table[] = { {&mozilla::detail ::kImplementedIID<DatabaseOperationBase, mozIStorageProgressHandler >, int32_t( reinterpret_cast<char*>(static_cast<mozIStorageProgressHandler *>((DatabaseOperationBase*)0x1000)) - reinterpret_cast< char*>((DatabaseOperationBase*)0x1000))}, { nullptr, 0 } } ; static_assert((sizeof(table) / sizeof(table[0])) > 1, "need at least 1 interface" ); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID , aInstancePtr, table); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl (rv)), 1)))) return rv; return Runnable::QueryInterface(aIID, aInstancePtr); } MozExternalRefCountType DatabaseOperationBase ::AddRef(void) { static_assert(!std::is_destructible_v<DatabaseOperationBase >, "Reference-counted class " "DatabaseOperationBase" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = Runnable ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <DatabaseOperationBase>) { NS_LogAddRef((this), (r), ("DatabaseOperationBase" ), (uint32_t)(sizeof(*this))); } return r; } MozExternalRefCountType DatabaseOperationBase::Release(void) { nsrefcnt r = Runnable ::Release(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <DatabaseOperationBase>) { NS_LogRelease((this), (r), ( "DatabaseOperationBase")); } return r; } | |||
14442 | mozIStorageProgressHandler)nsresult DatabaseOperationBase::QueryInterface(const nsIID& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak (NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!" , "aInstancePtr", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14442); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE_INHERITED" ); static const QITableEntry table[] = { {&mozilla::detail ::kImplementedIID<DatabaseOperationBase, mozIStorageProgressHandler >, int32_t( reinterpret_cast<char*>(static_cast<mozIStorageProgressHandler *>((DatabaseOperationBase*)0x1000)) - reinterpret_cast< char*>((DatabaseOperationBase*)0x1000))}, { nullptr, 0 } } ; static_assert((sizeof(table) / sizeof(table[0])) > 1, "need at least 1 interface" ); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID , aInstancePtr, table); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl (rv)), 1)))) return rv; return Runnable::QueryInterface(aIID, aInstancePtr); } MozExternalRefCountType DatabaseOperationBase ::AddRef(void) { static_assert(!std::is_destructible_v<DatabaseOperationBase >, "Reference-counted class " "DatabaseOperationBase" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = Runnable ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <DatabaseOperationBase>) { NS_LogAddRef((this), (r), ("DatabaseOperationBase" ), (uint32_t)(sizeof(*this))); } return r; } MozExternalRefCountType DatabaseOperationBase::Release(void) { nsrefcnt r = Runnable ::Release(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <DatabaseOperationBase>) { NS_LogRelease((this), (r), ( "DatabaseOperationBase")); } return r; } | |||
14443 | ||||
14444 | NS_IMETHODIMPnsresult | |||
14445 | DatabaseOperationBase::OnProgress(mozIStorageConnection* aConnection, | |||
14446 | bool* _retval) { | |||
14447 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14447); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 14447; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14448 | MOZ_ASSERT(_retval)do { static_assert( mozilla::detail::AssertionConditionType< decltype(_retval)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(_retval))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("_retval", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14448); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")" ); do { *((volatile int*)__null) = 14448; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
14449 | ||||
14450 | // This is intentionally racy. | |||
14451 | *_retval = QuotaClient::IsShuttingDownOnNonBackgroundThread() || | |||
14452 | !OperationMayProceed(); | |||
14453 | return NS_OK; | |||
14454 | } | |||
14455 | ||||
14456 | DatabaseOperationBase::AutoSetProgressHandler::AutoSetProgressHandler() | |||
14457 | : mConnection(Nothing()) | |||
14458 | #ifdef DEBUG1 | |||
14459 | , | |||
14460 | mDEBUGDatabaseOp(nullptr) | |||
14461 | #endif | |||
14462 | { | |||
14463 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14463); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 14463; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14464 | } | |||
14465 | ||||
14466 | DatabaseOperationBase::AutoSetProgressHandler::~AutoSetProgressHandler() { | |||
14467 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 14467; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14468 | ||||
14469 | if (mConnection) { | |||
14470 | Unregister(); | |||
14471 | } | |||
14472 | } | |||
14473 | ||||
14474 | nsresult DatabaseOperationBase::AutoSetProgressHandler::Register( | |||
14475 | mozIStorageConnection& aConnection, DatabaseOperationBase* aDatabaseOp) { | |||
14476 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14476); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 14476; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14477 | MOZ_ASSERT(aDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseOp", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14477); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseOp" ")"); do { *((volatile int*)__null) = 14477; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14478 | MOZ_ASSERT(!mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14478); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection" ")"); do { *((volatile int*)__null) = 14478; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14479 | ||||
14480 | QM_TRY_UNWRAP(auto tryResult3447 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::SetProgressHandler ), (aConnection), kStorageProgressGranularity, aDatabaseOp)); if ((__builtin_expect(!!(tryResult3447.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)" , tryResult3447.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14484, mozilla::dom::quota::Severity::Error); return tryResult3447 .propagateErr(); } const DebugOnly oldProgressHandler = tryResult3447 .unwrap(); | |||
14481 | const DebugOnly oldProgressHandler,auto tryResult3447 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::SetProgressHandler ), (aConnection), kStorageProgressGranularity, aDatabaseOp)); if ((__builtin_expect(!!(tryResult3447.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)" , tryResult3447.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14484, mozilla::dom::quota::Severity::Error); return tryResult3447 .propagateErr(); } const DebugOnly oldProgressHandler = tryResult3447 .unwrap(); | |||
14482 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3447 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::SetProgressHandler ), (aConnection), kStorageProgressGranularity, aDatabaseOp)); if ((__builtin_expect(!!(tryResult3447.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)" , tryResult3447.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14484, mozilla::dom::quota::Severity::Error); return tryResult3447 .propagateErr(); } const DebugOnly oldProgressHandler = tryResult3447 .unwrap(); | |||
14483 | nsCOMPtr<mozIStorageProgressHandler>, aConnection, SetProgressHandler,auto tryResult3447 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::SetProgressHandler ), (aConnection), kStorageProgressGranularity, aDatabaseOp)); if ((__builtin_expect(!!(tryResult3447.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)" , tryResult3447.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14484, mozilla::dom::quota::Severity::Error); return tryResult3447 .propagateErr(); } const DebugOnly oldProgressHandler = tryResult3447 .unwrap(); | |||
14484 | kStorageProgressGranularity, aDatabaseOp))auto tryResult3447 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::SetProgressHandler ), (aConnection), kStorageProgressGranularity, aDatabaseOp)); if ((__builtin_expect(!!(tryResult3447.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)" , tryResult3447.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14484, mozilla::dom::quota::Severity::Error); return tryResult3447 .propagateErr(); } const DebugOnly oldProgressHandler = tryResult3447 .unwrap();; | |||
14485 | ||||
14486 | MOZ_ASSERT(!oldProgressHandler.inspect())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!oldProgressHandler.inspect())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!oldProgressHandler.inspect( )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!oldProgressHandler.inspect()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14486); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!oldProgressHandler.inspect()" ")"); do { *((volatile int*)__null) = 14486; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14487 | ||||
14488 | mConnection = SomeRef(aConnection); | |||
14489 | #ifdef DEBUG1 | |||
14490 | mDEBUGDatabaseOp = aDatabaseOp; | |||
14491 | #endif | |||
14492 | ||||
14493 | return NS_OK; | |||
14494 | } | |||
14495 | ||||
14496 | void DatabaseOperationBase::AutoSetProgressHandler::Unregister() { | |||
14497 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 14497; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14498 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14498); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { *((volatile int*)__null) = 14498; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14499 | ||||
14500 | nsCOMPtr<mozIStorageProgressHandler> oldHandler; | |||
14501 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler )))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14502); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))" ")"); do { *((volatile int*)__null) = 14502; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
14502 | mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler )))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14502); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))" ")"); do { *((volatile int*)__null) = 14502; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
14503 | MOZ_ASSERT(oldHandler == mDEBUGDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(oldHandler == mDEBUGDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(oldHandler == mDEBUGDatabaseOp ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "oldHandler == mDEBUGDatabaseOp", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14503); AnnotateMozCrashReason("MOZ_ASSERT" "(" "oldHandler == mDEBUGDatabaseOp" ")"); do { *((volatile int*)__null) = 14503; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14504 | ||||
14505 | mConnection = Nothing(); | |||
14506 | } | |||
14507 | ||||
14508 | FactoryOp::FactoryOp(SafeRefPtr<Factory> aFactory, | |||
14509 | const Maybe<ContentParentId>& aContentParentId, | |||
14510 | const PersistenceType aPersistenceType, | |||
14511 | const PrincipalInfo& aPrincipalInfo, | |||
14512 | const Maybe<nsString>& aDatabaseName, bool aDeleting) | |||
14513 | : DatabaseOperationBase(aFactory->GetLoggingInfo()->Id(), | |||
14514 | aFactory->GetLoggingInfo()->NextRequestSN()), | |||
14515 | mFactory(std::move(aFactory)), | |||
14516 | mContentParentId(aContentParentId), | |||
14517 | mPrincipalInfo(aPrincipalInfo), | |||
14518 | mDatabaseName(aDatabaseName), | |||
14519 | mDirectoryLockId(-1), | |||
14520 | mPersistenceType(aPersistenceType), | |||
14521 | mState(State::Initial), | |||
14522 | mWaitingForPermissionRetry(false), | |||
14523 | mEnforcingQuota(true), | |||
14524 | mDeleting(aDeleting) { | |||
14525 | AssertIsOnBackgroundThread(); | |||
14526 | MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFactory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFactory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")" ); do { *((volatile int*)__null) = 14526; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
14527 | MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 14527; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14528 | } | |||
14529 | ||||
14530 | nsresult FactoryOp::DispatchThisAfterProcessingCurrentEvent( | |||
14531 | nsCOMPtr<nsIEventTarget> aEventTarget) { | |||
14532 | QM_TRY(MOZ_TO_RESULT(RunAfterProcessingCurrentEvent({auto tryResult3449 = (ToResult(RunAfterProcessingCurrentEvent ( [eventTarget = std::move(aEventTarget), self = RefPtr(this) ]() mutable { {auto tryResult3448 = (ToResult(eventTarget-> Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3448)::ok_type >); if ((__builtin_expect(!!(tryResult3448.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))" , tryResult3448.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14535, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert (std::is_empty_v<typename decltype(tryResult3449)::ok_type >); if ((__builtin_expect(!!(tryResult3449.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult3448 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult3448)::ok_type>); if ((__builtin_expect(!!(tryResult3448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult3448.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14535, mozilla::dom::quota::Severity::Warning); }}; }))" , tryResult3449.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14536, mozilla::dom::quota::Severity::Error); return tryResult3449 .propagateErr(); }} | |||
14533 | [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable {{auto tryResult3449 = (ToResult(RunAfterProcessingCurrentEvent ( [eventTarget = std::move(aEventTarget), self = RefPtr(this) ]() mutable { {auto tryResult3448 = (ToResult(eventTarget-> Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3448)::ok_type >); if ((__builtin_expect(!!(tryResult3448.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))" , tryResult3448.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14535, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert (std::is_empty_v<typename decltype(tryResult3449)::ok_type >); if ((__builtin_expect(!!(tryResult3449.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult3448 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult3448)::ok_type>); if ((__builtin_expect(!!(tryResult3448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult3448.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14535, mozilla::dom::quota::Severity::Warning); }}; }))" , tryResult3449.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14536, mozilla::dom::quota::Severity::Error); return tryResult3449 .propagateErr(); }} | |||
14534 | QM_WARNONLY_TRY(MOZ_TO_RESULT({auto tryResult3449 = (ToResult(RunAfterProcessingCurrentEvent ( [eventTarget = std::move(aEventTarget), self = RefPtr(this) ]() mutable { {auto tryResult3448 = (ToResult(eventTarget-> Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3448)::ok_type >); if ((__builtin_expect(!!(tryResult3448.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))" , tryResult3448.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14535, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert (std::is_empty_v<typename decltype(tryResult3449)::ok_type >); if ((__builtin_expect(!!(tryResult3449.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult3448 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult3448)::ok_type>); if ((__builtin_expect(!!(tryResult3448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult3448.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14535, mozilla::dom::quota::Severity::Warning); }}; }))" , tryResult3449.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14536, mozilla::dom::quota::Severity::Error); return tryResult3449 .propagateErr(); }} | |||
14535 | eventTarget->Dispatch(self.forget(), NS_DISPATCH_NORMAL)));{auto tryResult3449 = (ToResult(RunAfterProcessingCurrentEvent ( [eventTarget = std::move(aEventTarget), self = RefPtr(this) ]() mutable { {auto tryResult3448 = (ToResult(eventTarget-> Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3448)::ok_type >); if ((__builtin_expect(!!(tryResult3448.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))" , tryResult3448.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14535, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert (std::is_empty_v<typename decltype(tryResult3449)::ok_type >); if ((__builtin_expect(!!(tryResult3449.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult3448 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult3448)::ok_type>); if ((__builtin_expect(!!(tryResult3448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult3448.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14535, mozilla::dom::quota::Severity::Warning); }}; }))" , tryResult3449.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14536, mozilla::dom::quota::Severity::Error); return tryResult3449 .propagateErr(); }} | |||
14536 | }))){auto tryResult3449 = (ToResult(RunAfterProcessingCurrentEvent ( [eventTarget = std::move(aEventTarget), self = RefPtr(this) ]() mutable { {auto tryResult3448 = (ToResult(eventTarget-> Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3448)::ok_type >); if ((__builtin_expect(!!(tryResult3448.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))" , tryResult3448.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14535, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert (std::is_empty_v<typename decltype(tryResult3449)::ok_type >); if ((__builtin_expect(!!(tryResult3449.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult3448 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult3448)::ok_type>); if ((__builtin_expect(!!(tryResult3448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult3448.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14535, mozilla::dom::quota::Severity::Warning); }}; }))" , tryResult3449.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14536, mozilla::dom::quota::Severity::Error); return tryResult3449 .propagateErr(); }}; | |||
14537 | ||||
14538 | return NS_OK; | |||
14539 | } | |||
14540 | ||||
14541 | void FactoryOp::NoteDatabaseBlocked(Database* aDatabase) { | |||
14542 | AssertIsOnOwningThread(); | |||
14543 | MOZ_ASSERT(aDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14543); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase" ")"); do { *((volatile int*)__null) = 14543; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14544 | MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::WaitingForOtherDatabasesToClose)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::WaitingForOtherDatabasesToClose))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForOtherDatabasesToClose" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14544); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose" ")"); do { *((volatile int*)__null) = 14544; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14545 | MOZ_ASSERT(!mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mMaybeBlockedDatabases.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14545); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaybeBlockedDatabases.IsEmpty()" ")"); do { *((volatile int*)__null) = 14545; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14546 | MOZ_ASSERT(mMaybeBlockedDatabases.Contains(aDatabase))do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.Contains(aDatabase))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mMaybeBlockedDatabases.Contains(aDatabase)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMaybeBlockedDatabases.Contains(aDatabase)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14546); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.Contains(aDatabase)" ")"); do { *((volatile int*)__null) = 14546; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14547 | ||||
14548 | // Only send the blocked event if all databases have reported back. If the | |||
14549 | // database was closed then it will have been removed from the array. | |||
14550 | // Otherwise if it was blocked its |mBlocked| flag will be true. | |||
14551 | bool sendBlockedEvent = true; | |||
14552 | ||||
14553 | for (auto& info : mMaybeBlockedDatabases) { | |||
14554 | if (info == aDatabase) { | |||
14555 | // This database was blocked, mark accordingly. | |||
14556 | info.mBlocked = true; | |||
14557 | } else if (!info.mBlocked) { | |||
14558 | // A database has not yet reported back yet, don't send the event yet. | |||
14559 | sendBlockedEvent = false; | |||
14560 | } | |||
14561 | } | |||
14562 | ||||
14563 | if (sendBlockedEvent) { | |||
14564 | SendBlockedNotification(); | |||
14565 | } | |||
14566 | } | |||
14567 | ||||
14568 | void FactoryOp::NoteDatabaseClosed(Database* const aDatabase) { | |||
14569 | AssertIsOnOwningThread(); | |||
14570 | MOZ_ASSERT(aDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14570); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase" ")"); do { *((volatile int*)__null) = 14570; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14571 | MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::WaitingForOtherDatabasesToClose)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::WaitingForOtherDatabasesToClose))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForOtherDatabasesToClose" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14571); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose" ")"); do { *((volatile int*)__null) = 14571; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14572 | MOZ_ASSERT(!mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mMaybeBlockedDatabases.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14572); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaybeBlockedDatabases.IsEmpty()" ")"); do { *((volatile int*)__null) = 14572; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14573 | MOZ_ASSERT(mMaybeBlockedDatabases.Contains(aDatabase))do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.Contains(aDatabase))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mMaybeBlockedDatabases.Contains(aDatabase)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMaybeBlockedDatabases.Contains(aDatabase)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.Contains(aDatabase)" ")"); do { *((volatile int*)__null) = 14573; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14574 | ||||
14575 | mMaybeBlockedDatabases.RemoveElement(aDatabase); | |||
14576 | ||||
14577 | if (!mMaybeBlockedDatabases.IsEmpty()) { | |||
14578 | return; | |||
14579 | } | |||
14580 | ||||
14581 | DatabaseActorInfo* info; | |||
14582 | MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get( mDatabaseId.ref(), &info)), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14582); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)" ")"); do { *((volatile int*)__null) = 14582; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
14583 | MOZ_ASSERT(info->mWaitingFactoryOp == this)do { static_assert( mozilla::detail::AssertionConditionType< decltype(info->mWaitingFactoryOp == this)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(info->mWaitingFactoryOp == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("info->mWaitingFactoryOp == this", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14583); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mWaitingFactoryOp == this" ")"); do { *((volatile int*)__null) = 14583; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14584 | ||||
14585 | if (AreActorsAlive()) { | |||
14586 | // The IPDL strong reference has not yet been released, so we can clear | |||
14587 | // mWaitingFactoryOp immediately. | |||
14588 | info->mWaitingFactoryOp = nullptr; | |||
14589 | ||||
14590 | WaitForTransactions(); | |||
14591 | return; | |||
14592 | } | |||
14593 | ||||
14594 | // The IPDL strong reference has been released, mWaitingFactoryOp holds the | |||
14595 | // last strong reference to us, so we need to move it to a stack variable | |||
14596 | // instead of clearing it immediately (We could clear it immediately if only | |||
14597 | // the other actor is destroyed, but we don't need to optimize for that, and | |||
14598 | // move it anyway). | |||
14599 | const RefPtr<FactoryOp> waitingFactoryOp = std::move(info->mWaitingFactoryOp); | |||
14600 | ||||
14601 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14601, "UnknownErr"); | |||
14602 | SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | |||
14603 | ||||
14604 | // We hold a strong ref in waitingFactoryOp, so it's safe to call Run() | |||
14605 | // directly. | |||
14606 | ||||
14607 | mState = State::SendingResults; | |||
14608 | MOZ_ALWAYS_SUCCEEDS(Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (Run())), 1)))), 1))) { } else { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(false)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14608); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(Run())" ")"); do { *((volatile int*)__null ) = 14608; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); } } while (false); | |||
14609 | } | |||
14610 | ||||
14611 | void FactoryOp::StringifyState(nsACString& aResult) const { | |||
14612 | AssertIsOnOwningThread(); | |||
14613 | ||||
14614 | switch (mState) { | |||
14615 | case State::Initial: | |||
14616 | aResult.AppendLiteral("Initial"); | |||
14617 | return; | |||
14618 | ||||
14619 | case State::DirectoryOpenPending: | |||
14620 | aResult.AppendLiteral("DirectoryOpenPending"); | |||
14621 | return; | |||
14622 | ||||
14623 | case State::DirectoryWorkOpen: | |||
14624 | aResult.AppendLiteral("DirectoryWorkOpen"); | |||
14625 | return; | |||
14626 | ||||
14627 | case State::DirectoryWorkDone: | |||
14628 | aResult.AppendLiteral("DirectoryWorkDone"); | |||
14629 | return; | |||
14630 | ||||
14631 | case State::DatabaseOpenPending: | |||
14632 | aResult.AppendLiteral("DatabaseOpenPending"); | |||
14633 | return; | |||
14634 | ||||
14635 | case State::DatabaseWorkOpen: | |||
14636 | aResult.AppendLiteral("DatabaseWorkOpen"); | |||
14637 | return; | |||
14638 | ||||
14639 | case State::BeginVersionChange: | |||
14640 | aResult.AppendLiteral("BeginVersionChange"); | |||
14641 | return; | |||
14642 | ||||
14643 | case State::WaitingForOtherDatabasesToClose: | |||
14644 | aResult.AppendLiteral("WaitingForOtherDatabasesToClose"); | |||
14645 | return; | |||
14646 | ||||
14647 | case State::WaitingForTransactionsToComplete: | |||
14648 | aResult.AppendLiteral("WaitingForTransactionsToComplete"); | |||
14649 | return; | |||
14650 | ||||
14651 | case State::DatabaseWorkVersionChange: | |||
14652 | aResult.AppendLiteral("DatabaseWorkVersionChange"); | |||
14653 | return; | |||
14654 | ||||
14655 | case State::SendingResults: | |||
14656 | aResult.AppendLiteral("SendingResults"); | |||
14657 | return; | |||
14658 | ||||
14659 | case State::Completed: | |||
14660 | aResult.AppendLiteral("Completed"); | |||
14661 | return; | |||
14662 | ||||
14663 | default: | |||
14664 | MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14664); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")" ); do { *((volatile int*)__null) = 14664; __attribute__((nomerge )) ::abort(); } while (false); } while (false); | |||
14665 | } | |||
14666 | } | |||
14667 | ||||
14668 | void FactoryOp::Stringify(nsACString& aResult) const { | |||
14669 | AssertIsOnOwningThread(); | |||
14670 | ||||
14671 | aResult.AppendLiteral("PersistenceType:"); | |||
14672 | aResult.Append(PersistenceTypeToString(mPersistenceType)); | |||
14673 | aResult.Append(kQuotaGenericDelimiter); | |||
14674 | ||||
14675 | aResult.AppendLiteral("Origin:"); | |||
14676 | aResult.Append(AnonymizedOriginString(mOriginMetadata.mOrigin)); | |||
14677 | aResult.Append(kQuotaGenericDelimiter); | |||
14678 | ||||
14679 | aResult.AppendLiteral("State:"); | |||
14680 | StringifyState(aResult); | |||
14681 | } | |||
14682 | ||||
14683 | nsresult FactoryOp::Open() { | |||
14684 | AssertIsOnOwningThread(); | |||
14685 | MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Initial)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14685); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial" ")"); do { *((volatile int*)__null) = 14685; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14686 | MOZ_ASSERT(mOriginMetadata.mOrigin.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOriginMetadata.mOrigin.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOriginMetadata.mOrigin.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mOriginMetadata.mOrigin.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14686); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mOrigin.IsEmpty()" ")"); do { *((volatile int*)__null) = 14686; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14687 | MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14687); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"); do { *((volatile int*)__null) = 14687; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14688 | ||||
14689 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14689) || | |||
14690 | IsActorDestroyed()) { | |||
14691 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14691, "UnknownErr"); | |||
14692 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
14693 | } | |||
14694 | ||||
14695 | QM_TRY(QuotaManager::EnsureCreated()){auto tryResult3450 = (QuotaManager::EnsureCreated()); static_assert (std::is_empty_v<typename decltype(tryResult3450)::ok_type >); if ((__builtin_expect(!!(tryResult3450.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaManager::EnsureCreated()" , tryResult3450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14695, mozilla::dom::quota::Severity::Error); return tryResult3450 .propagateErr(); }}; | |||
14696 | ||||
14697 | QuotaManager* const quotaManager = QuotaManager::Get(); | |||
14698 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14698); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { *((volatile int*)__null) = 14698; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14699 | ||||
14700 | QM_TRY_UNWRAP(auto tryResult3451 = (quotaManager->GetInfoFromValidatedPrincipalInfo (mPrincipalInfo)); if ((__builtin_expect(!!(tryResult3451.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetInfoFromValidatedPrincipalInfo(mPrincipalInfo)" , tryResult3451.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14702, mozilla::dom::quota::Severity::Error); return tryResult3451 .propagateErr(); } auto principalMetadata = tryResult3451.unwrap (); | |||
14701 | auto principalMetadata,auto tryResult3451 = (quotaManager->GetInfoFromValidatedPrincipalInfo (mPrincipalInfo)); if ((__builtin_expect(!!(tryResult3451.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetInfoFromValidatedPrincipalInfo(mPrincipalInfo)" , tryResult3451.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14702, mozilla::dom::quota::Severity::Error); return tryResult3451 .propagateErr(); } auto principalMetadata = tryResult3451.unwrap (); | |||
14702 | quotaManager->GetInfoFromValidatedPrincipalInfo(mPrincipalInfo))auto tryResult3451 = (quotaManager->GetInfoFromValidatedPrincipalInfo (mPrincipalInfo)); if ((__builtin_expect(!!(tryResult3451.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetInfoFromValidatedPrincipalInfo(mPrincipalInfo)" , tryResult3451.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14702, mozilla::dom::quota::Severity::Error); return tryResult3451 .propagateErr(); } auto principalMetadata = tryResult3451.unwrap ();; | |||
14703 | ||||
14704 | mOriginMetadata = {std::move(principalMetadata), mPersistenceType}; | |||
14705 | ||||
14706 | if (mPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo) { | |||
14707 | MOZ_ASSERT(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mPersistenceType == PERSISTENCE_TYPE_PERSISTENT" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14707); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT" ")"); do { *((volatile int*)__null) = 14707; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14708 | ||||
14709 | mEnforcingQuota = false; | |||
14710 | } else if (mPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo) { | |||
14711 | const ContentPrincipalInfo& contentPrincipalInfo = | |||
14712 | mPrincipalInfo.get_ContentPrincipalInfo(); | |||
14713 | ||||
14714 | MOZ_ASSERT_IF(do { if (QuotaManager::IsOriginInternal(contentPrincipalInfo. originNoSuffix())) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mPersistenceType == PERSISTENCE_TYPE_PERSISTENT" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14716); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT" ")"); do { *((volatile int*)__null) = 14716; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
14715 | QuotaManager::IsOriginInternal(contentPrincipalInfo.originNoSuffix()),do { if (QuotaManager::IsOriginInternal(contentPrincipalInfo. originNoSuffix())) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mPersistenceType == PERSISTENCE_TYPE_PERSISTENT" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14716); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT" ")"); do { *((volatile int*)__null) = 14716; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
14716 | mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)do { if (QuotaManager::IsOriginInternal(contentPrincipalInfo. originNoSuffix())) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mPersistenceType == PERSISTENCE_TYPE_PERSISTENT" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14716); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT" ")"); do { *((volatile int*)__null) = 14716; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
14717 | ||||
14718 | mEnforcingQuota = mPersistenceType != PERSISTENCE_TYPE_PERSISTENT; | |||
14719 | ||||
14720 | if (mOriginMetadata.mIsPrivate) { | |||
14721 | if (StaticPrefs::dom_indexedDB_privateBrowsing_enabled()) { | |||
14722 | // Explicitly disallow moz-extension urls from using the encrypted | |||
14723 | // indexedDB storage mode when the caller is an extension (see Bug | |||
14724 | // 1841806). | |||
14725 | if (StringBeginsWith(contentPrincipalInfo.originNoSuffix(), | |||
14726 | "moz-extension:"_ns)) { | |||
14727 | return NS_ERROR_DOM_INDEXEDDB_NOT_ALLOWED_ERR; | |||
14728 | } | |||
14729 | ||||
14730 | mInPrivateBrowsing.Flip(); | |||
14731 | } else { | |||
14732 | return NS_ERROR_DOM_INDEXEDDB_NOT_ALLOWED_ERR; | |||
14733 | } | |||
14734 | } | |||
14735 | } else { | |||
14736 | MOZ_ASSERT(false)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14736); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")" ); do { *((volatile int*)__null) = 14736; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
14737 | } | |||
14738 | ||||
14739 | if (mDatabaseName.isSome()) { | |||
14740 | nsCString databaseId; | |||
14741 | ||||
14742 | QuotaManager::GetStorageId(mPersistenceType, mOriginMetadata.mOrigin, | |||
14743 | Client::IDB, databaseId); | |||
14744 | ||||
14745 | databaseId.Append('*'); | |||
14746 | databaseId.Append(NS_ConvertUTF16toUTF8(mDatabaseName.ref())); | |||
14747 | ||||
14748 | mDatabaseId = Some(std::move(databaseId)); | |||
14749 | ||||
14750 | // Need to get database file path before opening the directory. | |||
14751 | // XXX: For what reason? | |||
14752 | QM_TRY_UNWRAP(auto tryResult3456 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult3452 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult3452 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14756, mozilla::dom::quota::Severity::Error); return tryResult3452 .propagateErr(); } const auto& dbFile = tryResult3452.inspect ();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3453 )::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14759, mozilla::dom::quota::Severity::Error); return tryResult3453 .propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect (!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult3454.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14764, mozilla::dom::quota::Severity::Error); return tryResult3454 .propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect (!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3455.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455 ;}; }())); if ((__builtin_expect(!!(tryResult3456.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult3452 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult3452.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14756, mozilla::dom::quota::Severity::Error); return tryResult3452.propagateErr(); } const auto& dbFile = tryResult3452.inspect();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult3453)::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult3453.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14759, mozilla::dom::quota::Severity::Error); return tryResult3453.propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect(!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult3454.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Error); return tryResult3454.propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult3455.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455;}; }())" , tryResult3456.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14768, mozilla::dom::quota::Severity::Error); return tryResult3456 .propagateErr(); } auto databaseFilePath = tryResult3456.unwrap (); | |||
14753 | auto databaseFilePath,auto tryResult3456 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult3452 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult3452 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14756, mozilla::dom::quota::Severity::Error); return tryResult3452 .propagateErr(); } const auto& dbFile = tryResult3452.inspect ();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3453 )::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14759, mozilla::dom::quota::Severity::Error); return tryResult3453 .propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect (!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult3454.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14764, mozilla::dom::quota::Severity::Error); return tryResult3454 .propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect (!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3455.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455 ;}; }())); if ((__builtin_expect(!!(tryResult3456.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult3452 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult3452.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14756, mozilla::dom::quota::Severity::Error); return tryResult3452.propagateErr(); } const auto& dbFile = tryResult3452.inspect();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult3453)::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult3453.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14759, mozilla::dom::quota::Severity::Error); return tryResult3453.propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect(!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult3454.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Error); return tryResult3454.propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult3455.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455;}; }())" , tryResult3456.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14768, mozilla::dom::quota::Severity::Error); return tryResult3456 .propagateErr(); } auto databaseFilePath = tryResult3456.unwrap (); | |||
14754 | ([this, quotaManager]() -> mozilla::Result<nsString, nsresult> {auto tryResult3456 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult3452 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult3452 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14756, mozilla::dom::quota::Severity::Error); return tryResult3452 .propagateErr(); } const auto& dbFile = tryResult3452.inspect ();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3453 )::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14759, mozilla::dom::quota::Severity::Error); return tryResult3453 .propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect (!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult3454.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14764, mozilla::dom::quota::Severity::Error); return tryResult3454 .propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect (!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3455.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455 ;}; }())); if ((__builtin_expect(!!(tryResult3456.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult3452 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult3452.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14756, mozilla::dom::quota::Severity::Error); return tryResult3452.propagateErr(); } const auto& dbFile = tryResult3452.inspect();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult3453)::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult3453.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14759, mozilla::dom::quota::Severity::Error); return tryResult3453.propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect(!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult3454.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Error); return tryResult3454.propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult3455.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455;}; }())" , tryResult3456.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14768, mozilla::dom::quota::Severity::Error); return tryResult3456 .propagateErr(); } auto databaseFilePath = tryResult3456.unwrap (); | |||
14755 | QM_TRY_INSPECT(const auto& dbFile,auto tryResult3456 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult3452 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult3452 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14756, mozilla::dom::quota::Severity::Error); return tryResult3452 .propagateErr(); } const auto& dbFile = tryResult3452.inspect ();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3453 )::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14759, mozilla::dom::quota::Severity::Error); return tryResult3453 .propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect (!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult3454.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14764, mozilla::dom::quota::Severity::Error); return tryResult3454 .propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect (!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3455.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455 ;}; }())); if ((__builtin_expect(!!(tryResult3456.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult3452 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult3452.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14756, mozilla::dom::quota::Severity::Error); return tryResult3452.propagateErr(); } const auto& dbFile = tryResult3452.inspect();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult3453)::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult3453.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14759, mozilla::dom::quota::Severity::Error); return tryResult3453.propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect(!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult3454.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Error); return tryResult3454.propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult3455.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455;}; }())" , tryResult3456.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14768, mozilla::dom::quota::Severity::Error); return tryResult3456 .propagateErr(); } auto databaseFilePath = tryResult3456.unwrap (); | |||
14756 | quotaManager->GetOriginDirectory(mOriginMetadata));auto tryResult3456 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult3452 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult3452 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14756, mozilla::dom::quota::Severity::Error); return tryResult3452 .propagateErr(); } const auto& dbFile = tryResult3452.inspect ();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3453 )::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14759, mozilla::dom::quota::Severity::Error); return tryResult3453 .propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect (!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult3454.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14764, mozilla::dom::quota::Severity::Error); return tryResult3454 .propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect (!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3455.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455 ;}; }())); if ((__builtin_expect(!!(tryResult3456.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult3452 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult3452.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14756, mozilla::dom::quota::Severity::Error); return tryResult3452.propagateErr(); } const auto& dbFile = tryResult3452.inspect();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult3453)::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult3453.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14759, mozilla::dom::quota::Severity::Error); return tryResult3453.propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect(!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult3454.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Error); return tryResult3454.propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult3455.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455;}; }())" , tryResult3456.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14768, mozilla::dom::quota::Severity::Error); return tryResult3456 .propagateErr(); } auto databaseFilePath = tryResult3456.unwrap (); | |||
14757 | ||||
14758 | QM_TRY(MOZ_TO_RESULT(dbFile->Append(auto tryResult3456 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult3452 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult3452 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14756, mozilla::dom::quota::Severity::Error); return tryResult3452 .propagateErr(); } const auto& dbFile = tryResult3452.inspect ();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3453 )::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14759, mozilla::dom::quota::Severity::Error); return tryResult3453 .propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect (!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult3454.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14764, mozilla::dom::quota::Severity::Error); return tryResult3454 .propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect (!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3455.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455 ;}; }())); if ((__builtin_expect(!!(tryResult3456.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult3452 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult3452.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14756, mozilla::dom::quota::Severity::Error); return tryResult3452.propagateErr(); } const auto& dbFile = tryResult3452.inspect();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult3453)::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult3453.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14759, mozilla::dom::quota::Severity::Error); return tryResult3453.propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect(!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult3454.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Error); return tryResult3454.propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult3455.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455;}; }())" , tryResult3456.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14768, mozilla::dom::quota::Severity::Error); return tryResult3456 .propagateErr(); } auto databaseFilePath = tryResult3456.unwrap (); | |||
14759 | NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME))));auto tryResult3456 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult3452 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult3452 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14756, mozilla::dom::quota::Severity::Error); return tryResult3452 .propagateErr(); } const auto& dbFile = tryResult3452.inspect ();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3453 )::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14759, mozilla::dom::quota::Severity::Error); return tryResult3453 .propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect (!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult3454.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14764, mozilla::dom::quota::Severity::Error); return tryResult3454 .propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect (!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3455.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455 ;}; }())); if ((__builtin_expect(!!(tryResult3456.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult3452 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult3452.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14756, mozilla::dom::quota::Severity::Error); return tryResult3452.propagateErr(); } const auto& dbFile = tryResult3452.inspect();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult3453)::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult3453.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14759, mozilla::dom::quota::Severity::Error); return tryResult3453.propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect(!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult3454.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Error); return tryResult3454.propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult3455.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455;}; }())" , tryResult3456.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14768, mozilla::dom::quota::Severity::Error); return tryResult3456 .propagateErr(); } auto databaseFilePath = tryResult3456.unwrap (); | |||
14760 | ||||
14761 | QM_TRY(MOZ_TO_RESULT(dbFile->Append(auto tryResult3456 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult3452 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult3452 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14756, mozilla::dom::quota::Severity::Error); return tryResult3452 .propagateErr(); } const auto& dbFile = tryResult3452.inspect ();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3453 )::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14759, mozilla::dom::quota::Severity::Error); return tryResult3453 .propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect (!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult3454.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14764, mozilla::dom::quota::Severity::Error); return tryResult3454 .propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect (!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3455.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455 ;}; }())); if ((__builtin_expect(!!(tryResult3456.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult3452 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult3452.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14756, mozilla::dom::quota::Severity::Error); return tryResult3452.propagateErr(); } const auto& dbFile = tryResult3452.inspect();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult3453)::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult3453.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14759, mozilla::dom::quota::Severity::Error); return tryResult3453.propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect(!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult3454.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Error); return tryResult3454.propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult3455.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455;}; }())" , tryResult3456.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14768, mozilla::dom::quota::Severity::Error); return tryResult3456 .propagateErr(); } auto databaseFilePath = tryResult3456.unwrap (); | |||
14762 | GetDatabaseFilenameBase(mDatabaseName.ref(),auto tryResult3456 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult3452 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult3452 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14756, mozilla::dom::quota::Severity::Error); return tryResult3452 .propagateErr(); } const auto& dbFile = tryResult3452.inspect ();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3453 )::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14759, mozilla::dom::quota::Severity::Error); return tryResult3453 .propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect (!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult3454.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14764, mozilla::dom::quota::Severity::Error); return tryResult3454 .propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect (!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3455.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455 ;}; }())); if ((__builtin_expect(!!(tryResult3456.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult3452 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult3452.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14756, mozilla::dom::quota::Severity::Error); return tryResult3452.propagateErr(); } const auto& dbFile = tryResult3452.inspect();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult3453)::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult3453.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14759, mozilla::dom::quota::Severity::Error); return tryResult3453.propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect(!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult3454.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Error); return tryResult3454.propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult3455.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455;}; }())" , tryResult3456.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14768, mozilla::dom::quota::Severity::Error); return tryResult3456 .propagateErr(); } auto databaseFilePath = tryResult3456.unwrap (); | |||
14763 | mOriginMetadata.mIsPrivate) +auto tryResult3456 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult3452 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult3452 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14756, mozilla::dom::quota::Severity::Error); return tryResult3452 .propagateErr(); } const auto& dbFile = tryResult3452.inspect ();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3453 )::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14759, mozilla::dom::quota::Severity::Error); return tryResult3453 .propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect (!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult3454.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14764, mozilla::dom::quota::Severity::Error); return tryResult3454 .propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect (!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3455.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455 ;}; }())); if ((__builtin_expect(!!(tryResult3456.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult3452 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult3452.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14756, mozilla::dom::quota::Severity::Error); return tryResult3452.propagateErr(); } const auto& dbFile = tryResult3452.inspect();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult3453)::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult3453.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14759, mozilla::dom::quota::Severity::Error); return tryResult3453.propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect(!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult3454.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Error); return tryResult3454.propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult3455.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455;}; }())" , tryResult3456.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14768, mozilla::dom::quota::Severity::Error); return tryResult3456 .propagateErr(); } auto databaseFilePath = tryResult3456.unwrap (); | |||
14764 | kSQLiteSuffix)));auto tryResult3456 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult3452 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult3452 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14756, mozilla::dom::quota::Severity::Error); return tryResult3452 .propagateErr(); } const auto& dbFile = tryResult3452.inspect ();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3453 )::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14759, mozilla::dom::quota::Severity::Error); return tryResult3453 .propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect (!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult3454.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14764, mozilla::dom::quota::Severity::Error); return tryResult3454 .propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect (!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3455.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455 ;}; }())); if ((__builtin_expect(!!(tryResult3456.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult3452 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult3452.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14756, mozilla::dom::quota::Severity::Error); return tryResult3452.propagateErr(); } const auto& dbFile = tryResult3452.inspect();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult3453)::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult3453.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14759, mozilla::dom::quota::Severity::Error); return tryResult3453.propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect(!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult3454.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Error); return tryResult3454.propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult3455.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455;}; }())" , tryResult3456.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14768, mozilla::dom::quota::Severity::Error); return tryResult3456 .propagateErr(); } auto databaseFilePath = tryResult3456.unwrap (); | |||
14765 | ||||
14766 | QM_TRY_RETURN(auto tryResult3456 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult3452 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult3452 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14756, mozilla::dom::quota::Severity::Error); return tryResult3452 .propagateErr(); } const auto& dbFile = tryResult3452.inspect ();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3453 )::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14759, mozilla::dom::quota::Severity::Error); return tryResult3453 .propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect (!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult3454.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14764, mozilla::dom::quota::Severity::Error); return tryResult3454 .propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect (!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3455.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455 ;}; }())); if ((__builtin_expect(!!(tryResult3456.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult3452 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult3452.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14756, mozilla::dom::quota::Severity::Error); return tryResult3452.propagateErr(); } const auto& dbFile = tryResult3452.inspect();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult3453)::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult3453.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14759, mozilla::dom::quota::Severity::Error); return tryResult3453.propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect(!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult3454.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Error); return tryResult3454.propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult3455.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455;}; }())" , tryResult3456.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14768, mozilla::dom::quota::Severity::Error); return tryResult3456 .propagateErr(); } auto databaseFilePath = tryResult3456.unwrap (); | |||
14767 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath));auto tryResult3456 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult3452 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult3452 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14756, mozilla::dom::quota::Severity::Error); return tryResult3452 .propagateErr(); } const auto& dbFile = tryResult3452.inspect ();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3453 )::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14759, mozilla::dom::quota::Severity::Error); return tryResult3453 .propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect (!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult3454.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14764, mozilla::dom::quota::Severity::Error); return tryResult3454 .propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect (!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3455.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455 ;}; }())); if ((__builtin_expect(!!(tryResult3456.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult3452 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult3452.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14756, mozilla::dom::quota::Severity::Error); return tryResult3452.propagateErr(); } const auto& dbFile = tryResult3452.inspect();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult3453)::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult3453.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14759, mozilla::dom::quota::Severity::Error); return tryResult3453.propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect(!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult3454.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Error); return tryResult3454.propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult3455.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455;}; }())" , tryResult3456.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14768, mozilla::dom::quota::Severity::Error); return tryResult3456 .propagateErr(); } auto databaseFilePath = tryResult3456.unwrap (); | |||
14768 | }()))auto tryResult3456 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult3452 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult3452 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14756, mozilla::dom::quota::Severity::Error); return tryResult3452 .propagateErr(); } const auto& dbFile = tryResult3452.inspect ();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3453 )::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14759, mozilla::dom::quota::Severity::Error); return tryResult3453 .propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile-> Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata .mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v <typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect (!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))" , tryResult3454.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14764, mozilla::dom::quota::Severity::Error); return tryResult3454 .propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect (!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3455.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455 ;}; }())); if ((__builtin_expect(!!(tryResult3456.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult3452 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult3452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult3452.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14756, mozilla::dom::quota::Severity::Error); return tryResult3452.propagateErr(); } const auto& dbFile = tryResult3452.inspect();; {auto tryResult3453 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult3453)::ok_type>); if ((__builtin_expect(!!(tryResult3453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult3453.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14759, mozilla::dom::quota::Severity::Error); return tryResult3453.propagateErr(); }}; {auto tryResult3454 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult3454)::ok_type>); if ((__builtin_expect(!!(tryResult3454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult3454.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Error); return tryResult3454.propagateErr(); }}; {auto tryResult3455 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult3455.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult3455.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14767, mozilla::dom::quota::Severity::Error); } return tryResult3455;}; }())" , tryResult3456.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14768, mozilla::dom::quota::Severity::Error); return tryResult3456 .propagateErr(); } auto databaseFilePath = tryResult3456.unwrap ();; | |||
14769 | ||||
14770 | mDatabaseFilePath = Some(std::move(databaseFilePath)); | |||
14771 | } | |||
14772 | ||||
14773 | // Open directory | |||
14774 | mState = State::DirectoryOpenPending; | |||
14775 | ||||
14776 | quotaManager->OpenClientDirectory({mOriginMetadata, Client::IDB}) | |||
14777 | ->Then( | |||
14778 | GetCurrentSerialEventTarget(), __func__, | |||
14779 | [self = RefPtr(this)]( | |||
14780 | const ClientDirectoryLockPromise::ResolveOrRejectValue& aValue) { | |||
14781 | if (aValue.IsResolve()) { | |||
14782 | self->DirectoryLockAcquired(aValue.ResolveValue()); | |||
14783 | } else { | |||
14784 | self->DirectoryLockFailed(); | |||
14785 | } | |||
14786 | }); | |||
14787 | ||||
14788 | return NS_OK; | |||
14789 | } | |||
14790 | ||||
14791 | nsresult FactoryOp::DirectoryOpen() { | |||
14792 | AssertIsOnOwningThread(); | |||
14793 | MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryOpenPending)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mState == State::DirectoryOpenPending))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14793); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending" ")"); do { *((volatile int*)__null) = 14793; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14794 | MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14794); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")"); do { *((volatile int*)__null) = 14794; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14795 | ||||
14796 | if (mDatabaseName.isNothing()) { | |||
14797 | QuotaManager* const quotaManager = QuotaManager::Get(); | |||
14798 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { *((volatile int*)__null) = 14798; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14799 | ||||
14800 | // Must set this before dispatching otherwise we will race with the IO | |||
14801 | // thread. | |||
14802 | mState = State::DirectoryWorkOpen; | |||
14803 | ||||
14804 | QM_TRY(MOZ_TO_RESULT({auto tryResult3457 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3457)::ok_type >); if ((__builtin_expect(!!(tryResult3457.isErr()), 0))) { auto tryTempError = tryResult3457.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14806, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14806, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
14805 | quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult3457 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3457)::ok_type >); if ((__builtin_expect(!!(tryResult3457.isErr()), 0))) { auto tryTempError = tryResult3457.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14806, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14806, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
14806 | NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult3457 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3457)::ok_type >); if ((__builtin_expect(!!(tryResult3457.isErr()), 0))) { auto tryTempError = tryResult3457.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14806, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14806, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | |||
14807 | ||||
14808 | return NS_OK; | |||
14809 | } | |||
14810 | ||||
14811 | mState = State::DirectoryWorkDone; | |||
14812 | MOZ_ALWAYS_SUCCEEDS(Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (Run())), 1)))), 1))) { } else { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(false)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14812); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(Run())" ")"); do { *((volatile int*)__null ) = 14812; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); } } while (false); | |||
14813 | ||||
14814 | return NS_OK; | |||
14815 | } | |||
14816 | ||||
14817 | nsresult FactoryOp::DirectoryWorkDone() { | |||
14818 | AssertIsOnOwningThread(); | |||
14819 | MOZ_ASSERT(mState == State::DirectoryWorkDone)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryWorkDone)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DirectoryWorkDone ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DirectoryWorkDone", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14819); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkDone" ")"); do { *((volatile int*)__null) = 14819; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14820 | MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")"); do { *((volatile int*)__null) = 14820; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14821 | MOZ_ASSERT(gFactoryOps)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gFactoryOps)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gFactoryOps))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("gFactoryOps", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14821); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps" ")"); do { *((volatile int*)__null) = 14821; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14822 | ||||
14823 | // See if this FactoryOp needs to wait. | |||
14824 | const bool blocked = [&self = *this] { | |||
14825 | bool foundThis = false; | |||
14826 | bool blocked = false; | |||
14827 | ||||
14828 | for (const auto& existingOp : Reversed(*gFactoryOps)) { | |||
14829 | if (existingOp == &self) { | |||
14830 | foundThis = true; | |||
14831 | continue; | |||
14832 | } | |||
14833 | ||||
14834 | if (foundThis && self.MustWaitFor(*existingOp)) { | |||
14835 | existingOp->AddBlockingOp(self); | |||
14836 | self.AddBlockedOnOp(*existingOp); | |||
14837 | blocked = true; | |||
14838 | } | |||
14839 | } | |||
14840 | ||||
14841 | return blocked; | |||
14842 | }() || [&self = *this] { | |||
14843 | QuotaClient* quotaClient = QuotaClient::GetInstance(); | |||
14844 | MOZ_ASSERT(quotaClient)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaClient)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaClient))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaClient", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14844); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaClient" ")"); do { *((volatile int*)__null) = 14844; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14845 | ||||
14846 | if (RefPtr<Maintenance> currentMaintenance = | |||
14847 | quotaClient->GetCurrentMaintenance()) { | |||
14848 | if (self.mDatabaseName.isSome()) { | |||
14849 | if (RefPtr<DatabaseMaintenance> databaseMaintenance = | |||
14850 | currentMaintenance->GetDatabaseMaintenance( | |||
14851 | self.mDatabaseFilePath.ref())) { | |||
14852 | databaseMaintenance->WaitForCompletion(&self); | |||
14853 | return true; | |||
14854 | } | |||
14855 | } else if (currentMaintenance->HasDatabaseMaintenances()) { | |||
14856 | currentMaintenance->WaitForCompletion(&self); | |||
14857 | return true; | |||
14858 | } | |||
14859 | } | |||
14860 | ||||
14861 | return false; | |||
14862 | }(); | |||
14863 | ||||
14864 | mState = State::DatabaseOpenPending; | |||
14865 | if (!blocked) { | |||
14866 | QM_TRY(MOZ_TO_RESULT(DatabaseOpen())){auto tryResult3458 = (ToResult(DatabaseOpen())); static_assert (std::is_empty_v<typename decltype(tryResult3458)::ok_type >); if ((__builtin_expect(!!(tryResult3458.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOpen())", tryResult3458.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14866, mozilla::dom::quota::Severity::Error); return tryResult3458 .propagateErr(); }}; | |||
14867 | } | |||
14868 | ||||
14869 | return NS_OK; | |||
14870 | } | |||
14871 | ||||
14872 | nsresult FactoryOp::SendToIOThread() { | |||
14873 | AssertIsOnOwningThread(); | |||
14874 | MOZ_ASSERT(mState == State::DatabaseOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseOpenPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseOpenPending ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseOpenPending", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14874); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending" ")"); do { *((volatile int*)__null) = 14874; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14875 | ||||
14876 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14876) || | |||
14877 | !OperationMayProceed()) { | |||
14878 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14878, "UnknownErr"); | |||
14879 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
14880 | } | |||
14881 | ||||
14882 | QuotaManager* const quotaManager = QuotaManager::Get(); | |||
14883 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14883); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { *((volatile int*)__null) = 14883; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14884 | ||||
14885 | // Must set this before dispatching otherwise we will race with the IO thread. | |||
14886 | mState = State::DatabaseWorkOpen; | |||
14887 | ||||
14888 | QM_TRY(MOZ_TO_RESULT({auto tryResult3459 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3459)::ok_type >); if ((__builtin_expect(!!(tryResult3459.isErr()), 0))) { auto tryTempError = tryResult3459.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14890, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14890, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
14889 | quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult3459 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3459)::ok_type >); if ((__builtin_expect(!!(tryResult3459.isErr()), 0))) { auto tryTempError = tryResult3459.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14890, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14890, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
14890 | NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult3459 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult3459)::ok_type >); if ((__builtin_expect(!!(tryResult3459.isErr()), 0))) { auto tryTempError = tryResult3459.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14890, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14890, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | |||
14891 | ||||
14892 | return NS_OK; | |||
14893 | } | |||
14894 | ||||
14895 | void FactoryOp::WaitForTransactions() { | |||
14896 | AssertIsOnOwningThread(); | |||
14897 | MOZ_ASSERT(mState == State::BeginVersionChange ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginVersionChange || mState == State ::WaitingForOtherDatabasesToClose)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14898); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose" ")"); do { *((volatile int*)__null) = 14898; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
14898 | mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginVersionChange || mState == State ::WaitingForOtherDatabasesToClose)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14898); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose" ")"); do { *((volatile int*)__null) = 14898; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14899 | MOZ_ASSERT(!mDatabaseId.ref().IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabaseId.ref().IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabaseId.ref().IsEmpty() ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!mDatabaseId.ref().IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14899); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.ref().IsEmpty()" ")"); do { *((volatile int*)__null) = 14899; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14900 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14900); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { *((volatile int*)__null) = 14900; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14901 | ||||
14902 | mState = State::WaitingForTransactionsToComplete; | |||
14903 | ||||
14904 | RefPtr<WaitForTransactionsHelper> helper = | |||
14905 | new WaitForTransactionsHelper(mDatabaseId.ref(), this); | |||
14906 | helper->WaitForTransactions(); | |||
14907 | } | |||
14908 | ||||
14909 | void FactoryOp::CleanupMetadata() { | |||
14910 | AssertIsOnOwningThread(); | |||
14911 | ||||
14912 | for (const NotNull<RefPtr<FactoryOp>>& blockingOp : mBlocking) { | |||
14913 | blockingOp->MaybeUnblock(*this); | |||
14914 | } | |||
14915 | mBlocking.Clear(); | |||
14916 | ||||
14917 | MOZ_ASSERT(gFactoryOps)do { static_assert( mozilla::detail::AssertionConditionType< decltype(gFactoryOps)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(gFactoryOps))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("gFactoryOps", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14917); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps" ")"); do { *((volatile int*)__null) = 14917; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14918 | gFactoryOps->RemoveElement(this); | |||
14919 | ||||
14920 | // We might get here even after QuotaManagerOpen failed, so we need to check | |||
14921 | // if we have a quota manager. | |||
14922 | quota::QuotaManager::SafeMaybeRecordQuotaClientShutdownStep( | |||
14923 | quota::Client::IDB, "An element was removed from gFactoryOps"_ns); | |||
14924 | ||||
14925 | // Match the IncreaseBusyCount in AllocPBackgroundIDBFactoryRequestParent(). | |||
14926 | DecreaseBusyCount(); | |||
14927 | } | |||
14928 | ||||
14929 | void FactoryOp::FinishSendResults() { | |||
14930 | AssertIsOnOwningThread(); | |||
14931 | MOZ_ASSERT(mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::SendingResults)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::SendingResults ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::SendingResults", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14931); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults" ")"); do { *((volatile int*)__null) = 14931; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14932 | MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFactory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFactory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")" ); do { *((volatile int*)__null) = 14932; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
14933 | ||||
14934 | mState = State::Completed; | |||
14935 | ||||
14936 | // Make sure to release the factory on this thread. | |||
14937 | mFactory = nullptr; | |||
14938 | } | |||
14939 | ||||
14940 | nsresult FactoryOp::SendVersionChangeMessages( | |||
14941 | DatabaseActorInfo* aDatabaseActorInfo, Maybe<Database&> aOpeningDatabase, | |||
14942 | uint64_t aOldVersion, const Maybe<uint64_t>& aNewVersion) { | |||
14943 | AssertIsOnOwningThread(); | |||
14944 | MOZ_ASSERT(aDatabaseActorInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDatabaseActorInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDatabaseActorInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseActorInfo" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14944); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseActorInfo" ")"); do { *((volatile int*)__null) = 14944; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14945 | MOZ_ASSERT(mState == State::BeginVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginVersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::BeginVersionChange", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14945); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange" ")"); do { *((volatile int*)__null) = 14945; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14946 | MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeBlockedDatabases.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14946); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { *((volatile int*)__null) = 14946; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14947 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14947); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { *((volatile int*)__null) = 14947; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
14948 | ||||
14949 | const uint32_t expectedCount = mDeleting ? 0 : 1; | |||
14950 | const uint32_t liveCount = aDatabaseActorInfo->mLiveDatabases.Length(); | |||
14951 | if (liveCount > expectedCount) { | |||
14952 | nsTArray<MaybeBlockedDatabaseInfo> maybeBlockedDatabases; | |||
14953 | for (const auto& database : aDatabaseActorInfo->mLiveDatabases) { | |||
14954 | if ((!aOpeningDatabase || database.get() != &aOpeningDatabase.ref()) && | |||
14955 | !database->IsClosed() && | |||
14956 | NS_WARN_IF(!maybeBlockedDatabases.AppendElement(NS_warn_if_impl(!maybeBlockedDatabases.AppendElement( SafeRefPtr {database.get(), AcquireStrongRefFromRawPtr{}}, fallible), "!maybeBlockedDatabases.AppendElement( SafeRefPtr{database.get(), AcquireStrongRefFromRawPtr{}}, fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14958) | |||
14957 | SafeRefPtr{database.get(), AcquireStrongRefFromRawPtr{}},NS_warn_if_impl(!maybeBlockedDatabases.AppendElement( SafeRefPtr {database.get(), AcquireStrongRefFromRawPtr{}}, fallible), "!maybeBlockedDatabases.AppendElement( SafeRefPtr{database.get(), AcquireStrongRefFromRawPtr{}}, fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14958) | |||
14958 | fallible))NS_warn_if_impl(!maybeBlockedDatabases.AppendElement( SafeRefPtr {database.get(), AcquireStrongRefFromRawPtr{}}, fallible), "!maybeBlockedDatabases.AppendElement( SafeRefPtr{database.get(), AcquireStrongRefFromRawPtr{}}, fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 14958)) { | |||
14959 | return NS_ERROR_OUT_OF_MEMORY; | |||
14960 | } | |||
14961 | } | |||
14962 | ||||
14963 | mMaybeBlockedDatabases = std::move(maybeBlockedDatabases); | |||
14964 | } | |||
14965 | ||||
14966 | // We don't want to wait forever if we were not able to send the | |||
14967 | // message. | |||
14968 | mMaybeBlockedDatabases.RemoveLastElements( | |||
14969 | mMaybeBlockedDatabases.end() - | |||
14970 | std::remove_if(mMaybeBlockedDatabases.begin(), | |||
14971 | mMaybeBlockedDatabases.end(), | |||
14972 | [aOldVersion, &aNewVersion](auto& maybeBlockedDatabase) { | |||
14973 | return !maybeBlockedDatabase->SendVersionChange( | |||
14974 | aOldVersion, aNewVersion); | |||
14975 | })); | |||
14976 | ||||
14977 | return NS_OK; | |||
14978 | } // namespace indexedDB | |||
14979 | ||||
14980 | bool FactoryOp::MustWaitFor(const FactoryOp& aExistingOp) { | |||
14981 | AssertIsOnOwningThread(); | |||
14982 | ||||
14983 | // If the persistence types don't overlap, the op can proceed. | |||
14984 | if (aExistingOp.mPersistenceType != mPersistenceType) { | |||
14985 | return false; | |||
14986 | } | |||
14987 | ||||
14988 | // If the origins don't overlap, the op can proceed. | |||
14989 | if (aExistingOp.mOriginMetadata.mOrigin != mOriginMetadata.mOrigin) { | |||
14990 | return false; | |||
14991 | } | |||
14992 | ||||
14993 | // If the database ids don't overlap, the op can proceed. | |||
14994 | if (!aExistingOp.mDatabaseId.isNothing() && !mDatabaseId.isNothing() && | |||
14995 | aExistingOp.mDatabaseId.ref() != mDatabaseId.ref()) { | |||
14996 | return false; | |||
14997 | } | |||
14998 | ||||
14999 | return true; | |||
15000 | } | |||
15001 | ||||
15002 | // Run() assumes that the caller holds a strong reference to the object that | |||
15003 | // can't be cleared while Run() is being executed. | |||
15004 | // So if you call Run() directly (as opposed to dispatching to an event queue) | |||
15005 | // you need to make sure there's such a reference. | |||
15006 | // See bug 1356824 for more details. | |||
15007 | NS_IMETHODIMPnsresult | |||
15008 | FactoryOp::Run() { | |||
15009 | const auto handleError = [this](const nsresult rv) { | |||
15010 | if (mState != State::SendingResults) { | |||
15011 | SetFailureCodeIfUnset(rv); | |||
15012 | ||||
15013 | // Must set mState before dispatching otherwise we will race with the | |||
15014 | // owning thread. | |||
15015 | mState = State::SendingResults; | |||
15016 | ||||
15017 | if (IsOnOwningThread()) { | |||
15018 | SendResults(); | |||
15019 | } else { | |||
15020 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget)) ), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15021); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" ")"); do { *((volatile int*)__null) = 15021; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
15021 | DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget)) ), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15021); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" ")"); do { *((volatile int*)__null) = 15021; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
15022 | } | |||
15023 | } | |||
15024 | }; | |||
15025 | ||||
15026 | switch (mState) { | |||
15027 | case State::Initial: | |||
15028 | QM_WARNONLY_TRY(MOZ_TO_RESULT(Open()), handleError){auto tryResult3460 = (ToResult(Open())); static_assert(std:: is_empty_v<typename decltype(tryResult3460)::ok_type>); if ((__builtin_expect(!!(tryResult3460.isErr()), 0))) { auto tryTempError = tryResult3460.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(Open())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15028, mozilla::dom::quota::Severity::Warning); handleError (tryTempError); }}; | |||
15029 | break; | |||
15030 | ||||
15031 | case State::DirectoryWorkOpen: | |||
15032 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DoDirectoryWork()), handleError){auto tryResult3461 = (ToResult(DoDirectoryWork())); static_assert (std::is_empty_v<typename decltype(tryResult3461)::ok_type >); if ((__builtin_expect(!!(tryResult3461.isErr()), 0))) { auto tryTempError = tryResult3461.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DoDirectoryWork())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15032, mozilla::dom::quota::Severity::Warning); handleError (tryTempError); }}; | |||
15033 | break; | |||
15034 | ||||
15035 | case State::DirectoryWorkDone: | |||
15036 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DirectoryWorkDone()), handleError){auto tryResult3462 = (ToResult(DirectoryWorkDone())); static_assert (std::is_empty_v<typename decltype(tryResult3462)::ok_type >); if ((__builtin_expect(!!(tryResult3462.isErr()), 0))) { auto tryTempError = tryResult3462.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DirectoryWorkDone())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15036, mozilla::dom::quota::Severity::Warning); handleError (tryTempError); }}; | |||
15037 | break; | |||
15038 | ||||
15039 | case State::DatabaseOpenPending: | |||
15040 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DatabaseOpen()), handleError){auto tryResult3463 = (ToResult(DatabaseOpen())); static_assert (std::is_empty_v<typename decltype(tryResult3463)::ok_type >); if ((__builtin_expect(!!(tryResult3463.isErr()), 0))) { auto tryTempError = tryResult3463.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DatabaseOpen())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15040, mozilla::dom::quota::Severity::Warning); handleError (tryTempError); }}; | |||
15041 | break; | |||
15042 | ||||
15043 | case State::DatabaseWorkOpen: | |||
15044 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DoDatabaseWork()), handleError){auto tryResult3464 = (ToResult(DoDatabaseWork())); static_assert (std::is_empty_v<typename decltype(tryResult3464)::ok_type >); if ((__builtin_expect(!!(tryResult3464.isErr()), 0))) { auto tryTempError = tryResult3464.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DoDatabaseWork())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15044, mozilla::dom::quota::Severity::Warning); handleError (tryTempError); }}; | |||
15045 | break; | |||
15046 | ||||
15047 | case State::BeginVersionChange: | |||
15048 | QM_WARNONLY_TRY(MOZ_TO_RESULT(BeginVersionChange()), handleError){auto tryResult3465 = (ToResult(BeginVersionChange())); static_assert (std::is_empty_v<typename decltype(tryResult3465)::ok_type >); if ((__builtin_expect(!!(tryResult3465.isErr()), 0))) { auto tryTempError = tryResult3465.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(BeginVersionChange())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15048, mozilla::dom::quota::Severity::Warning); handleError (tryTempError); }}; | |||
15049 | break; | |||
15050 | ||||
15051 | case State::WaitingForTransactionsToComplete: | |||
15052 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DispatchToWorkThread()), handleError){auto tryResult3466 = (ToResult(DispatchToWorkThread())); static_assert (std::is_empty_v<typename decltype(tryResult3466)::ok_type >); if ((__builtin_expect(!!(tryResult3466.isErr()), 0))) { auto tryTempError = tryResult3466.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DispatchToWorkThread())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15052, mozilla::dom::quota::Severity::Warning); handleError (tryTempError); }}; | |||
15053 | break; | |||
15054 | ||||
15055 | case State::SendingResults: | |||
15056 | SendResults(); | |||
15057 | break; | |||
15058 | ||||
15059 | default: | |||
15060 | MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15060); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")" ); do { *((volatile int*)__null) = 15060; __attribute__((nomerge )) ::abort(); } while (false); } while (false); | |||
15061 | } | |||
15062 | ||||
15063 | return NS_OK; | |||
15064 | } | |||
15065 | ||||
15066 | void FactoryOp::DirectoryLockAcquired(DirectoryLock* aLock) { | |||
15067 | AssertIsOnOwningThread(); | |||
15068 | MOZ_ASSERT(aLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aLock)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(aLock))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("aLock", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15068); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLock" ")" ); do { *((volatile int*)__null) = 15068; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
15069 | MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryOpenPending)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mState == State::DirectoryOpenPending))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15069); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending" ")"); do { *((volatile int*)__null) = 15069; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15070 | MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15070); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"); do { *((volatile int*)__null) = 15070; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15071 | ||||
15072 | mDirectoryLock = aLock; | |||
15073 | ||||
15074 | MOZ_ASSERT(mDirectoryLock->Id() >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLock->Id() >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLock->Id() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mDirectoryLock->Id() >= 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15074); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock->Id() >= 0" ")"); do { *((volatile int*)__null) = 15074; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15075 | mDirectoryLockId = mDirectoryLock->Id(); | |||
15076 | ||||
15077 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DirectoryOpen()), [this](const nsresult rv) {{auto tryResult3467 = (ToResult(DirectoryOpen())); static_assert (std::is_empty_v<typename decltype(tryResult3467)::ok_type >); if ((__builtin_expect(!!(tryResult3467.isErr()), 0))) { auto tryTempError = tryResult3467.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DirectoryOpen())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15085, mozilla::dom::quota::Severity::Warning); [this](const nsresult rv) { SetFailureCodeIfUnset(rv); mState = State::SendingResults ; do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(! NS_FAILED_impl(Run())), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15084); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(Run())" ")"); do { *((volatile int*)__null ) = 15084; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); } } while (false); }(tryTempError); }} | |||
15078 | SetFailureCodeIfUnset(rv);{auto tryResult3467 = (ToResult(DirectoryOpen())); static_assert (std::is_empty_v<typename decltype(tryResult3467)::ok_type >); if ((__builtin_expect(!!(tryResult3467.isErr()), 0))) { auto tryTempError = tryResult3467.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DirectoryOpen())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15085, mozilla::dom::quota::Severity::Warning); [this](const nsresult rv) { SetFailureCodeIfUnset(rv); mState = State::SendingResults ; do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(! NS_FAILED_impl(Run())), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15084); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(Run())" ")"); do { *((volatile int*)__null ) = 15084; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); } } while (false); }(tryTempError); }} | |||
15079 | ||||
15080 | // The caller holds a strong reference to us, no need for a self reference{auto tryResult3467 = (ToResult(DirectoryOpen())); static_assert (std::is_empty_v<typename decltype(tryResult3467)::ok_type >); if ((__builtin_expect(!!(tryResult3467.isErr()), 0))) { auto tryTempError = tryResult3467.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DirectoryOpen())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15085, mozilla::dom::quota::Severity::Warning); [this](const nsresult rv) { SetFailureCodeIfUnset(rv); mState = State::SendingResults ; do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(! NS_FAILED_impl(Run())), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15084); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(Run())" ")"); do { *((volatile int*)__null ) = 15084; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); } } while (false); }(tryTempError); }} | |||
15081 | // before calling Run().{auto tryResult3467 = (ToResult(DirectoryOpen())); static_assert (std::is_empty_v<typename decltype(tryResult3467)::ok_type >); if ((__builtin_expect(!!(tryResult3467.isErr()), 0))) { auto tryTempError = tryResult3467.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DirectoryOpen())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15085, mozilla::dom::quota::Severity::Warning); [this](const nsresult rv) { SetFailureCodeIfUnset(rv); mState = State::SendingResults ; do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(! NS_FAILED_impl(Run())), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15084); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(Run())" ")"); do { *((volatile int*)__null ) = 15084; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); } } while (false); }(tryTempError); }} | |||
15082 | ||||
15083 | mState = State::SendingResults;{auto tryResult3467 = (ToResult(DirectoryOpen())); static_assert (std::is_empty_v<typename decltype(tryResult3467)::ok_type >); if ((__builtin_expect(!!(tryResult3467.isErr()), 0))) { auto tryTempError = tryResult3467.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DirectoryOpen())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15085, mozilla::dom::quota::Severity::Warning); [this](const nsresult rv) { SetFailureCodeIfUnset(rv); mState = State::SendingResults ; do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(! NS_FAILED_impl(Run())), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15084); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(Run())" ")"); do { *((volatile int*)__null ) = 15084; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); } } while (false); }(tryTempError); }} | |||
15084 | MOZ_ALWAYS_SUCCEEDS(Run());{auto tryResult3467 = (ToResult(DirectoryOpen())); static_assert (std::is_empty_v<typename decltype(tryResult3467)::ok_type >); if ((__builtin_expect(!!(tryResult3467.isErr()), 0))) { auto tryTempError = tryResult3467.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DirectoryOpen())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15085, mozilla::dom::quota::Severity::Warning); [this](const nsresult rv) { SetFailureCodeIfUnset(rv); mState = State::SendingResults ; do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(! NS_FAILED_impl(Run())), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15084); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(Run())" ")"); do { *((volatile int*)__null ) = 15084; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); } } while (false); }(tryTempError); }} | |||
15085 | }){auto tryResult3467 = (ToResult(DirectoryOpen())); static_assert (std::is_empty_v<typename decltype(tryResult3467)::ok_type >); if ((__builtin_expect(!!(tryResult3467.isErr()), 0))) { auto tryTempError = tryResult3467.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DirectoryOpen())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15085, mozilla::dom::quota::Severity::Warning); [this](const nsresult rv) { SetFailureCodeIfUnset(rv); mState = State::SendingResults ; do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(! NS_FAILED_impl(Run())), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15084); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(Run())" ")"); do { *((volatile int*)__null ) = 15084; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); } } while (false); }(tryTempError); }}; | |||
15086 | } | |||
15087 | ||||
15088 | void FactoryOp::DirectoryLockFailed() { | |||
15089 | AssertIsOnOwningThread(); | |||
15090 | MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryOpenPending)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(mState == State::DirectoryOpenPending))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15090); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending" ")"); do { *((volatile int*)__null) = 15090; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15091 | MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15091); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"); do { *((volatile int*)__null) = 15091; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15092 | ||||
15093 | if (!HasFailed()) { | |||
15094 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15094, "UnknownErr"); | |||
15095 | SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | |||
15096 | } | |||
15097 | ||||
15098 | // The caller holds a strong reference to us, no need for a self reference | |||
15099 | // before calling Run(). | |||
15100 | ||||
15101 | mState = State::SendingResults; | |||
15102 | MOZ_ALWAYS_SUCCEEDS(Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (Run())), 1)))), 1))) { } else { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(false)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15102); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(Run())" ")"); do { *((volatile int*)__null ) = 15102; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); } } while (false); | |||
15103 | } | |||
15104 | ||||
15105 | nsresult FactoryRequestOp::DoDirectoryWork() { | |||
15106 | MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable." , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15106); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { *((volatile int*)__null) = 15106; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
15107 | } | |||
15108 | ||||
15109 | void FactoryRequestOp::ActorDestroy(ActorDestroyReason aWhy) { | |||
15110 | AssertIsOnBackgroundThread(); | |||
15111 | ||||
15112 | NoteActorDestroyed(); | |||
15113 | } | |||
15114 | ||||
15115 | OpenDatabaseOp::OpenDatabaseOp(SafeRefPtr<Factory> aFactory, | |||
15116 | const Maybe<ContentParentId>& aContentParentId, | |||
15117 | const CommonFactoryRequestParams& aParams) | |||
15118 | : FactoryRequestOp(std::move(aFactory), aContentParentId, aParams, | |||
15119 | /* aDeleting */ false), | |||
15120 | mMetadata(MakeSafeRefPtr<FullDatabaseMetadata>(aParams.metadata())), | |||
15121 | mRequestedVersion(aParams.metadata().version()), | |||
15122 | mVersionChangeOp(nullptr), | |||
15123 | mTelemetryId(0) {} | |||
15124 | ||||
15125 | void OpenDatabaseOp::ActorDestroy(ActorDestroyReason aWhy) { | |||
15126 | AssertIsOnOwningThread(); | |||
15127 | ||||
15128 | FactoryRequestOp::ActorDestroy(aWhy); | |||
15129 | ||||
15130 | if (mVersionChangeOp) { | |||
15131 | mVersionChangeOp->NoteActorDestroyed(); | |||
15132 | } | |||
15133 | } | |||
15134 | ||||
15135 | nsresult OpenDatabaseOp::DatabaseOpen() { | |||
15136 | AssertIsOnOwningThread(); | |||
15137 | MOZ_ASSERT(mState == State::DatabaseOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseOpenPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseOpenPending ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseOpenPending", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15137); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending" ")"); do { *((volatile int*)__null) = 15137; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15138 | ||||
15139 | nsresult rv = SendToIOThread(); | |||
15140 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15140)) { | |||
15141 | return rv; | |||
15142 | } | |||
15143 | ||||
15144 | return NS_OK; | |||
15145 | } | |||
15146 | ||||
15147 | nsresult OpenDatabaseOp::DoDatabaseWork() { | |||
15148 | AssertIsOnIOThread(); | |||
15149 | MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseWorkOpen", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15149); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen" ")"); do { *((volatile int*)__null) = 15149; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15150 | ||||
15151 | AUTO_PROFILER_LABEL("OpenDatabaseOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject15151( "OpenDatabaseOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
15152 | ||||
15153 | QM_TRY(OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread()),{auto tryResult3468 = (OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread ())); static_assert(std::is_empty_v<typename decltype(tryResult3468 )::ok_type>); if ((__builtin_expect(!!(tryResult3468.isErr ()), 0))) { auto tryTempError = tryResult3468.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15154, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15154, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
15154 | NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult3468 = (OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread ())); static_assert(std::is_empty_v<typename decltype(tryResult3468 )::ok_type>); if ((__builtin_expect(!!(tryResult3468.isErr ()), 0))) { auto tryTempError = tryResult3468.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15154, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15154, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | |||
15155 | ||||
15156 | if (!OperationMayProceed()) { | |||
15157 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15157, "UnknownErr"); | |||
15158 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
15159 | } | |||
15160 | ||||
15161 | const nsAString& databaseName = mCommonParams.metadata().name(); | |||
15162 | const PersistenceType persistenceType = | |||
15163 | mCommonParams.metadata().persistenceType(); | |||
15164 | ||||
15165 | QuotaManager* const quotaManager = QuotaManager::Get(); | |||
15166 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15166); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { *((volatile int*)__null) = 15166; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15167 | ||||
15168 | QM_TRY_INSPECT(auto tryResult3472 = (([persistenceType, "aManager, this ]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile >, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT ) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469 ;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3470 )::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15179, mozilla::dom::quota::Severity::Error); return tryResult3470 .propagateErr(); }}; {auto tryResult3471 = (quotaManager-> EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)) ; if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3472.isErr()), 0))) { mozilla ::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3469.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult3470)::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult3470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15179, mozilla::dom::quota::Severity::Error); return tryResult3470.propagateErr(); }}; {auto tryResult3471 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); return tryResult3472 .propagateErr(); } const auto& dbDirectory = tryResult3472 .inspect(); | |||
15169 | const auto& dbDirectory,auto tryResult3472 = (([persistenceType, "aManager, this ]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile >, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT ) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469 ;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3470 )::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15179, mozilla::dom::quota::Severity::Error); return tryResult3470 .propagateErr(); }}; {auto tryResult3471 = (quotaManager-> EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)) ; if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3472.isErr()), 0))) { mozilla ::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3469.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult3470)::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult3470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15179, mozilla::dom::quota::Severity::Error); return tryResult3470.propagateErr(); }}; {auto tryResult3471 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); return tryResult3472 .propagateErr(); } const auto& dbDirectory = tryResult3472 .inspect(); | |||
15170 | ([persistenceType, "aManager, this]()auto tryResult3472 = (([persistenceType, "aManager, this ]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile >, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT ) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469 ;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3470 )::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15179, mozilla::dom::quota::Severity::Error); return tryResult3470 .propagateErr(); }}; {auto tryResult3471 = (quotaManager-> EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)) ; if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3472.isErr()), 0))) { mozilla ::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3469.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult3470)::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult3470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15179, mozilla::dom::quota::Severity::Error); return tryResult3470.propagateErr(); }}; {auto tryResult3471 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); return tryResult3472 .propagateErr(); } const auto& dbDirectory = tryResult3472 .inspect(); | |||
15171 | -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> {auto tryResult3472 = (([persistenceType, "aManager, this ]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile >, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT ) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469 ;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3470 )::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15179, mozilla::dom::quota::Severity::Error); return tryResult3470 .propagateErr(); }}; {auto tryResult3471 = (quotaManager-> EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)) ; if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3472.isErr()), 0))) { mozilla ::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3469.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult3470)::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult3470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15179, mozilla::dom::quota::Severity::Error); return tryResult3470.propagateErr(); }}; {auto tryResult3471 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); return tryResult3472 .propagateErr(); } const auto& dbDirectory = tryResult3472 .inspect(); | |||
15172 | if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) {auto tryResult3472 = (([persistenceType, "aManager, this ]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile >, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT ) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469 ;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3470 )::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15179, mozilla::dom::quota::Severity::Error); return tryResult3470 .propagateErr(); }}; {auto tryResult3471 = (quotaManager-> EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)) ; if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3472.isErr()), 0))) { mozilla ::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3469.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult3470)::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult3470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15179, mozilla::dom::quota::Severity::Error); return tryResult3470.propagateErr(); }}; {auto tryResult3471 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); return tryResult3472 .propagateErr(); } const auto& dbDirectory = tryResult3472 .inspect(); | |||
15173 | QM_TRY_RETURN(auto tryResult3472 = (([persistenceType, "aManager, this ]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile >, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT ) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469 ;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3470 )::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15179, mozilla::dom::quota::Severity::Error); return tryResult3470 .propagateErr(); }}; {auto tryResult3471 = (quotaManager-> EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)) ; if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3472.isErr()), 0))) { mozilla ::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3469.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult3470)::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult3470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15179, mozilla::dom::quota::Severity::Error); return tryResult3470.propagateErr(); }}; {auto tryResult3471 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); return tryResult3472 .propagateErr(); } const auto& dbDirectory = tryResult3472 .inspect(); | |||
15174 | quotaManager->EnsurePersistentOriginIsInitializedInternal(auto tryResult3472 = (([persistenceType, "aManager, this ]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile >, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT ) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469 ;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3470 )::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15179, mozilla::dom::quota::Severity::Error); return tryResult3470 .propagateErr(); }}; {auto tryResult3471 = (quotaManager-> EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)) ; if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3472.isErr()), 0))) { mozilla ::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3469.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult3470)::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult3470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15179, mozilla::dom::quota::Severity::Error); return tryResult3470.propagateErr(); }}; {auto tryResult3471 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); return tryResult3472 .propagateErr(); } const auto& dbDirectory = tryResult3472 .inspect(); | |||
15175 | mOriginMetadata));auto tryResult3472 = (([persistenceType, "aManager, this ]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile >, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT ) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469 ;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3470 )::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15179, mozilla::dom::quota::Severity::Error); return tryResult3470 .propagateErr(); }}; {auto tryResult3471 = (quotaManager-> EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)) ; if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3472.isErr()), 0))) { mozilla ::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3469.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult3470)::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult3470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15179, mozilla::dom::quota::Severity::Error); return tryResult3470.propagateErr(); }}; {auto tryResult3471 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); return tryResult3472 .propagateErr(); } const auto& dbDirectory = tryResult3472 .inspect(); | |||
15176 | }auto tryResult3472 = (([persistenceType, "aManager, this ]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile >, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT ) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469 ;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3470 )::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15179, mozilla::dom::quota::Severity::Error); return tryResult3470 .propagateErr(); }}; {auto tryResult3471 = (quotaManager-> EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)) ; if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3472.isErr()), 0))) { mozilla ::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3469.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult3470)::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult3470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15179, mozilla::dom::quota::Severity::Error); return tryResult3470.propagateErr(); }}; {auto tryResult3471 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); return tryResult3472 .propagateErr(); } const auto& dbDirectory = tryResult3472 .inspect(); | |||
15177 | ||||
15178 | QM_TRY(MOZ_TO_RESULT(auto tryResult3472 = (([persistenceType, "aManager, this ]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile >, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT ) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469 ;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3470 )::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15179, mozilla::dom::quota::Severity::Error); return tryResult3470 .propagateErr(); }}; {auto tryResult3471 = (quotaManager-> EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)) ; if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3472.isErr()), 0))) { mozilla ::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3469.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult3470)::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult3470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15179, mozilla::dom::quota::Severity::Error); return tryResult3470.propagateErr(); }}; {auto tryResult3471 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); return tryResult3472 .propagateErr(); } const auto& dbDirectory = tryResult3472 .inspect(); | |||
15179 | quotaManager->EnsureTemporaryStorageIsInitializedInternal()));auto tryResult3472 = (([persistenceType, "aManager, this ]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile >, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT ) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469 ;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3470 )::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15179, mozilla::dom::quota::Severity::Error); return tryResult3470 .propagateErr(); }}; {auto tryResult3471 = (quotaManager-> EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)) ; if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3472.isErr()), 0))) { mozilla ::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3469.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult3470)::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult3470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15179, mozilla::dom::quota::Severity::Error); return tryResult3470.propagateErr(); }}; {auto tryResult3471 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); return tryResult3472 .propagateErr(); } const auto& dbDirectory = tryResult3472 .inspect(); | |||
15180 | QM_TRY_RETURN(quotaManager->EnsureTemporaryOriginIsInitializedInternal(auto tryResult3472 = (([persistenceType, "aManager, this ]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile >, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT ) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469 ;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3470 )::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15179, mozilla::dom::quota::Severity::Error); return tryResult3470 .propagateErr(); }}; {auto tryResult3471 = (quotaManager-> EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)) ; if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3472.isErr()), 0))) { mozilla ::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3469.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult3470)::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult3470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15179, mozilla::dom::quota::Severity::Error); return tryResult3470.propagateErr(); }}; {auto tryResult3471 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); return tryResult3472 .propagateErr(); } const auto& dbDirectory = tryResult3472 .inspect(); | |||
15181 | mOriginMetadata));auto tryResult3472 = (([persistenceType, "aManager, this ]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile >, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT ) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469 ;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3470 )::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15179, mozilla::dom::quota::Severity::Error); return tryResult3470 .propagateErr(); }}; {auto tryResult3471 = (quotaManager-> EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)) ; if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3472.isErr()), 0))) { mozilla ::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3469.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult3470)::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult3470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15179, mozilla::dom::quota::Severity::Error); return tryResult3470.propagateErr(); }}; {auto tryResult3471 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); return tryResult3472 .propagateErr(); } const auto& dbDirectory = tryResult3472 .inspect(); | |||
15182 | }()auto tryResult3472 = (([persistenceType, "aManager, this ]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile >, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT ) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469 ;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3470 )::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15179, mozilla::dom::quota::Severity::Error); return tryResult3470 .propagateErr(); }}; {auto tryResult3471 = (quotaManager-> EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)) ; if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3472.isErr()), 0))) { mozilla ::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3469.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult3470)::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult3470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15179, mozilla::dom::quota::Severity::Error); return tryResult3470.propagateErr(); }}; {auto tryResult3471 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); return tryResult3472 .propagateErr(); } const auto& dbDirectory = tryResult3472 .inspect(); | |||
15183 | .map([](const auto& res) { return res.first; })))auto tryResult3472 = (([persistenceType, "aManager, this ]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile >, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT ) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469 ;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3470 )::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15179, mozilla::dom::quota::Severity::Error); return tryResult3470 .propagateErr(); }}; {auto tryResult3471 = (quotaManager-> EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)) ; if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3472.isErr()), 0))) { mozilla ::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3469 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3469.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3469.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15175, mozilla::dom::quota::Severity::Error); } return tryResult3469;}; } {auto tryResult3470 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult3470)::ok_type>); if ((__builtin_expect(!!(tryResult3470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult3470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15179, mozilla::dom::quota::Severity::Error); return tryResult3470.propagateErr(); }}; {auto tryResult3471 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3471.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3471.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15181, mozilla::dom::quota::Severity::Error); } return tryResult3471;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15183, mozilla::dom::quota::Severity::Error); return tryResult3472 .propagateErr(); } const auto& dbDirectory = tryResult3472 .inspect();; | |||
15184 | ||||
15185 | QM_TRY(MOZ_TO_RESULT({auto tryResult3473 = (ToResult(dbDirectory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3473 )::ok_type>); if ((__builtin_expect(!!(tryResult3473.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbDirectory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15186, mozilla::dom::quota::Severity::Error); return tryResult3473 .propagateErr(); }} | |||
15186 | dbDirectory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult3473 = (ToResult(dbDirectory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3473 )::ok_type>); if ((__builtin_expect(!!(tryResult3473.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbDirectory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15186, mozilla::dom::quota::Severity::Error); return tryResult3473 .propagateErr(); }}; | |||
15187 | ||||
15188 | { | |||
15189 | QM_TRY_INSPECT(const bool& exists,auto tryResult3474 = (::mozilla::ToResultInvokeMember( (dbDirectory ), &::mozilla::detail::DerefedType<decltype(dbDirectory )>::Exists)); if ((__builtin_expect(!!(tryResult3474.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbDirectory), &::mozilla::detail::DerefedType<decltype(dbDirectory)>::Exists)" , tryResult3474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15190, mozilla::dom::quota::Severity::Error); return tryResult3474 .propagateErr(); } const bool& exists = tryResult3474.inspect (); | |||
15190 | MOZ_TO_RESULT_INVOKE_MEMBER(dbDirectory, Exists))auto tryResult3474 = (::mozilla::ToResultInvokeMember( (dbDirectory ), &::mozilla::detail::DerefedType<decltype(dbDirectory )>::Exists)); if ((__builtin_expect(!!(tryResult3474.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbDirectory), &::mozilla::detail::DerefedType<decltype(dbDirectory)>::Exists)" , tryResult3474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15190, mozilla::dom::quota::Severity::Error); return tryResult3474 .propagateErr(); } const bool& exists = tryResult3474.inspect ();; | |||
15191 | ||||
15192 | if (!exists) { | |||
15193 | QM_TRY(MOZ_TO_RESULT(dbDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))){auto tryResult3475 = (ToResult(dbDirectory->Create(nsIFile ::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename decltype(tryResult3475)::ok_type>); if ((__builtin_expect (!!(tryResult3475.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryResult3475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15193, mozilla::dom::quota::Severity::Error); return tryResult3475 .propagateErr(); }}; | |||
15194 | } | |||
15195 | #ifdef DEBUG1 | |||
15196 | else { | |||
15197 | bool isDirectory; | |||
15198 | MOZ_ASSERT(NS_SUCCEEDED(dbDirectory->IsDirectory(&isDirectory)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(dbDirectory ->IsDirectory(&isDirectory))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(dbDirectory->IsDirectory(&isDirectory) )), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(dbDirectory->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15198); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(dbDirectory->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 15198; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15199 | MOZ_ASSERT(isDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(isDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15199); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 15199; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15200 | } | |||
15201 | #endif | |||
15202 | } | |||
15203 | ||||
15204 | const auto databaseFilenameBase = | |||
15205 | GetDatabaseFilenameBase(databaseName, mOriginMetadata.mIsPrivate); | |||
15206 | ||||
15207 | QM_TRY_INSPECT(const auto& markerFile,auto tryResult3476 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)); if ((__builtin_expect(!!(tryResult3476 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)" , tryResult3476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15209, mozilla::dom::quota::Severity::Error); return tryResult3476 .propagateErr(); } const auto& markerFile = tryResult3476 .inspect(); | |||
15208 | CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix +auto tryResult3476 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)); if ((__builtin_expect(!!(tryResult3476 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)" , tryResult3476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15209, mozilla::dom::quota::Severity::Error); return tryResult3476 .propagateErr(); } const auto& markerFile = tryResult3476 .inspect(); | |||
15209 | databaseFilenameBase))auto tryResult3476 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)); if ((__builtin_expect(!!(tryResult3476 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)" , tryResult3476.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15209, mozilla::dom::quota::Severity::Error); return tryResult3476 .propagateErr(); } const auto& markerFile = tryResult3476 .inspect();; | |||
15210 | ||||
15211 | QM_TRY_INSPECT(const bool& exists,auto tryResult3477 = (::mozilla::ToResultInvokeMember( (markerFile ), &::mozilla::detail::DerefedType<decltype(markerFile )>::Exists)); if ((__builtin_expect(!!(tryResult3477.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (markerFile), &::mozilla::detail::DerefedType<decltype(markerFile)>::Exists)" , tryResult3477.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15212, mozilla::dom::quota::Severity::Error); return tryResult3477 .propagateErr(); } const bool& exists = tryResult3477.inspect (); | |||
15212 | MOZ_TO_RESULT_INVOKE_MEMBER(markerFile, Exists))auto tryResult3477 = (::mozilla::ToResultInvokeMember( (markerFile ), &::mozilla::detail::DerefedType<decltype(markerFile )>::Exists)); if ((__builtin_expect(!!(tryResult3477.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (markerFile), &::mozilla::detail::DerefedType<decltype(markerFile)>::Exists)" , tryResult3477.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15212, mozilla::dom::quota::Severity::Error); return tryResult3477 .propagateErr(); } const bool& exists = tryResult3477.inspect ();; | |||
15213 | ||||
15214 | if (exists) { | |||
15215 | // Delete the database and directroy since they should be deleted in | |||
15216 | // previous operation. | |||
15217 | // Note: only update usage to the QuotaManager when mEnforcingQuota == true | |||
15218 | QM_TRY(MOZ_TO_RESULT(RemoveDatabaseFilesAndDirectory({auto tryResult3478 = (ToResult(RemoveDatabaseFilesAndDirectory ( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))) ; static_assert(std::is_empty_v<typename decltype(tryResult3478 )::ok_type>); if ((__builtin_expect(!!(tryResult3478.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))" , tryResult3478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15221, mozilla::dom::quota::Severity::Error); return tryResult3478 .propagateErr(); }} | |||
15219 | *dbDirectory, databaseFilenameBase,{auto tryResult3478 = (ToResult(RemoveDatabaseFilesAndDirectory ( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))) ; static_assert(std::is_empty_v<typename decltype(tryResult3478 )::ok_type>); if ((__builtin_expect(!!(tryResult3478.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))" , tryResult3478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15221, mozilla::dom::quota::Severity::Error); return tryResult3478 .propagateErr(); }} | |||
15220 | mEnforcingQuota ? quotaManager : nullptr, persistenceType,{auto tryResult3478 = (ToResult(RemoveDatabaseFilesAndDirectory ( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))) ; static_assert(std::is_empty_v<typename decltype(tryResult3478 )::ok_type>); if ((__builtin_expect(!!(tryResult3478.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))" , tryResult3478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15221, mozilla::dom::quota::Severity::Error); return tryResult3478 .propagateErr(); }} | |||
15221 | mOriginMetadata, databaseName))){auto tryResult3478 = (ToResult(RemoveDatabaseFilesAndDirectory ( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))) ; static_assert(std::is_empty_v<typename decltype(tryResult3478 )::ok_type>); if ((__builtin_expect(!!(tryResult3478.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))" , tryResult3478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15221, mozilla::dom::quota::Severity::Error); return tryResult3478 .propagateErr(); }}; | |||
15222 | } | |||
15223 | ||||
15224 | QM_TRY_INSPECT(auto tryResult3479 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult3479.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)" , tryResult3479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15226, mozilla::dom::quota::Severity::Error); return tryResult3479 .propagateErr(); } const auto& dbFile = tryResult3479.inspect (); | |||
15225 | const auto& dbFile,auto tryResult3479 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult3479.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)" , tryResult3479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15226, mozilla::dom::quota::Severity::Error); return tryResult3479 .propagateErr(); } const auto& dbFile = tryResult3479.inspect (); | |||
15226 | CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix))auto tryResult3479 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult3479.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)" , tryResult3479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15226, mozilla::dom::quota::Severity::Error); return tryResult3479 .propagateErr(); } const auto& dbFile = tryResult3479.inspect ();; | |||
15227 | ||||
15228 | mTelemetryId = TelemetryIdForFile(dbFile); | |||
15229 | ||||
15230 | #ifdef DEBUG1 | |||
15231 | { | |||
15232 | QM_TRY_INSPECT(auto tryResult3480 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!( tryResult3480.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3480.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15234, mozilla::dom::quota::Severity::Error); return tryResult3480 .propagateErr(); } const auto& databaseFilePath = tryResult3480 .inspect(); | |||
15233 | const auto& databaseFilePath,auto tryResult3480 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!( tryResult3480.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3480.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15234, mozilla::dom::quota::Severity::Error); return tryResult3480 .propagateErr(); } const auto& databaseFilePath = tryResult3480 .inspect(); | |||
15234 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath))auto tryResult3480 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!( tryResult3480.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3480.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15234, mozilla::dom::quota::Severity::Error); return tryResult3480 .propagateErr(); } const auto& databaseFilePath = tryResult3480 .inspect();; | |||
15235 | ||||
15236 | MOZ_ASSERT(databaseFilePath == mDatabaseFilePath.ref())do { static_assert( mozilla::detail::AssertionConditionType< decltype(databaseFilePath == mDatabaseFilePath.ref())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(databaseFilePath == mDatabaseFilePath.ref()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("databaseFilePath == mDatabaseFilePath.ref()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15236); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFilePath == mDatabaseFilePath.ref()" ")"); do { *((volatile int*)__null) = 15236; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15237 | } | |||
15238 | #endif | |||
15239 | ||||
15240 | QM_TRY_INSPECT(auto tryResult3481 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult3481.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult3481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15243, mozilla::dom::quota::Severity::Error); return tryResult3481 .propagateErr(); } const auto& fmDirectory = tryResult3481 .inspect(); | |||
15241 | const auto& fmDirectory,auto tryResult3481 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult3481.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult3481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15243, mozilla::dom::quota::Severity::Error); return tryResult3481 .propagateErr(); } const auto& fmDirectory = tryResult3481 .inspect(); | |||
15242 | CloneFileAndAppend(*dbDirectory, databaseFilenameBase +auto tryResult3481 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult3481.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult3481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15243, mozilla::dom::quota::Severity::Error); return tryResult3481 .propagateErr(); } const auto& fmDirectory = tryResult3481 .inspect(); | |||
15243 | kFileManagerDirectoryNameSuffix))auto tryResult3481 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult3481.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult3481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15243, mozilla::dom::quota::Severity::Error); return tryResult3481 .propagateErr(); } const auto& fmDirectory = tryResult3481 .inspect();; | |||
15244 | ||||
15245 | IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get(); | |||
15246 | MOZ_ASSERT(idm)do { static_assert( mozilla::detail::AssertionConditionType< decltype(idm)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(idm))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("idm", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15246); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")"); do { *((volatile int*)__null) = 15246; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
15247 | ||||
15248 | SafeRefPtr<DatabaseFileManager> fileManager = idm->GetFileManager( | |||
15249 | persistenceType, mOriginMetadata.mOrigin, databaseName); | |||
15250 | ||||
15251 | if (!fileManager) { | |||
15252 | fileManager = MakeSafeRefPtr<DatabaseFileManager>( | |||
15253 | persistenceType, mOriginMetadata, databaseName, mDatabaseId.ref(), | |||
15254 | mDatabaseFilePath.ref(), mEnforcingQuota, mInPrivateBrowsing); | |||
15255 | } | |||
15256 | ||||
15257 | Maybe<const CipherKey> maybeKey = | |||
15258 | mInPrivateBrowsing | |||
15259 | ? Some(fileManager->MutableCipherKeyManagerRef().Ensure()) | |||
15260 | : Nothing(); | |||
15261 | ||||
15262 | MOZ_RELEASE_ASSERT(mInPrivateBrowsing == maybeKey.isSome())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInPrivateBrowsing == maybeKey.isSome())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInPrivateBrowsing == maybeKey.isSome()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInPrivateBrowsing == maybeKey.isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15262); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()" ")"); do { *((volatile int*)__null) = 15262; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15263 | ||||
15264 | QM_TRY_UNWRAP(auto tryResult3482 = (CreateStorageConnection(*dbFile, *fmDirectory , databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId , maybeKey)); if ((__builtin_expect(!!(tryResult3482.isErr()) , 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)" , tryResult3482.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15268, mozilla::dom::quota::Severity::Error); return tryResult3482 .propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult3482.unwrap(); | |||
15265 | NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult3482 = (CreateStorageConnection(*dbFile, *fmDirectory , databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId , maybeKey)); if ((__builtin_expect(!!(tryResult3482.isErr()) , 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)" , tryResult3482.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15268, mozilla::dom::quota::Severity::Error); return tryResult3482 .propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult3482.unwrap(); | |||
15266 | CreateStorageConnection(*dbFile, *fmDirectory, databaseName,auto tryResult3482 = (CreateStorageConnection(*dbFile, *fmDirectory , databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId , maybeKey)); if ((__builtin_expect(!!(tryResult3482.isErr()) , 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)" , tryResult3482.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15268, mozilla::dom::quota::Severity::Error); return tryResult3482 .propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult3482.unwrap(); | |||
15267 | mOriginMetadata.mOrigin, mDirectoryLockId,auto tryResult3482 = (CreateStorageConnection(*dbFile, *fmDirectory , databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId , maybeKey)); if ((__builtin_expect(!!(tryResult3482.isErr()) , 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)" , tryResult3482.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15268, mozilla::dom::quota::Severity::Error); return tryResult3482 .propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult3482.unwrap(); | |||
15268 | mTelemetryId, maybeKey))auto tryResult3482 = (CreateStorageConnection(*dbFile, *fmDirectory , databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId , maybeKey)); if ((__builtin_expect(!!(tryResult3482.isErr()) , 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)" , tryResult3482.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15268, mozilla::dom::quota::Severity::Error); return tryResult3482 .propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult3482.unwrap();; | |||
15269 | ||||
15270 | AutoSetProgressHandler asph; | |||
15271 | QM_TRY(MOZ_TO_RESULT(asph.Register(*connection, this))){auto tryResult3483 = (ToResult(asph.Register(*connection, this ))); static_assert(std::is_empty_v<typename decltype(tryResult3483 )::ok_type>); if ((__builtin_expect(!!(tryResult3483.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(asph.Register(*connection, this))" , tryResult3483.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15271, mozilla::dom::quota::Severity::Error); return tryResult3483 .propagateErr(); }}; | |||
15272 | ||||
15273 | QM_TRY(MOZ_TO_RESULT(LoadDatabaseInformation(*connection))){auto tryResult3484 = (ToResult(LoadDatabaseInformation(*connection ))); static_assert(std::is_empty_v<typename decltype(tryResult3484 )::ok_type>); if ((__builtin_expect(!!(tryResult3484.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(LoadDatabaseInformation(*connection))" , tryResult3484.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15273, mozilla::dom::quota::Severity::Error); return tryResult3484 .propagateErr(); }}; | |||
15274 | ||||
15275 | MOZ_ASSERT(mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata->mNextObjectStoreId > mMetadata-> mObjectStores.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15275); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count()" ")"); do { *((volatile int*)__null) = 15275; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15276 | MOZ_ASSERT(mMetadata->mNextIndexId > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata->mNextIndexId > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata->mNextIndexId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMetadata->mNextIndexId > 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15276); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mNextIndexId > 0" ")"); do { *((volatile int*)__null) = 15276; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15277 | ||||
15278 | // See if we need to do a versionchange transaction | |||
15279 | ||||
15280 | // Optional version semantics. | |||
15281 | if (!mRequestedVersion) { | |||
15282 | // If the requested version was not specified and the database was created, | |||
15283 | // treat it as if version 1 were requested. | |||
15284 | // Otherwise, treat it as if the current version were requested. | |||
15285 | mRequestedVersion = mMetadata->mCommonMetadata.version() == 0 | |||
15286 | ? 1 | |||
15287 | : mMetadata->mCommonMetadata.version(); | |||
15288 | } | |||
15289 | ||||
15290 | QM_TRY(OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion),{auto tryResult3485 = (OkIf(mMetadata->mCommonMetadata.version () <= mRequestedVersion)); static_assert(std::is_empty_v< typename decltype(tryResult3485)::ok_type>); if ((__builtin_expect (!!(tryResult3485.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3485.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15291, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_VERSION_ERR); }} | |||
15291 | NS_ERROR_DOM_INDEXEDDB_VERSION_ERR){auto tryResult3485 = (OkIf(mMetadata->mCommonMetadata.version () <= mRequestedVersion)); static_assert(std::is_empty_v< typename decltype(tryResult3485)::ok_type>); if ((__builtin_expect (!!(tryResult3485.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3485.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15291, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_VERSION_ERR); }}; | |||
15292 | ||||
15293 | if (!fileManager->Initialized()) { | |||
15294 | QM_TRY(MOZ_TO_RESULT(fileManager->Init(fmDirectory, *connection))){auto tryResult3486 = (ToResult(fileManager->Init(fmDirectory , *connection))); static_assert(std::is_empty_v<typename decltype (tryResult3486)::ok_type>); if ((__builtin_expect(!!(tryResult3486 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(fileManager->Init(fmDirectory, *connection))" , tryResult3486.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15294, mozilla::dom::quota::Severity::Error); return tryResult3486 .propagateErr(); }}; | |||
15295 | ||||
15296 | idm->AddFileManager(fileManager.clonePtr()); | |||
15297 | } | |||
15298 | ||||
15299 | mFileManager = std::move(fileManager); | |||
15300 | ||||
15301 | // Must close connection before dispatching otherwise we might race with the | |||
15302 | // connection thread which needs to open the same database. | |||
15303 | asph.Unregister(); | |||
15304 | ||||
15305 | MOZ_ALWAYS_SUCCEEDS(connection->Close())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (connection->Close())), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(connection->Close())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15305); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(connection->Close())" ")"); do { *((volatile int*)__null) = 15305; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
15306 | ||||
15307 | // Must set mState before dispatching otherwise we will race with the owning | |||
15308 | // thread. | |||
15309 | mState = (mMetadata->mCommonMetadata.version() == mRequestedVersion) | |||
15310 | ? State::SendingResults | |||
15311 | : State::BeginVersionChange; | |||
15312 | ||||
15313 | QM_TRY(MOZ_TO_RESULT({auto tryResult3487 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult3487)::ok_type>); if ((__builtin_expect (!!(tryResult3487.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult3487.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15314, mozilla::dom::quota::Severity::Error); return tryResult3487 .propagateErr(); }} | |||
15314 | DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult3487 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult3487)::ok_type>); if ((__builtin_expect (!!(tryResult3487.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult3487.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15314, mozilla::dom::quota::Severity::Error); return tryResult3487 .propagateErr(); }}; | |||
15315 | ||||
15316 | return NS_OK; | |||
15317 | } | |||
15318 | ||||
15319 | nsresult OpenDatabaseOp::LoadDatabaseInformation( | |||
15320 | mozIStorageConnection& aConnection) { | |||
15321 | AssertIsOnIOThread(); | |||
15322 | MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15322); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"); do { *((volatile int*)__null) = 15322; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15323 | ||||
15324 | { | |||
15325 | // Load version information. | |||
15326 | QM_TRY_INSPECT(auto tryResult3488 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult3488.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)" , tryResult3488.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15330, mozilla::dom::quota::Severity::Error); return tryResult3488 .propagateErr(); } const auto& stmt = tryResult3488.inspect (); | |||
15327 | const auto& stmt,auto tryResult3488 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult3488.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)" , tryResult3488.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15330, mozilla::dom::quota::Severity::Error); return tryResult3488 .propagateErr(); } const auto& stmt = tryResult3488.inspect (); | |||
15328 | CreateAndExecuteSingleStepStatement<auto tryResult3488 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult3488.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)" , tryResult3488.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15330, mozilla::dom::quota::Severity::Error); return tryResult3488 .propagateErr(); } const auto& stmt = tryResult3488.inspect (); | |||
15329 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult3488 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult3488.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)" , tryResult3488.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15330, mozilla::dom::quota::Severity::Error); return tryResult3488 .propagateErr(); } const auto& stmt = tryResult3488.inspect (); | |||
15330 | aConnection, "SELECT name, origin, version FROM database"_ns))auto tryResult3488 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult3488.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)" , tryResult3488.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15330, mozilla::dom::quota::Severity::Error); return tryResult3488 .propagateErr(); } const auto& stmt = tryResult3488.inspect ();; | |||
15331 | ||||
15332 | QM_TRY(OkIf(stmt), NS_ERROR_FILE_CORRUPTED){auto tryResult3489 = (OkIf(stmt)); static_assert(std::is_empty_v <typename decltype(tryResult3489)::ok_type>); if ((__builtin_expect (!!(tryResult3489.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3489.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(stmt)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15332, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(stmt)", tryTempError , NS_ERROR_FILE_CORRUPTED); }}; | |||
15333 | ||||
15334 | QM_TRY_INSPECT(const auto& databaseName, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3490 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!! (tryResult3490.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)" , tryResult3490.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15335, mozilla::dom::quota::Severity::Error); return tryResult3490 .propagateErr(); } const auto& databaseName = tryResult3490 .inspect(); | |||
15335 | nsString, stmt, GetString, 0))auto tryResult3490 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!! (tryResult3490.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)" , tryResult3490.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15335, mozilla::dom::quota::Severity::Error); return tryResult3490 .propagateErr(); } const auto& databaseName = tryResult3490 .inspect();; | |||
15336 | ||||
15337 | QM_TRY(OkIf(mCommonParams.metadata().name() == databaseName),{auto tryResult3491 = (OkIf(mCommonParams.metadata().name() == databaseName)); static_assert(std::is_empty_v<typename decltype (tryResult3491)::ok_type>); if ((__builtin_expect(!!(tryResult3491 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3491.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCommonParams.metadata().name() == databaseName)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15338, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mCommonParams.metadata().name() == databaseName)" , tryTempError, NS_ERROR_FILE_CORRUPTED); }} | |||
15338 | NS_ERROR_FILE_CORRUPTED){auto tryResult3491 = (OkIf(mCommonParams.metadata().name() == databaseName)); static_assert(std::is_empty_v<typename decltype (tryResult3491)::ok_type>); if ((__builtin_expect(!!(tryResult3491 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3491.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCommonParams.metadata().name() == databaseName)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15338, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mCommonParams.metadata().name() == databaseName)" , tryTempError, NS_ERROR_FILE_CORRUPTED); }}; | |||
15339 | ||||
15340 | QM_TRY_INSPECT(const auto& origin, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3492 = (::mozilla::ToResultInvoke< nsCString >( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetUTF8String), (stmt), 1)); if ((__builtin_expect (!!(tryResult3492.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetUTF8String), (stmt), 1)" , tryResult3492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15341, mozilla::dom::quota::Severity::Error); return tryResult3492 .propagateErr(); } const auto& origin = tryResult3492.inspect (); | |||
15341 | nsCString, stmt, GetUTF8String, 1))auto tryResult3492 = (::mozilla::ToResultInvoke< nsCString >( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetUTF8String), (stmt), 1)); if ((__builtin_expect (!!(tryResult3492.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetUTF8String), (stmt), 1)" , tryResult3492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15341, mozilla::dom::quota::Severity::Error); return tryResult3492 .propagateErr(); } const auto& origin = tryResult3492.inspect ();; | |||
15342 | ||||
15343 | // We can't just compare these strings directly. See bug 1339081 comment 69. | |||
15344 | QM_TRY(OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin,{auto tryResult3493 = (OkIf(QuotaManager::AreOriginsEqualOnDisk (mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v <typename decltype(tryResult3493)::ok_type>); if ((__builtin_expect (!!(tryResult3493.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3493.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15346, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))" , tryTempError, NS_ERROR_FILE_CORRUPTED); }} | |||
15345 | origin)),{auto tryResult3493 = (OkIf(QuotaManager::AreOriginsEqualOnDisk (mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v <typename decltype(tryResult3493)::ok_type>); if ((__builtin_expect (!!(tryResult3493.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3493.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15346, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))" , tryTempError, NS_ERROR_FILE_CORRUPTED); }} | |||
15346 | NS_ERROR_FILE_CORRUPTED){auto tryResult3493 = (OkIf(QuotaManager::AreOriginsEqualOnDisk (mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v <typename decltype(tryResult3493)::ok_type>); if ((__builtin_expect (!!(tryResult3493.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3493.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15346, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))" , tryTempError, NS_ERROR_FILE_CORRUPTED); }}; | |||
15347 | ||||
15348 | QM_TRY_INSPECT(const int64_t& version,auto tryResult3494 = (::mozilla::ToResultInvokeMember( (stmt) , &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 2)); if ((__builtin_expect(!!(tryResult3494.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 2)" , tryResult3494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15349, mozilla::dom::quota::Severity::Error); return tryResult3494 .propagateErr(); } const int64_t& version = tryResult3494 .inspect(); | |||
15349 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 2))auto tryResult3494 = (::mozilla::ToResultInvokeMember( (stmt) , &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 2)); if ((__builtin_expect(!!(tryResult3494.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 2)" , tryResult3494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15349, mozilla::dom::quota::Severity::Error); return tryResult3494 .propagateErr(); } const int64_t& version = tryResult3494 .inspect();; | |||
15350 | ||||
15351 | mMetadata->mCommonMetadata.version() = uint64_t(version); | |||
15352 | } | |||
15353 | ||||
15354 | ObjectStoreTable& objectStores = mMetadata->mObjectStores; | |||
15355 | ||||
15356 | QM_TRY_INSPECT(auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15357 | const auto& lastObjectStoreId,auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15358 | ([&aConnection,auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15359 | &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> {auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15360 | // Load object store names and ids.auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15361 | QM_TRY_INSPECT(auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15362 | const auto& stmt,auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15363 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15364 | nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15365 | "SELECT id, auto_increment, name, key_path "auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15366 | "FROM object_store"_ns));auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15367 | ||||
15368 | IndexOrObjectStoreId lastObjectStoreId = 0;auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15369 | ||||
15370 | QM_TRY(CollectWhileHasResult(auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15371 | *stmt,auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15372 | [&lastObjectStoreId, &objectStores,auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15373 | usedIds = Maybe<nsTHashSet<uint64_t>>{},auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15374 | usedNames = Maybe<nsTHashSet<nsString>>{}](auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15375 | auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15376 | QM_TRY_INSPECT(const IndexOrObjectStoreId& objectStoreId,auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15377 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 0));auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15378 | ||||
15379 | if (!usedIds) {auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15380 | usedIds.emplace();auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15381 | }auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15382 | ||||
15383 | QM_TRY(OkIf(objectStoreId > 0), Err(NS_ERROR_FILE_CORRUPTED));auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15384 | QM_TRY(OkIf(!usedIds.ref().Contains(objectStoreId)),auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15385 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15386 | ||||
15387 | QM_TRY(OkIf(usedIds.ref().Insert(objectStoreId, fallible)),auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15388 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15389 | ||||
15390 | nsString name;auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15391 | QM_TRY(MOZ_TO_RESULT(stmt.GetString(2, name)));auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15392 | ||||
15393 | if (!usedNames) {auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15394 | usedNames.emplace();auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15395 | }auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15396 | ||||
15397 | QM_TRY(OkIf(!usedNames.ref().Contains(name)),auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15398 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15399 | ||||
15400 | QM_TRY(OkIf(usedNames.ref().Insert(name, fallible)),auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15401 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15402 | ||||
15403 | ObjectStoreMetadata commonMetadata;auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15404 | commonMetadata.id() = objectStoreId;auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15405 | commonMetadata.name() = std::move(name);auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15406 | ||||
15407 | QM_TRY_INSPECT(auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15408 | const int32_t& columnType,auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15409 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetTypeOfIndex, 3));auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15410 | ||||
15411 | if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) {auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15412 | commonMetadata.keyPath() = KeyPath(0);auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15413 | } else {auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15414 | MOZ_ASSERT(columnType == mozIStorageStatement::VALUE_TYPE_TEXT);auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15415 | ||||
15416 | nsString keyPathSerialization;auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15417 | QM_TRY(MOZ_TO_RESULT(stmt.GetString(3, keyPathSerialization)));auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15418 | ||||
15419 | commonMetadata.keyPath() =auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15420 | KeyPath::DeserializeFromString(keyPathSerialization);auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15421 | QM_TRY(OkIf(commonMetadata.keyPath().IsValid()),auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15422 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15423 | }auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15424 | ||||
15425 | QM_TRY_INSPECT(const int64_t& nextAutoIncrementId,auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15426 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1));auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15427 | ||||
15428 | commonMetadata.autoIncrement() = !!nextAutoIncrementId;auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15429 | ||||
15430 | QM_TRY(OkIf(objectStores.InsertOrUpdate(auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15431 | objectStoreId,auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15432 | MakeSafeRefPtr<FullObjectStoreMetadata>(auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15433 | std::move(commonMetadata),auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15434 | FullObjectStoreMetadata::AutoIncrementIds{auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15435 | nextAutoIncrementId, nextAutoIncrementId}),auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15436 | fallible)),auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15437 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15438 | ||||
15439 | lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId);auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15440 | ||||
15441 | return Ok{};auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15442 | }));auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15443 | ||||
15444 | return lastObjectStoreId;auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect(); | |||
15445 | }()))auto tryResult3509 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult3495 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult3495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15366, mozilla::dom::quota::Severity::Error); return tryResult3495 .propagateErr(); } const auto& stmt = tryResult3495.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)" , tryResult3496.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15377, mozilla::dom::quota::Severity::Error); return tryResult3496 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult3497)::ok_type >); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3498)::ok_type >); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3499)::ok_type >); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3500)::ok_type >); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3500.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15391, mozilla::dom::quota::Severity::Error); return tryResult3500 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult3501 )::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3502)::ok_type >); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)" , tryResult3503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15409, mozilla::dom::quota::Severity::Error); return tryResult3503 .propagateErr(); } const int32_t& columnType = tryResult3503 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15414); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 15414; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect (!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult3504 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15417, mozilla::dom::quota::Severity::Error); return tryResult3504 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect (!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ( (__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15426, mozilla::dom::quota::Severity::Error); return tryResult3506 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect (!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult3508 )::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult3508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15442, mozilla::dom::quota::Severity::Error); return tryResult3508 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult3509.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3495 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult3495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult3495.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15366, mozilla::dom::quota::Severity::Error); return tryResult3495.propagateErr(); } const auto& stmt = tryResult3495.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult3508 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult3496.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3500.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult3503.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15414); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3504.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3506.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3508)::ok_type>); if ((__builtin_expect(!!(tryResult3508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3496 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult3496.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult3496.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15377, mozilla::dom::quota::Severity::Error); return tryResult3496.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3496.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult3497 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3497)::ok_type>); if ((__builtin_expect(!!(tryResult3497.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3497.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15383, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3498 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3498)::ok_type>); if ((__builtin_expect(!!(tryResult3498.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3498.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15385, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3499 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3499)::ok_type>); if ((__builtin_expect(!!(tryResult3499.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3499.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15388, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3500 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3500)::ok_type>); if ((__builtin_expect(!!(tryResult3500.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3500.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15391, mozilla::dom::quota::Severity::Error); return tryResult3500.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult3501 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult3501)::ok_type>); if ((__builtin_expect(!!(tryResult3501.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3501.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3502 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3502)::ok_type>); if ((__builtin_expect(!!(tryResult3502.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3502.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15401, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult3503 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult3503.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult3503.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15409, mozilla::dom::quota::Severity::Error); return tryResult3503.propagateErr(); } const int32_t& columnType = tryResult3503.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15414); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15414; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult3504 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3504)::ok_type>); if ((__builtin_expect(!!(tryResult3504.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3504.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15417, mozilla::dom::quota::Severity::Error); return tryResult3504.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3505 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3505)::ok_type>); if ((__builtin_expect(!!(tryResult3505.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3505.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15422, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult3506 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3506.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3506.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15426, mozilla::dom::quota::Severity::Error); return tryResult3506.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult3506.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult3507 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3507)::ok_type>); if ((__builtin_expect(!!(tryResult3507.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3507.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult3508.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15442, mozilla::dom::quota::Severity::Error); return tryResult3508.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult3509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15445, mozilla::dom::quota::Severity::Error); return tryResult3509 .propagateErr(); } const auto& lastObjectStoreId = tryResult3509 .inspect();; | |||
15446 | ||||
15447 | QM_TRY_INSPECT(auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15448 | const auto& lastIndexId,auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15449 | ([this, &aConnection,auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15450 | &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> {auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15451 | // Load index informationauto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15452 | QM_TRY_INSPECT(auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15453 | const auto& stmt,auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15454 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15455 | nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15456 | "SELECT "auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15457 | "id, object_store_id, name, key_path, "auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15458 | "unique_index, multientry, "auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15459 | "locale, is_auto_locale "auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15460 | "FROM object_store_index"_ns));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15461 | ||||
15462 | IndexOrObjectStoreId lastIndexId = 0;auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15463 | ||||
15464 | QM_TRY(CollectWhileHasResult(auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15465 | *stmt,auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15466 | [this, &lastIndexId, &objectStores, &aConnection,auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15467 | usedIds = Maybe<nsTHashSet<uint64_t>>{},auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15468 | usedNames = Maybe<nsTHashSet<nsString>>{}](auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15469 | auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15470 | QM_TRY_INSPECT(const IndexOrObjectStoreId& objectStoreId,auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15471 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15472 | ||||
15473 | // XXX Why does this return NS_ERROR_OUT_OF_MEMORY if we don'tauto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15474 | // know the object store id?auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15475 | ||||
15476 | auto objectStoreMetadata = objectStores.Lookup(objectStoreId);auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15477 | QM_TRY(OkIf(static_cast<bool>(objectStoreMetadata)),auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15478 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15479 | ||||
15480 | MOZ_ASSERT((*objectStoreMetadata)->mCommonMetadata.id() ==auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15481 | objectStoreId);auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15482 | ||||
15483 | IndexOrObjectStoreId indexId;auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15484 | QM_TRY(MOZ_TO_RESULT(stmt.GetInt64(0, &indexId)));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15485 | ||||
15486 | if (!usedIds) {auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15487 | usedIds.emplace();auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15488 | }auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15489 | ||||
15490 | QM_TRY(OkIf(indexId > 0), Err(NS_ERROR_FILE_CORRUPTED));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15491 | QM_TRY(OkIf(!usedIds.ref().Contains(indexId)),auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15492 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15493 | ||||
15494 | QM_TRY(OkIf(usedIds.ref().Insert(indexId, fallible)),auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15495 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15496 | ||||
15497 | nsString name;auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15498 | QM_TRY(MOZ_TO_RESULT(stmt.GetString(2, name)));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15499 | ||||
15500 | const nsAutoString hashName =auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15501 | IntToString(indexId) + u":"_ns + name;auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15502 | ||||
15503 | if (!usedNames) {auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15504 | usedNames.emplace();auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15505 | }auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15506 | ||||
15507 | QM_TRY(OkIf(!usedNames.ref().Contains(hashName)),auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15508 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15509 | ||||
15510 | QM_TRY(OkIf(usedNames.ref().Insert(hashName, fallible)),auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15511 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15512 | ||||
15513 | auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>();auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15514 | indexMetadata->mCommonMetadata.id() = indexId;auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15515 | indexMetadata->mCommonMetadata.name() = name;auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15516 | ||||
15517 | #ifdef DEBUGauto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15518 | {auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15519 | int32_t columnType;auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15520 | nsresult rv = stmt.GetTypeOfIndex(3, &columnType);auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15521 | MOZ_ASSERT(NS_SUCCEEDED(rv));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15522 | MOZ_ASSERT(columnType != mozIStorageStatement::VALUE_TYPE_NULL);auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15523 | }auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15524 | #endifauto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15525 | ||||
15526 | nsString keyPathSerialization;auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15527 | QM_TRY(MOZ_TO_RESULT(stmt.GetString(3, keyPathSerialization)));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15528 | ||||
15529 | indexMetadata->mCommonMetadata.keyPath() =auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15530 | KeyPath::DeserializeFromString(keyPathSerialization);auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15531 | QM_TRY(OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid()),auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15532 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15533 | ||||
15534 | int32_t scratch;auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15535 | QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(4, &scratch)));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15536 | ||||
15537 | indexMetadata->mCommonMetadata.unique() = !!scratch;auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15538 | ||||
15539 | QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(5, &scratch)));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15540 | ||||
15541 | indexMetadata->mCommonMetadata.multiEntry() = !!scratch;auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15542 | ||||
15543 | const bool localeAware = !stmt.IsNull(6);auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15544 | if (localeAware) {auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15545 | QM_TRY(MOZ_TO_RESULT(stmt.GetUTF8String(auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15546 | 6, indexMetadata->mCommonMetadata.locale())));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15547 | ||||
15548 | QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(7, &scratch)));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15549 | ||||
15550 | indexMetadata->mCommonMetadata.autoLocale() = !!scratch;auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15551 | ||||
15552 | // Update locale-aware indexes if necessaryauto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15553 | const nsCString& indexedLocale =auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15554 | indexMetadata->mCommonMetadata.locale();auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15555 | const bool& isAutoLocale =auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15556 | indexMetadata->mCommonMetadata.autoLocale();auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15557 | const nsCString& systemLocale = mFactory->GetSystemLocale();auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15558 | if (!systemLocale.IsEmpty() && isAutoLocale &&auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15559 | !indexedLocale.Equals(systemLocale)) {auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15560 | QM_TRY(MOZ_TO_RESULT(UpdateLocaleAwareIndex(auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15561 | aConnection, indexMetadata->mCommonMetadata,auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15562 | systemLocale)));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15563 | }auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15564 | }auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15565 | ||||
15566 | QM_TRY(OkIf((*objectStoreMetadata)auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15567 | ->mIndexes.InsertOrUpdate(auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15568 | indexId, std::move(indexMetadata), fallible)),auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15569 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15570 | ||||
15571 | lastIndexId = std::max(lastIndexId, indexId);auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15572 | ||||
15573 | return Ok{};auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15574 | }));auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15575 | ||||
15576 | return lastIndexId;auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect(); | |||
15577 | }()))auto tryResult3529 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult3510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15460, mozilla::dom::quota::Severity::Error); return tryResult3510 .propagateErr(); } const auto& stmt = tryResult3510.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15471, mozilla::dom::quota::Severity::Error); return tryResult3511 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect (!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { *((volatile int*)__null) = 15481; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult3513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15484, mozilla::dom::quota::Severity::Error); return tryResult3513 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect (!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3515)::ok_type> ); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3516)::ok_type >); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult3517)::ok_type >); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult3517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15498, mozilla::dom::quota::Severity::Error); return tryResult3517 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult3518 )::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult3519)::ok_type >); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { *((volatile int*)__null) = 15521; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { *((volatile int*)__null) = 15522; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult3520)::ok_type> ); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult3520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15527, mozilla::dom::quota::Severity::Error); return tryResult3520 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult3522 )::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult3522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15535, mozilla::dom::quota::Severity::Error); return tryResult3522 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect (!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult3523.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15539, mozilla::dom::quota::Severity::Error); return tryResult3523 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult3524)::ok_type >); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult3524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15546, mozilla::dom::quota::Severity::Error); return tryResult3524 .propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect (!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult3525.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15548, mozilla::dom::quota::Severity::Error); return tryResult3525 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3526 )::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult3526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15562, mozilla::dom::quota::Severity::Error); return tryResult3526 .propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult3528)::ok_type >); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult3528.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15574, mozilla::dom::quota::Severity::Error); return tryResult3528 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult3529.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult3510 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult3510.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult3510.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15460, mozilla::dom::quota::Severity::Error); return tryResult3510.propagateErr(); } const auto& stmt = tryResult3510.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult3528 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult3511.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15481); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult3513.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult3517.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15521); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15522); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult3520.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult3522.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult3523.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult3524.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult3525.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult3526.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult3528)::ok_type>); if ((__builtin_expect(!!(tryResult3528.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3511 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult3511.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult3511.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15471, mozilla::dom::quota::Severity::Error); return tryResult3511.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult3511.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult3512 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult3512)::ok_type>); if ((__builtin_expect(!!(tryResult3512.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3512.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15481); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15481; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult3513 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3513)::ok_type>); if ((__builtin_expect(!!(tryResult3513.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult3513.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15484, mozilla::dom::quota::Severity::Error); return tryResult3513.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult3514 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult3514)::ok_type>); if ((__builtin_expect(!!(tryResult3514.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3514.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15490, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3515 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3515)::ok_type>); if ((__builtin_expect(!!(tryResult3515.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3515.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15492, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3516 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3516)::ok_type>); if ((__builtin_expect(!!(tryResult3516.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3516.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult3517 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult3517)::ok_type>); if ((__builtin_expect(!!(tryResult3517.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult3517.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15498, mozilla::dom::quota::Severity::Error); return tryResult3517.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult3518 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult3518)::ok_type>); if ((__builtin_expect(!!(tryResult3518.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3518.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult3519 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3519)::ok_type>); if ((__builtin_expect(!!(tryResult3519.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3519.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15511, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15521); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15521; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15522); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15522; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult3520 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult3520)::ok_type>); if ((__builtin_expect(!!(tryResult3520.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult3520.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15527, mozilla::dom::quota::Severity::Error); return tryResult3520.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult3521 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult3521)::ok_type>); if ((__builtin_expect(!!(tryResult3521.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3521.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult3522 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3522)::ok_type>); if ((__builtin_expect(!!(tryResult3522.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult3522.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15535, mozilla::dom::quota::Severity::Error); return tryResult3522.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult3523 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3523)::ok_type>); if ((__builtin_expect(!!(tryResult3523.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult3523.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); return tryResult3523.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult3524 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3524)::ok_type>); if ((__builtin_expect(!!(tryResult3524.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult3524.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult3524.propagateErr(); }}; {auto tryResult3525 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult3525)::ok_type>); if ((__builtin_expect(!!(tryResult3525.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult3525.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15548, mozilla::dom::quota::Severity::Error); return tryResult3525.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult3526 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3526)::ok_type>); if ((__builtin_expect(!!(tryResult3526.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult3526.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15562, mozilla::dom::quota::Severity::Error); return tryResult3526.propagateErr(); }}; } } {auto tryResult3527 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult3527)::ok_type>); if ((__builtin_expect(!!(tryResult3527.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3527.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult3528.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15574, mozilla::dom::quota::Severity::Error); return tryResult3528.propagateErr(); }}; return lastIndexId; }())" , tryResult3529.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15577, mozilla::dom::quota::Severity::Error); return tryResult3529 .propagateErr(); } const auto& lastIndexId = tryResult3529 .inspect();; | |||
15578 | ||||
15579 | QM_TRY(OkIf(lastObjectStoreId != INT64_MAX),{auto tryResult3530 = (OkIf(lastObjectStoreId != (9223372036854775807L ))); static_assert(std::is_empty_v<typename decltype(tryResult3530 )::ok_type>); if ((__builtin_expect(!!(tryResult3530.isErr ()), 0))) { auto tryTempError = tryResult3530.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(lastObjectStoreId != (9223372036854775807L))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15580, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15580, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(lastObjectStoreId != (9223372036854775807L))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
15580 | NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult3530 = (OkIf(lastObjectStoreId != (9223372036854775807L ))); static_assert(std::is_empty_v<typename decltype(tryResult3530 )::ok_type>); if ((__builtin_expect(!!(tryResult3530.isErr ()), 0))) { auto tryTempError = tryResult3530.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(lastObjectStoreId != (9223372036854775807L))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15580, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15580, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(lastObjectStoreId != (9223372036854775807L))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | |||
15581 | QM_TRY(OkIf(lastIndexId != INT64_MAX), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult3531 = (OkIf(lastIndexId != (9223372036854775807L ))); static_assert(std::is_empty_v<typename decltype(tryResult3531 )::ok_type>); if ((__builtin_expect(!!(tryResult3531.isErr ()), 0))) { auto tryTempError = tryResult3531.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(lastIndexId != (9223372036854775807L))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15582, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15582, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(lastIndexId != (9223372036854775807L))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
15582 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult3531 = (OkIf(lastIndexId != (9223372036854775807L ))); static_assert(std::is_empty_v<typename decltype(tryResult3531 )::ok_type>); if ((__builtin_expect(!!(tryResult3531.isErr ()), 0))) { auto tryTempError = tryResult3531.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(lastIndexId != (9223372036854775807L))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15582, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15582, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(lastIndexId != (9223372036854775807L))" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | |||
15583 | ||||
15584 | mMetadata->mNextObjectStoreId = lastObjectStoreId + 1; | |||
15585 | mMetadata->mNextIndexId = lastIndexId + 1; | |||
15586 | ||||
15587 | return NS_OK; | |||
15588 | } | |||
15589 | ||||
15590 | /* static */ | |||
15591 | nsresult OpenDatabaseOp::UpdateLocaleAwareIndex( | |||
15592 | mozIStorageConnection& aConnection, const IndexMetadata& aIndexMetadata, | |||
15593 | const nsCString& aLocale) { | |||
15594 | const auto indexTable = | |||
15595 | aIndexMetadata.unique() ? "unique_index_data"_ns : "index_data"_ns; | |||
15596 | ||||
15597 | // The parameter names are not used, parameters are bound by index only | |||
15598 | // locally in the same function. | |||
15599 | const nsCString readQuery = "SELECT value, object_data_key FROM "_ns + | |||
15600 | indexTable + " WHERE index_id = :index_id"_ns; | |||
15601 | ||||
15602 | QM_TRY_INSPECT(const auto& readStmt,auto tryResult3532 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult3532 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)" , tryResult3532.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15605, mozilla::dom::quota::Severity::Error); return tryResult3532 .propagateErr(); } const auto& readStmt = tryResult3532.inspect (); | |||
15603 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3532 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult3532 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)" , tryResult3532.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15605, mozilla::dom::quota::Severity::Error); return tryResult3532 .propagateErr(); } const auto& readStmt = tryResult3532.inspect (); | |||
15604 | nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult3532 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult3532 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)" , tryResult3532.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15605, mozilla::dom::quota::Severity::Error); return tryResult3532 .propagateErr(); } const auto& readStmt = tryResult3532.inspect (); | |||
15605 | CreateStatement, readQuery))auto tryResult3532 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult3532 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)" , tryResult3532.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15605, mozilla::dom::quota::Severity::Error); return tryResult3532 .propagateErr(); } const auto& readStmt = tryResult3532.inspect ();; | |||
15606 | ||||
15607 | QM_TRY(MOZ_TO_RESULT(readStmt->BindInt64ByIndex(0, aIndexMetadata.id()))){auto tryResult3533 = (ToResult(readStmt->BindInt64ByIndex (0, aIndexMetadata.id()))); static_assert(std::is_empty_v< typename decltype(tryResult3533)::ok_type>); if ((__builtin_expect (!!(tryResult3533.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(readStmt->BindInt64ByIndex(0, aIndexMetadata.id()))" , tryResult3533.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15607, mozilla::dom::quota::Severity::Error); return tryResult3533 .propagateErr(); }}; | |||
15608 | ||||
15609 | QM_TRY(CollectWhileHasResult({auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15610 | *readStmt,{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15611 | [&aConnection, &indexTable, &aIndexMetadata, &aLocale,{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15612 | writeStmt = nsCOMPtr<mozIStorageStatement>{}]({auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15613 | auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15614 | if (!writeStmt) {{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15615 | QM_TRY_UNWRAP({auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15616 | writeStmt,{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15617 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15618 | nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15619 | "UPDATE "_ns + indexTable + "SET value_locale = :"_ns +{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15620 | kStmtParamNameValueLocale + " WHERE index_id = :"_ns +{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15621 | kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15622 | kStmtParamNameValue + " AND object_data_key = :"_ns +{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15623 | kStmtParamNameObjectDataKey));{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15624 | }{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15625 | ||||
15626 | mozStorageStatementScoper scoper(writeStmt);{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15627 | QM_TRY(MOZ_TO_RESULT(writeStmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15628 | aIndexMetadata.id())));{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15629 | ||||
15630 | Key oldKey, objectStorePosition;{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15631 | QM_TRY(MOZ_TO_RESULT(oldKey.SetFromStatement(&readStmt, 0)));{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15632 | QM_TRY(MOZ_TO_RESULT({auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15633 | oldKey.BindToStatement(writeStmt, kStmtParamNameValue)));{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15634 | ||||
15635 | QM_TRY_INSPECT(const auto& newSortKey,{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15636 | oldKey.ToLocaleAwareKey(aLocale));{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15637 | ||||
15638 | QM_TRY(MOZ_TO_RESULT({auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15639 | newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale)));{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15640 | QM_TRY({auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15641 | MOZ_TO_RESULT(objectStorePosition.SetFromStatement(&readStmt, 1)));{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15642 | QM_TRY(MOZ_TO_RESULT(objectStorePosition.BindToStatement({auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15643 | writeStmt, kStmtParamNameObjectDataKey)));{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15644 | ||||
15645 | QM_TRY(MOZ_TO_RESULT(writeStmt->Execute()));{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15646 | ||||
15647 | return Ok{};{auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }} | |||
15648 | })){auto tryResult3543 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult3534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15623, mozilla::dom::quota::Severity::Error); return tryResult3534 .propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult3535 )::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult3535.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult3535 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3536)::ok_type >); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult3536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15631, mozilla::dom::quota::Severity::Error); return tryResult3536 .propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect (!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult3537.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15633, mozilla::dom::quota::Severity::Error); return tryResult3537 .propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult3538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15636, mozilla::dom::quota::Severity::Error); return tryResult3538 .propagateErr(); } const auto& newSortKey = tryResult3538 .inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult3539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15639, mozilla::dom::quota::Severity::Error); return tryResult3539 .propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect (!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult3540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15641, mozilla::dom::quota::Severity::Error); return tryResult3540 .propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult3541)::ok_type >); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult3541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15643, mozilla::dom::quota::Severity::Error); return tryResult3541 .propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult3542.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15645, mozilla::dom::quota::Severity::Error); return tryResult3542 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3543)::ok_type>); if ((__builtin_expect (!!(tryResult3543.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult3534 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult3534.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult3534.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15623, mozilla::dom::quota::Severity::Error); return tryResult3534.propagateErr(); } writeStmt = tryResult3534.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult3535 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3535)::ok_type>); if ((__builtin_expect(!!(tryResult3535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult3535.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15628, mozilla::dom::quota::Severity::Error); return tryResult3535.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult3536 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3536)::ok_type>); if ((__builtin_expect(!!(tryResult3536.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult3536.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15631, mozilla::dom::quota::Severity::Error); return tryResult3536.propagateErr(); }}; {auto tryResult3537 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3537)::ok_type>); if ((__builtin_expect(!!(tryResult3537.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult3537.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult3537.propagateErr(); }}; auto tryResult3538 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult3538.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult3538.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15636, mozilla::dom::quota::Severity::Error); return tryResult3538.propagateErr(); } const auto& newSortKey = tryResult3538.inspect();; {auto tryResult3539 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult3539)::ok_type>); if ((__builtin_expect(!!(tryResult3539.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult3539.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15639, mozilla::dom::quota::Severity::Error); return tryResult3539.propagateErr(); }}; {auto tryResult3540 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult3540)::ok_type>); if ((__builtin_expect(!!(tryResult3540.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult3540.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15641, mozilla::dom::quota::Severity::Error); return tryResult3540.propagateErr(); }}; {auto tryResult3541 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3541)::ok_type>); if ((__builtin_expect(!!(tryResult3541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult3541.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult3541.propagateErr(); }}; {auto tryResult3542 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3542)::ok_type>); if ((__builtin_expect(!!(tryResult3542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult3542.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15645, mozilla::dom::quota::Severity::Error); return tryResult3542.propagateErr(); }}; return Ok{}; })" , tryResult3543.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult3543 .propagateErr(); }}; | |||
15649 | ||||
15650 | // The parameter names are not used, parameters are bound by index only | |||
15651 | // locally in the same function. | |||
15652 | static constexpr auto metaQuery = | |||
15653 | "UPDATE object_store_index SET " | |||
15654 | "locale = :locale WHERE id = :id"_ns; | |||
15655 | ||||
15656 | QM_TRY_INSPECT(const auto& metaStmt,auto tryResult3544 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult3544 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)" , tryResult3544.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15659, mozilla::dom::quota::Severity::Error); return tryResult3544 .propagateErr(); } const auto& metaStmt = tryResult3544.inspect (); | |||
15657 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3544 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult3544 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)" , tryResult3544.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15659, mozilla::dom::quota::Severity::Error); return tryResult3544 .propagateErr(); } const auto& metaStmt = tryResult3544.inspect (); | |||
15658 | nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult3544 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult3544 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)" , tryResult3544.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15659, mozilla::dom::quota::Severity::Error); return tryResult3544 .propagateErr(); } const auto& metaStmt = tryResult3544.inspect (); | |||
15659 | CreateStatement, metaQuery))auto tryResult3544 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult3544 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)" , tryResult3544.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15659, mozilla::dom::quota::Severity::Error); return tryResult3544 .propagateErr(); } const auto& metaStmt = tryResult3544.inspect ();; | |||
15660 | ||||
15661 | QM_TRY(MOZ_TO_RESULT({auto tryResult3545 = (ToResult(metaStmt->BindStringByIndex (0, NS_ConvertASCIItoUTF16(aLocale)))); static_assert(std::is_empty_v <typename decltype(tryResult3545)::ok_type>); if ((__builtin_expect (!!(tryResult3545.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))" , tryResult3545.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15662, mozilla::dom::quota::Severity::Error); return tryResult3545 .propagateErr(); }} | |||
15662 | metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))){auto tryResult3545 = (ToResult(metaStmt->BindStringByIndex (0, NS_ConvertASCIItoUTF16(aLocale)))); static_assert(std::is_empty_v <typename decltype(tryResult3545)::ok_type>); if ((__builtin_expect (!!(tryResult3545.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))" , tryResult3545.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15662, mozilla::dom::quota::Severity::Error); return tryResult3545 .propagateErr(); }}; | |||
15663 | ||||
15664 | QM_TRY(MOZ_TO_RESULT(metaStmt->BindInt64ByIndex(1, aIndexMetadata.id()))){auto tryResult3546 = (ToResult(metaStmt->BindInt64ByIndex (1, aIndexMetadata.id()))); static_assert(std::is_empty_v< typename decltype(tryResult3546)::ok_type>); if ((__builtin_expect (!!(tryResult3546.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metaStmt->BindInt64ByIndex(1, aIndexMetadata.id()))" , tryResult3546.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15664, mozilla::dom::quota::Severity::Error); return tryResult3546 .propagateErr(); }}; | |||
15665 | ||||
15666 | QM_TRY(MOZ_TO_RESULT(metaStmt->Execute())){auto tryResult3547 = (ToResult(metaStmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3547)::ok_type >); if ((__builtin_expect(!!(tryResult3547.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(metaStmt->Execute())" , tryResult3547.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15666, mozilla::dom::quota::Severity::Error); return tryResult3547 .propagateErr(); }}; | |||
15667 | ||||
15668 | return NS_OK; | |||
15669 | } | |||
15670 | ||||
15671 | nsresult OpenDatabaseOp::BeginVersionChange() { | |||
15672 | AssertIsOnOwningThread(); | |||
15673 | MOZ_ASSERT(mState == State::BeginVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginVersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::BeginVersionChange", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange" ")"); do { *((volatile int*)__null) = 15673; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15674 | MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeBlockedDatabases.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15674); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { *((volatile int*)__null) = 15674; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15675 | MOZ_ASSERT(mMetadata->mCommonMetadata.version() <= mRequestedVersion)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata->mCommonMetadata.version() <= mRequestedVersion )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mMetadata->mCommonMetadata.version() <= mRequestedVersion ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mMetadata->mCommonMetadata.version() <= mRequestedVersion" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15675); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mCommonMetadata.version() <= mRequestedVersion" ")"); do { *((volatile int*)__null) = 15675; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15676 | MOZ_ASSERT(!mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15676); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabase" ")"); do { *((volatile int*)__null) = 15676; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15677 | MOZ_ASSERT(!mVersionChangeTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mVersionChangeTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mVersionChangeTransaction)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mVersionChangeTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15677); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction" ")"); do { *((volatile int*)__null) = 15677; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15678 | ||||
15679 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15679) || | |||
15680 | IsActorDestroyed()) { | |||
15681 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15681, "UnknownErr"); | |||
15682 | QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult3548 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR )); static_assert(std::is_empty_v<typename decltype(tryResult3548 )::ok_type>); if ((__builtin_expect(!!(tryResult3548.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)" , tryResult3548.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15682, mozilla::dom::quota::Severity::Error); return tryResult3548 .propagateErr(); }}; | |||
15683 | } | |||
15684 | ||||
15685 | EnsureDatabaseActor(); | |||
15686 | ||||
15687 | if (mDatabase->IsInvalidated()) { | |||
15688 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15688, "UnknownErr"); | |||
15689 | QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult3549 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR )); static_assert(std::is_empty_v<typename decltype(tryResult3549 )::ok_type>); if ((__builtin_expect(!!(tryResult3549.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)" , tryResult3549.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15689, mozilla::dom::quota::Severity::Error); return tryResult3549 .propagateErr(); }}; | |||
15690 | } | |||
15691 | ||||
15692 | MOZ_ASSERT(!mDatabase->IsClosed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabase->IsClosed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabase->IsClosed()))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabase->IsClosed()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15692); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabase->IsClosed()" ")"); do { *((volatile int*)__null) = 15692; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15693 | ||||
15694 | DatabaseActorInfo* info; | |||
15695 | MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get( mDatabaseId.ref(), &info)), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15695); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)" ")"); do { *((volatile int*)__null) = 15695; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
15696 | ||||
15697 | MOZ_ASSERT(info->mLiveDatabases.Contains(mDatabase.unsafeGetRawPtr()))do { static_assert( mozilla::detail::AssertionConditionType< decltype(info->mLiveDatabases.Contains(mDatabase.unsafeGetRawPtr ()))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(info->mLiveDatabases.Contains(mDatabase.unsafeGetRawPtr ())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("info->mLiveDatabases.Contains(mDatabase.unsafeGetRawPtr())" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.Contains(mDatabase.unsafeGetRawPtr())" ")"); do { *((volatile int*)__null) = 15697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15698 | MOZ_ASSERT(!info->mWaitingFactoryOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15698); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { *((volatile int*)__null) = 15698; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15699 | MOZ_ASSERT(info->mMetadata == mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(info->mMetadata == mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(info->mMetadata == mMetadata ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "info->mMetadata == mMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15699); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == mMetadata" ")"); do { *((volatile int*)__null) = 15699; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15700 | ||||
15701 | auto transaction = MakeSafeRefPtr<VersionChangeTransaction>(this); | |||
15702 | ||||
15703 | if (NS_WARN_IF(!transaction->CopyDatabaseMetadata())NS_warn_if_impl(!transaction->CopyDatabaseMetadata(), "!transaction->CopyDatabaseMetadata()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15703)) { | |||
15704 | return NS_ERROR_OUT_OF_MEMORY; | |||
15705 | } | |||
15706 | ||||
15707 | MOZ_ASSERT(info->mMetadata != mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(info->mMetadata != mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(info->mMetadata != mMetadata ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "info->mMetadata != mMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15707); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata != mMetadata" ")"); do { *((volatile int*)__null) = 15707; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15708 | mMetadata = info->mMetadata.clonePtr(); | |||
15709 | ||||
15710 | const Maybe<uint64_t> newVersion = Some(mRequestedVersion); | |||
15711 | ||||
15712 | QM_TRY(MOZ_TO_RESULT(SendVersionChangeMessages({auto tryResult3550 = (ToResult(SendVersionChangeMessages( info , mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version (), newVersion))); static_assert(std::is_empty_v<typename decltype (tryResult3550)::ok_type>); if ((__builtin_expect(!!(tryResult3550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))" , tryResult3550.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15714, mozilla::dom::quota::Severity::Error); return tryResult3550 .propagateErr(); }} | |||
15713 | info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(),{auto tryResult3550 = (ToResult(SendVersionChangeMessages( info , mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version (), newVersion))); static_assert(std::is_empty_v<typename decltype (tryResult3550)::ok_type>); if ((__builtin_expect(!!(tryResult3550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))" , tryResult3550.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15714, mozilla::dom::quota::Severity::Error); return tryResult3550 .propagateErr(); }} | |||
15714 | newVersion))){auto tryResult3550 = (ToResult(SendVersionChangeMessages( info , mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version (), newVersion))); static_assert(std::is_empty_v<typename decltype (tryResult3550)::ok_type>); if ((__builtin_expect(!!(tryResult3550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))" , tryResult3550.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15714, mozilla::dom::quota::Severity::Error); return tryResult3550 .propagateErr(); }}; | |||
15715 | ||||
15716 | mVersionChangeTransaction = std::move(transaction); | |||
15717 | ||||
15718 | if (mMaybeBlockedDatabases.IsEmpty()) { | |||
15719 | // We don't need to wait on any databases, just jump to the transaction | |||
15720 | // pool. | |||
15721 | WaitForTransactions(); | |||
15722 | return NS_OK; | |||
15723 | } | |||
15724 | ||||
15725 | // If the actor gets destroyed, mWaitingFactoryOp will hold the last strong | |||
15726 | // reference to us. | |||
15727 | info->mWaitingFactoryOp = this; | |||
15728 | ||||
15729 | mState = State::WaitingForOtherDatabasesToClose; | |||
15730 | return NS_OK; | |||
15731 | } | |||
15732 | ||||
15733 | bool OpenDatabaseOp::AreActorsAlive() { | |||
15734 | AssertIsOnOwningThread(); | |||
15735 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15735); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { *((volatile int*)__null) = 15735; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15736 | ||||
15737 | return !(IsActorDestroyed() || mDatabase->IsActorDestroyed()); | |||
15738 | } | |||
15739 | ||||
15740 | void OpenDatabaseOp::SendBlockedNotification() { | |||
15741 | AssertIsOnOwningThread(); | |||
15742 | MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::WaitingForOtherDatabasesToClose)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::WaitingForOtherDatabasesToClose))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForOtherDatabasesToClose" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15742); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose" ")"); do { *((volatile int*)__null) = 15742; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15743 | ||||
15744 | if (!IsActorDestroyed()) { | |||
15745 | Unused << SendBlocked(mMetadata->mCommonMetadata.version()); | |||
15746 | } | |||
15747 | } | |||
15748 | ||||
15749 | nsresult OpenDatabaseOp::DispatchToWorkThread() { | |||
15750 | AssertIsOnOwningThread(); | |||
15751 | MOZ_ASSERT(mState == State::WaitingForTransactionsToComplete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::WaitingForTransactionsToComplete)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::WaitingForTransactionsToComplete))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForTransactionsToComplete" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15751); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForTransactionsToComplete" ")"); do { *((volatile int*)__null) = 15751; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15752 | MOZ_ASSERT(mVersionChangeTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mVersionChangeTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mVersionChangeTransaction))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mVersionChangeTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15752); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction" ")"); do { *((volatile int*)__null) = 15752; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15753 | MOZ_ASSERT(mVersionChangeTransaction->GetMode() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(mVersionChangeTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mVersionChangeTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15754); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 15754; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
15754 | IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mVersionChangeTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mVersionChangeTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15754); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 15754; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15755 | MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeBlockedDatabases.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15755); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { *((volatile int*)__null) = 15755; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15756 | ||||
15757 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15757) || | |||
15758 | IsActorDestroyed() || mDatabase->IsInvalidated()) { | |||
15759 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15759, "UnknownErr"); | |||
15760 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
15761 | } | |||
15762 | ||||
15763 | mState = State::DatabaseWorkVersionChange; | |||
15764 | ||||
15765 | // Intentionally empty. | |||
15766 | nsTArray<nsString> objectStoreNames; | |||
15767 | ||||
15768 | const int64_t loggingSerialNumber = | |||
15769 | mVersionChangeTransaction->LoggingSerialNumber(); | |||
15770 | const nsID& backgroundChildLoggingId = | |||
15771 | mVersionChangeTransaction->GetLoggingInfo()->Id(); | |||
15772 | ||||
15773 | if (NS_WARN_IF(!mDatabase->RegisterTransaction(*mVersionChangeTransaction))NS_warn_if_impl(!mDatabase->RegisterTransaction(*mVersionChangeTransaction ), "!mDatabase->RegisterTransaction(*mVersionChangeTransaction)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15773)) { | |||
15774 | return NS_ERROR_OUT_OF_MEMORY; | |||
15775 | } | |||
15776 | ||||
15777 | if (!gConnectionPool) { | |||
15778 | gConnectionPool = new ConnectionPool(); | |||
15779 | } | |||
15780 | ||||
15781 | RefPtr<VersionChangeOp> versionChangeOp = new VersionChangeOp(this); | |||
15782 | ||||
15783 | uint64_t transactionId = versionChangeOp->StartOnConnectionPool( | |||
15784 | backgroundChildLoggingId, mVersionChangeTransaction->DatabaseId(), | |||
15785 | loggingSerialNumber, objectStoreNames, | |||
15786 | /* aIsWriteTransaction */ true); | |||
15787 | ||||
15788 | mVersionChangeOp = versionChangeOp; | |||
15789 | ||||
15790 | mVersionChangeTransaction->NoteActiveRequest(); | |||
15791 | mVersionChangeTransaction->Init(transactionId); | |||
15792 | ||||
15793 | return NS_OK; | |||
15794 | } | |||
15795 | ||||
15796 | nsresult OpenDatabaseOp::SendUpgradeNeeded() { | |||
15797 | AssertIsOnOwningThread(); | |||
15798 | MOZ_ASSERT(mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkVersionChange)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mState == State::DatabaseWorkVersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::DatabaseWorkVersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange" ")"); do { *((volatile int*)__null) = 15798; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15799 | MOZ_ASSERT(mVersionChangeTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mVersionChangeTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mVersionChangeTransaction))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mVersionChangeTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15799); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction" ")"); do { *((volatile int*)__null) = 15799; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15800 | MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeBlockedDatabases.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15800); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { *((volatile int*)__null) = 15800; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15801 | MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!HasFailed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15801); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { *((volatile int*)__null) = 15801; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15802 | MOZ_ASSERT_IF(!IsActorDestroyed(), mDatabase)do { if (!IsActorDestroyed()) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mDatabase)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15802); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { *((volatile int*)__null) = 15802; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
15803 | ||||
15804 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15804) || | |||
15805 | IsActorDestroyed()) { | |||
15806 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15806, "UnknownErr"); | |||
15807 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
15808 | } | |||
15809 | ||||
15810 | const SafeRefPtr<VersionChangeTransaction> transaction = | |||
15811 | std::move(mVersionChangeTransaction); | |||
15812 | ||||
15813 | nsresult rv = EnsureDatabaseActorIsAlive(); | |||
15814 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15814)) { | |||
15815 | return rv; | |||
15816 | } | |||
15817 | ||||
15818 | // Transfer ownership to IPDL. | |||
15819 | transaction->SetActorAlive(); | |||
15820 | ||||
15821 | if (!mDatabase->SendPBackgroundIDBVersionChangeTransactionConstructor( | |||
15822 | transaction.unsafeGetRawPtr(), mMetadata->mCommonMetadata.version(), | |||
15823 | mRequestedVersion, mMetadata->mNextObjectStoreId, | |||
15824 | mMetadata->mNextIndexId)) { | |||
15825 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15825, "UnknownErr"); | |||
15826 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
15827 | } | |||
15828 | ||||
15829 | return NS_OK; | |||
15830 | } | |||
15831 | ||||
15832 | void OpenDatabaseOp::SendResults() { | |||
15833 | AssertIsOnOwningThread(); | |||
15834 | MOZ_ASSERT(mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::SendingResults)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::SendingResults ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::SendingResults", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15834); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults" ")"); do { *((volatile int*)__null) = 15834; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15835 | MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeBlockedDatabases.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15835); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { *((volatile int*)__null) = 15835; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15836 | MOZ_ASSERT_IF(!HasFailed(), !mVersionChangeTransaction)do { if (!HasFailed()) { do { static_assert( mozilla::detail:: AssertionConditionType<decltype(!mVersionChangeTransaction )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mVersionChangeTransaction))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("!mVersionChangeTransaction" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15836); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction" ")"); do { *((volatile int*)__null) = 15836; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
15837 | ||||
15838 | DebugOnly<DatabaseActorInfo*> info = nullptr; | |||
15839 | MOZ_ASSERT_IF(mDatabaseId.isSome() && gLiveDatabaseHashtable &&do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable && gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15841); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { *((volatile int*)__null) = 15841; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
15840 | gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info),do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable && gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15841); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { *((volatile int*)__null) = 15841; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
15841 | !info->mWaitingFactoryOp)do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable && gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15841); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { *((volatile int*)__null) = 15841; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
15842 | ||||
15843 | if (mVersionChangeTransaction) { | |||
15844 | MOZ_ASSERT(HasFailed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasFailed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("HasFailed()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15844); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasFailed()" ")"); do { *((volatile int*)__null) = 15844; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15845 | ||||
15846 | mVersionChangeTransaction->Abort(ResultCode(), /* aForce */ true); | |||
15847 | mVersionChangeTransaction = nullptr; | |||
15848 | } | |||
15849 | ||||
15850 | if (IsActorDestroyed()) { | |||
15851 | SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | |||
15852 | } else { | |||
15853 | FactoryRequestResponse response; | |||
15854 | ||||
15855 | if (!HasFailed()) { | |||
15856 | // If we just successfully completed a versionchange operation then we | |||
15857 | // need to update the version in our metadata. | |||
15858 | mMetadata->mCommonMetadata.version() = mRequestedVersion; | |||
15859 | ||||
15860 | mFileManager->UpdateDatabaseVersion(mRequestedVersion); | |||
15861 | ||||
15862 | nsresult rv = EnsureDatabaseActorIsAlive(); | |||
15863 | if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { | |||
15864 | // We successfully opened a database so use its actor as the success | |||
15865 | // result for this request. | |||
15866 | ||||
15867 | // XXX OpenDatabaseRequestResponse stores a raw pointer, can this be | |||
15868 | // avoided? | |||
15869 | response = OpenDatabaseRequestResponse{ | |||
15870 | WrapNotNull(mDatabase.unsafeGetRawPtr())}; | |||
15871 | } else { | |||
15872 | response = ClampResultCode(rv); | |||
15873 | #ifdef DEBUG1 | |||
15874 | SetFailureCode(response.get_nsresult()); | |||
15875 | #endif | |||
15876 | } | |||
15877 | } else { | |||
15878 | #ifdef DEBUG1 | |||
15879 | // If something failed then our metadata pointer is now bad. No one should | |||
15880 | // ever touch it again though so just null it out in DEBUG builds to make | |||
15881 | // sure we find such cases. | |||
15882 | mMetadata = nullptr; | |||
15883 | #endif | |||
15884 | response = ClampResultCode(ResultCode()); | |||
15885 | } | |||
15886 | ||||
15887 | Unused << PBackgroundIDBFactoryRequestParent::Send__delete__(this, | |||
15888 | response); | |||
15889 | } | |||
15890 | ||||
15891 | if (mDatabase) { | |||
15892 | MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"); do { *((volatile int*)__null) = 15892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15893 | ||||
15894 | if (HasFailed()) { | |||
15895 | mDatabase->Invalidate(); | |||
15896 | } | |||
15897 | ||||
15898 | // Make sure to release the database on this thread. | |||
15899 | mDatabase = nullptr; | |||
15900 | ||||
15901 | CleanupMetadata(); | |||
15902 | } else if (mDirectoryLock) { | |||
15903 | // ConnectionClosedCallback will call CleanupMetadata(). | |||
15904 | nsCOMPtr<nsIRunnable> callback = NewRunnableMethod( | |||
15905 | "dom::indexedDB::OpenDatabaseOp::ConnectionClosedCallback", this, | |||
15906 | &OpenDatabaseOp::ConnectionClosedCallback); | |||
15907 | ||||
15908 | RefPtr<WaitForTransactionsHelper> helper = | |||
15909 | new WaitForTransactionsHelper(mDatabaseId.ref(), callback); | |||
15910 | helper->WaitForTransactions(); | |||
15911 | } else { | |||
15912 | CleanupMetadata(); | |||
15913 | } | |||
15914 | ||||
15915 | FinishSendResults(); | |||
15916 | } | |||
15917 | ||||
15918 | void OpenDatabaseOp::ConnectionClosedCallback() { | |||
15919 | AssertIsOnOwningThread(); | |||
15920 | MOZ_ASSERT(HasFailed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(HasFailed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("HasFailed()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15920); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasFailed()" ")"); do { *((volatile int*)__null) = 15920; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15921 | MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDirectoryLock)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLock" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15921); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")"); do { *((volatile int*)__null) = 15921; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15922 | ||||
15923 | DropDirectoryLock(mDirectoryLock); | |||
15924 | ||||
15925 | CleanupMetadata(); | |||
15926 | } | |||
15927 | ||||
15928 | void OpenDatabaseOp::EnsureDatabaseActor() { | |||
15929 | AssertIsOnOwningThread(); | |||
15930 | MOZ_ASSERT(mState == State::BeginVersionChange ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginVersionChange || mState == State ::DatabaseWorkVersionChange || mState == State::SendingResults )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::BeginVersionChange || mState == State ::DatabaseWorkVersionChange || mState == State::SendingResults ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" ")"); do { *((volatile int*)__null) = 15932; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
15931 | mState == State::DatabaseWorkVersionChange ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginVersionChange || mState == State ::DatabaseWorkVersionChange || mState == State::SendingResults )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::BeginVersionChange || mState == State ::DatabaseWorkVersionChange || mState == State::SendingResults ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" ")"); do { *((volatile int*)__null) = 15932; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
15932 | mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginVersionChange || mState == State ::DatabaseWorkVersionChange || mState == State::SendingResults )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::BeginVersionChange || mState == State ::DatabaseWorkVersionChange || mState == State::SendingResults ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" ")"); do { *((volatile int*)__null) = 15932; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15933 | MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!HasFailed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15933); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { *((volatile int*)__null) = 15933; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15934 | MOZ_ASSERT(mDatabaseFilePath.isSome())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabaseFilePath.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabaseFilePath.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseFilePath.isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15934); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseFilePath.isSome()" ")"); do { *((volatile int*)__null) = 15934; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15935 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15935); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { *((volatile int*)__null) = 15935; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15936 | ||||
15937 | if (mDatabase) { | |||
15938 | return; | |||
15939 | } | |||
15940 | ||||
15941 | MOZ_ASSERT(mMetadata->mDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata->mDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata->mDatabaseId.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMetadata->mDatabaseId.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15941); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mDatabaseId.IsEmpty()" ")"); do { *((volatile int*)__null) = 15941; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15942 | mMetadata->mDatabaseId = mDatabaseId.ref(); | |||
15943 | ||||
15944 | MOZ_ASSERT(mMetadata->mFilePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata->mFilePath.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata->mFilePath.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMetadata->mFilePath.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15944); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mFilePath.IsEmpty()" ")"); do { *((volatile int*)__null) = 15944; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15945 | mMetadata->mFilePath = mDatabaseFilePath.ref(); | |||
15946 | ||||
15947 | DatabaseActorInfo* info; | |||
15948 | if (gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { | |||
15949 | AssertMetadataConsistency(*info->mMetadata); | |||
15950 | mMetadata = info->mMetadata.clonePtr(); | |||
15951 | } | |||
15952 | ||||
15953 | Maybe<const CipherKey> maybeKey = | |||
15954 | mInPrivateBrowsing ? mFileManager->MutableCipherKeyManagerRef().Get() | |||
15955 | : Nothing(); | |||
15956 | ||||
15957 | MOZ_RELEASE_ASSERT(mInPrivateBrowsing == maybeKey.isSome())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInPrivateBrowsing == maybeKey.isSome())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInPrivateBrowsing == maybeKey.isSome()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInPrivateBrowsing == maybeKey.isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15957); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()" ")"); do { *((volatile int*)__null) = 15957; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15958 | ||||
15959 | // XXX Shouldn't Manager() return already_AddRefed when | |||
15960 | // PBackgroundIDBFactoryParent is declared refcounted? | |||
15961 | mDatabase = MakeSafeRefPtr<Database>( | |||
15962 | SafeRefPtr{static_cast<Factory*>(Manager()), | |||
15963 | AcquireStrongRefFromRawPtr{}}, | |||
15964 | mCommonParams.principalInfo(), mContentParentId, mOriginMetadata, | |||
15965 | mTelemetryId, mMetadata.clonePtr(), mFileManager.clonePtr(), | |||
15966 | std::move(mDirectoryLock), mInPrivateBrowsing, maybeKey); | |||
15967 | ||||
15968 | if (info) { | |||
15969 | info->mLiveDatabases.AppendElement( | |||
15970 | WrapNotNullUnchecked(mDatabase.unsafeGetRawPtr())); | |||
15971 | } else { | |||
15972 | // XXX Maybe use LookupOrInsertWith above, to avoid a second lookup here? | |||
15973 | info = gLiveDatabaseHashtable | |||
15974 | ->InsertOrUpdate( | |||
15975 | mDatabaseId.ref(), | |||
15976 | MakeUnique<DatabaseActorInfo>( | |||
15977 | mMetadata.clonePtr(), | |||
15978 | WrapNotNullUnchecked(mDatabase.unsafeGetRawPtr()))) | |||
15979 | .get(); | |||
15980 | } | |||
15981 | ||||
15982 | // Balanced in Database::CleanupMetadata(). | |||
15983 | IncreaseBusyCount(); | |||
15984 | } | |||
15985 | ||||
15986 | nsresult OpenDatabaseOp::EnsureDatabaseActorIsAlive() { | |||
15987 | AssertIsOnOwningThread(); | |||
15988 | MOZ_ASSERT(mState == State::DatabaseWorkVersionChange ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkVersionChange || mState == State::SendingResults)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkVersionChange || mState == State::SendingResults))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15989); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" ")"); do { *((volatile int*)__null) = 15989; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
15989 | mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkVersionChange || mState == State::SendingResults)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkVersionChange || mState == State::SendingResults))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15989); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" ")"); do { *((volatile int*)__null) = 15989; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15990 | MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!HasFailed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15990); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { *((volatile int*)__null) = 15990; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15991 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 15991); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { *((volatile int*)__null) = 15991; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
15992 | ||||
15993 | EnsureDatabaseActor(); | |||
15994 | ||||
15995 | if (mDatabase->IsActorAlive()) { | |||
15996 | return NS_OK; | |||
15997 | } | |||
15998 | ||||
15999 | auto* const factory = static_cast<Factory*>(Manager()); | |||
16000 | ||||
16001 | QM_TRY_INSPECT(const auto& spec, MetadataToSpec())auto tryResult3551 = (MetadataToSpec()); if ((__builtin_expect (!!(tryResult3551.isErr()), 0))) { mozilla::dom::quota::HandleError ("MetadataToSpec()", tryResult3551.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16001, mozilla::dom::quota::Severity::Error); return tryResult3551 .propagateErr(); } const auto& spec = tryResult3551.inspect ();; | |||
16002 | ||||
16003 | mDatabase->SetActorAlive(); | |||
16004 | ||||
16005 | if (!factory->SendPBackgroundIDBDatabaseConstructor( | |||
16006 | mDatabase.unsafeGetRawPtr(), spec, WrapNotNull(this))) { | |||
16007 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16007, "UnknownErr"); | |||
16008 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
16009 | } | |||
16010 | ||||
16011 | return NS_OK; | |||
16012 | } | |||
16013 | ||||
16014 | Result<DatabaseSpec, nsresult> OpenDatabaseOp::MetadataToSpec() const { | |||
16015 | AssertIsOnOwningThread(); | |||
16016 | MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16016); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"); do { *((volatile int*)__null) = 16016; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16017 | ||||
16018 | DatabaseSpec spec; | |||
16019 | spec.metadata() = mMetadata->mCommonMetadata; | |||
16020 | ||||
16021 | QM_TRY_UNWRAP(spec.objectStores(),auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16022 | TransformIntoNewArrayAbortOnErr(auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16023 | mMetadata->mObjectStores,auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16024 | [](const auto& objectStoreEntry)auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16025 | -> mozilla::Result<ObjectStoreSpec, nsresult> {auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16026 | FullObjectStoreMetadata* metadata =auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16027 | objectStoreEntry.GetWeak();auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16028 | MOZ_ASSERT(objectStoreEntry.GetKey());auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16029 | MOZ_ASSERT(metadata);auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16030 | ||||
16031 | ObjectStoreSpec objectStoreSpec;auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16032 | objectStoreSpec.metadata() = metadata->mCommonMetadata;auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16033 | ||||
16034 | QM_TRY_UNWRAP(auto indexes,auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16035 | TransformIntoNewArray(auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16036 | metadata->mIndexes,auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16037 | [](const auto& indexEntry) {auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16038 | FullIndexMetadata* indexMetadata =auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16039 | indexEntry.GetWeak();auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16040 | MOZ_ASSERT(indexEntry.GetKey());auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16041 | MOZ_ASSERT(indexMetadata);auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16042 | ||||
16043 | return indexMetadata->mCommonMetadata;auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16044 | },auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16045 | fallible));auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16046 | ||||
16047 | objectStoreSpec.indexes() = std::move(indexes);auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16048 | ||||
16049 | return objectStoreSpec;auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16050 | },auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap (); | |||
16051 | fallible))auto tryResult3553 = (TransformIntoNewArrayAbortOnErr( mMetadata ->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata * metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(objectStoreEntry .GetKey())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16028; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (metadata)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 16029; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail:: AssertionConditionType<decltype(indexEntry.GetKey())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { *((volatile int*)__null) = 16040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (indexMetadata)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 16041; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult3552.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult3552 .propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult3553.isErr()), 0))) { mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16028); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16028; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16029); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16029; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult3552 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16040); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16041); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult3552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16040); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16040; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 16041); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult3552.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16045, mozilla::dom::quota::Severity::Error); return tryResult3552.propagateErr(); } auto indexes = tryResult3552.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult3553.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16051, mozilla::dom::quota::Severity::Error); return tryResult3553 .propagateErr(); } spec.objectStores() = tryResult3553.unwrap ();; | |||
16052 | ||||
16053 | return spec; | |||
16054 | } | |||
16055 | ||||
16056 | #ifdef DEBUG1 | |||
16057 | ||||
16058 | void OpenDatabaseOp::AssertMetadataConsistency( | |||
16059 | const FullDatabaseMetadata& aMetadata) { | |||
16060 | AssertIsOnBackgroundThread(); | |||
16061 | ||||
16062 | const FullDatabaseMetadata& thisDB = *mMetadata; | |||
16063 | const FullDatabaseMetadata& otherDB = aMetadata; | |||
16064 | ||||
16065 | MOZ_ASSERT(&thisDB != &otherDB)do { static_assert( mozilla::detail::AssertionConditionType< decltype(&thisDB != &otherDB)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(&thisDB != &otherDB) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("&thisDB != &otherDB" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16065); AnnotateMozCrashReason("MOZ_ASSERT" "(" "&thisDB != &otherDB" ")"); do { *((volatile int*)__null) = 16065; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16066 | ||||
16067 | MOZ_ASSERT(thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata.name())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata .name())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata .name()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata.name()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16067); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata.name()" ")"); do { *((volatile int*)__null) = 16067; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16068 | MOZ_ASSERT(thisDB.mCommonMetadata.version() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata .version())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16069); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()" ")"); do { *((volatile int*)__null) = 16069; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
16069 | otherDB.mCommonMetadata.version())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata .version())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16069); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()" ")"); do { *((volatile int*)__null) = 16069; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16070 | MOZ_ASSERT(thisDB.mCommonMetadata.persistenceType() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mCommonMetadata.persistenceType() == otherDB. mCommonMetadata.persistenceType())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisDB.mCommonMetadata.persistenceType () == otherDB.mCommonMetadata.persistenceType()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16071); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()" ")"); do { *((volatile int*)__null) = 16071; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
16071 | otherDB.mCommonMetadata.persistenceType())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mCommonMetadata.persistenceType() == otherDB. mCommonMetadata.persistenceType())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisDB.mCommonMetadata.persistenceType () == otherDB.mCommonMetadata.persistenceType()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16071); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()" ")"); do { *((volatile int*)__null) = 16071; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16072 | MOZ_ASSERT(thisDB.mDatabaseId == otherDB.mDatabaseId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mDatabaseId == otherDB.mDatabaseId)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(thisDB.mDatabaseId == otherDB.mDatabaseId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisDB.mDatabaseId == otherDB.mDatabaseId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16072); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mDatabaseId == otherDB.mDatabaseId" ")"); do { *((volatile int*)__null) = 16072; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16073 | MOZ_ASSERT(thisDB.mFilePath == otherDB.mFilePath)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mFilePath == otherDB.mFilePath)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(thisDB.mFilePath == otherDB.mFilePath))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisDB.mFilePath == otherDB.mFilePath" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16073); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mFilePath == otherDB.mFilePath" ")"); do { *((volatile int*)__null) = 16073; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16074 | ||||
16075 | // |thisDB| reflects the latest objectStore and index ids that have committed | |||
16076 | // to disk. The in-memory metadata |otherDB| keeps track of objectStores and | |||
16077 | // indexes that were created and then removed as well, so the next ids for | |||
16078 | // |otherDB| may be higher than for |thisDB|. | |||
16079 | MOZ_ASSERT(thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16079); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId" ")"); do { *((volatile int*)__null) = 16079; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16080 | MOZ_ASSERT(thisDB.mNextIndexId <= otherDB.mNextIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mNextIndexId <= otherDB.mNextIndexId)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(thisDB.mNextIndexId <= otherDB.mNextIndexId))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("thisDB.mNextIndexId <= otherDB.mNextIndexId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16080); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mNextIndexId <= otherDB.mNextIndexId" ")"); do { *((volatile int*)__null) = 16080; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16081 | ||||
16082 | MOZ_ASSERT(thisDB.mObjectStores.Count() == otherDB.mObjectStores.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisDB.mObjectStores.Count() == otherDB.mObjectStores .Count())>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(thisDB.mObjectStores.Count() == otherDB .mObjectStores.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("thisDB.mObjectStores.Count() == otherDB.mObjectStores.Count()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16082); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mObjectStores.Count() == otherDB.mObjectStores.Count()" ")"); do { *((volatile int*)__null) = 16082; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16083 | ||||
16084 | for (const auto& thisObjectStore : thisDB.mObjectStores.Values()) { | |||
16085 | MOZ_ASSERT(thisObjectStore)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16085); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore" ")"); do { *((volatile int*)__null) = 16085; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16086 | MOZ_ASSERT(!thisObjectStore->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!thisObjectStore->mDeleted)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!thisObjectStore->mDeleted ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!thisObjectStore->mDeleted", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16086); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!thisObjectStore->mDeleted" ")"); do { *((volatile int*)__null) = 16086; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16087 | ||||
16088 | auto otherObjectStore = MatchMetadataNameOrId( | |||
16089 | otherDB.mObjectStores, thisObjectStore->mCommonMetadata.id()); | |||
16090 | MOZ_ASSERT(otherObjectStore)do { static_assert( mozilla::detail::AssertionConditionType< decltype(otherObjectStore)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(otherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("otherObjectStore" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16090); AnnotateMozCrashReason("MOZ_ASSERT" "(" "otherObjectStore" ")"); do { *((volatile int*)__null) = 16090; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16091 | ||||
16092 | MOZ_ASSERT(thisObjectStore != &otherObjectStore.ref())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore != &otherObjectStore.ref())>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(thisObjectStore != &otherObjectStore.ref()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore != &otherObjectStore.ref()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16092); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore != &otherObjectStore.ref()" ")"); do { *((volatile int*)__null) = 16092; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16093 | ||||
16094 | MOZ_ASSERT(thisObjectStore->mCommonMetadata.id() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mCommonMetadata.id() == otherObjectStore ->mCommonMetadata.id())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata .id() == otherObjectStore->mCommonMetadata.id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16095); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()" ")"); do { *((volatile int*)__null) = 16095; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
16095 | otherObjectStore->mCommonMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mCommonMetadata.id() == otherObjectStore ->mCommonMetadata.id())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata .id() == otherObjectStore->mCommonMetadata.id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16095); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()" ")"); do { *((volatile int*)__null) = 16095; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16096 | MOZ_ASSERT(thisObjectStore->mCommonMetadata.name() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mCommonMetadata.name() == otherObjectStore ->mCommonMetadata.name())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata .name() == otherObjectStore->mCommonMetadata.name()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16097); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()" ")"); do { *((volatile int*)__null) = 16097; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
16097 | otherObjectStore->mCommonMetadata.name())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mCommonMetadata.name() == otherObjectStore ->mCommonMetadata.name())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata .name() == otherObjectStore->mCommonMetadata.name()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16097); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()" ")"); do { *((volatile int*)__null) = 16097; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16098 | MOZ_ASSERT(thisObjectStore->mCommonMetadata.autoIncrement() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore ->mCommonMetadata.autoIncrement()))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16099); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()" ")"); do { *((volatile int*)__null) = 16099; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
16099 | otherObjectStore->mCommonMetadata.autoIncrement())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore ->mCommonMetadata.autoIncrement()))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16099); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()" ")"); do { *((volatile int*)__null) = 16099; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16100 | MOZ_ASSERT(thisObjectStore->mCommonMetadata.keyPath() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore ->mCommonMetadata.keyPath())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata .keyPath() == otherObjectStore->mCommonMetadata.keyPath()) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16101); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()" ")"); do { *((volatile int*)__null) = 16101; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
16101 | otherObjectStore->mCommonMetadata.keyPath())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore ->mCommonMetadata.keyPath())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata .keyPath() == otherObjectStore->mCommonMetadata.keyPath()) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16101); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()" ")"); do { *((volatile int*)__null) = 16101; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16102 | // mNextAutoIncrementId and mCommittedAutoIncrementId may be modified | |||
16103 | // concurrently with this OpenOp, so it is not possible to assert equality | |||
16104 | // here. It's also possible that we've written the new ids to disk but not | |||
16105 | // yet updated the in-memory count. | |||
16106 | // TODO The first part of the comment should probably be rephrased. I think | |||
16107 | // it still applies but it sounds as if this were thread-unsafe like it was | |||
16108 | // before, which isn't true anymore. | |||
16109 | { | |||
16110 | const auto&& thisAutoIncrementIds = | |||
16111 | thisObjectStore->mAutoIncrementIds.Lock(); | |||
16112 | const auto&& otherAutoIncrementIds = | |||
16113 | otherObjectStore->mAutoIncrementIds.Lock(); | |||
16114 | ||||
16115 | MOZ_ASSERT(thisAutoIncrementIds->next <= otherAutoIncrementIds->next)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisAutoIncrementIds->next <= otherAutoIncrementIds ->next)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(thisAutoIncrementIds->next <= otherAutoIncrementIds->next))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("thisAutoIncrementIds->next <= otherAutoIncrementIds->next" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16115); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->next <= otherAutoIncrementIds->next" ")"); do { *((volatile int*)__null) = 16115; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16116 | MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisAutoIncrementIds->committed <= otherAutoIncrementIds ->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds ->next)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds-> committed == otherAutoIncrementIds->next))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16118); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next" ")"); do { *((volatile int*)__null) = 16118; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
16117 | thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisAutoIncrementIds->committed <= otherAutoIncrementIds ->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds ->next)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds-> committed == otherAutoIncrementIds->next))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16118); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next" ")"); do { *((volatile int*)__null) = 16118; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
16118 | thisAutoIncrementIds->committed == otherAutoIncrementIds->next)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisAutoIncrementIds->committed <= otherAutoIncrementIds ->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds ->next)>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds-> committed == otherAutoIncrementIds->next))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16118); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next" ")"); do { *((volatile int*)__null) = 16118; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16119 | } | |||
16120 | MOZ_ASSERT(!otherObjectStore->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!otherObjectStore->mDeleted)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!otherObjectStore->mDeleted ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!otherObjectStore->mDeleted", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16120); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!otherObjectStore->mDeleted" ")"); do { *((volatile int*)__null) = 16120; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16121 | ||||
16122 | MOZ_ASSERT(thisObjectStore->mIndexes.Count() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mIndexes.Count() == otherObjectStore ->mIndexes.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore->mIndexes .Count() == otherObjectStore->mIndexes.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16123); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()" ")"); do { *((volatile int*)__null) = 16123; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
16123 | otherObjectStore->mIndexes.Count())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisObjectStore->mIndexes.Count() == otherObjectStore ->mIndexes.Count())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisObjectStore->mIndexes .Count() == otherObjectStore->mIndexes.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16123); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()" ")"); do { *((volatile int*)__null) = 16123; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16124 | ||||
16125 | for (const auto& thisIndex : thisObjectStore->mIndexes.Values()) { | |||
16126 | MOZ_ASSERT(thisIndex)do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16126); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex" ")"); do { *((volatile int*)__null) = 16126; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16127 | MOZ_ASSERT(!thisIndex->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!thisIndex->mDeleted)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!thisIndex->mDeleted))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!thisIndex->mDeleted" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16127); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!thisIndex->mDeleted" ")"); do { *((volatile int*)__null) = 16127; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16128 | ||||
16129 | auto otherIndex = MatchMetadataNameOrId(otherObjectStore->mIndexes, | |||
16130 | thisIndex->mCommonMetadata.id()); | |||
16131 | MOZ_ASSERT(otherIndex)do { static_assert( mozilla::detail::AssertionConditionType< decltype(otherIndex)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(otherIndex))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("otherIndex", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16131); AnnotateMozCrashReason("MOZ_ASSERT" "(" "otherIndex" ")"); do { *((volatile int*)__null) = 16131; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16132 | ||||
16133 | MOZ_ASSERT(thisIndex != &otherIndex.ref())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex != &otherIndex.ref())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex != &otherIndex .ref()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("thisIndex != &otherIndex.ref()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16133); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex != &otherIndex.ref()" ")"); do { *((volatile int*)__null) = 16133; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16134 | ||||
16135 | MOZ_ASSERT(thisIndex->mCommonMetadata.id() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.id() == otherIndex-> mCommonMetadata.id())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .id() == otherIndex->mCommonMetadata.id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16136); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()" ")"); do { *((volatile int*)__null) = 16136; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
16136 | otherIndex->mCommonMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.id() == otherIndex-> mCommonMetadata.id())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .id() == otherIndex->mCommonMetadata.id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16136); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()" ")"); do { *((volatile int*)__null) = 16136; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16137 | MOZ_ASSERT(thisIndex->mCommonMetadata.name() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.name() == otherIndex-> mCommonMetadata.name())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .name() == otherIndex->mCommonMetadata.name()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16138); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()" ")"); do { *((volatile int*)__null) = 16138; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
16138 | otherIndex->mCommonMetadata.name())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.name() == otherIndex-> mCommonMetadata.name())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .name() == otherIndex->mCommonMetadata.name()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16138); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()" ")"); do { *((volatile int*)__null) = 16138; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16139 | MOZ_ASSERT(thisIndex->mCommonMetadata.keyPath() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.keyPath() == otherIndex ->mCommonMetadata.keyPath())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .keyPath() == otherIndex->mCommonMetadata.keyPath()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16140); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()" ")"); do { *((volatile int*)__null) = 16140; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
16140 | otherIndex->mCommonMetadata.keyPath())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.keyPath() == otherIndex ->mCommonMetadata.keyPath())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .keyPath() == otherIndex->mCommonMetadata.keyPath()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16140); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()" ")"); do { *((volatile int*)__null) = 16140; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16141 | MOZ_ASSERT(thisIndex->mCommonMetadata.unique() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.unique() == otherIndex ->mCommonMetadata.unique())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .unique() == otherIndex->mCommonMetadata.unique()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16142); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()" ")"); do { *((volatile int*)__null) = 16142; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
16142 | otherIndex->mCommonMetadata.unique())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.unique() == otherIndex ->mCommonMetadata.unique())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .unique() == otherIndex->mCommonMetadata.unique()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16142); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()" ")"); do { *((volatile int*)__null) = 16142; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16143 | MOZ_ASSERT(thisIndex->mCommonMetadata.multiEntry() ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.multiEntry() == otherIndex ->mCommonMetadata.multiEntry())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .multiEntry() == otherIndex->mCommonMetadata.multiEntry()) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()" ")"); do { *((volatile int*)__null) = 16144; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
16144 | otherIndex->mCommonMetadata.multiEntry())do { static_assert( mozilla::detail::AssertionConditionType< decltype(thisIndex->mCommonMetadata.multiEntry() == otherIndex ->mCommonMetadata.multiEntry())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata .multiEntry() == otherIndex->mCommonMetadata.multiEntry()) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()" ")"); do { *((volatile int*)__null) = 16144; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16145 | MOZ_ASSERT(!otherIndex->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!otherIndex->mDeleted)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!otherIndex->mDeleted))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!otherIndex->mDeleted" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!otherIndex->mDeleted" ")"); do { *((volatile int*)__null) = 16145; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16146 | } | |||
16147 | } | |||
16148 | } | |||
16149 | ||||
16150 | #endif // DEBUG | |||
16151 | ||||
16152 | nsresult OpenDatabaseOp::VersionChangeOp::DoDatabaseWork( | |||
16153 | DatabaseConnection* aConnection) { | |||
16154 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16154); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 16154; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16155 | aConnection->AssertIsOnConnectionThread(); | |||
16156 | MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"); do { *((volatile int*)__null) = 16156; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16157 | MOZ_ASSERT(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange" ")"); do { *((volatile int*)__null) = 16157; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16158 | ||||
16159 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16159) || | |||
16160 | !OperationMayProceed()) { | |||
16161 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16161, "UnknownErr"); | |||
16162 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
16163 | } | |||
16164 | ||||
16165 | AUTO_PROFILER_LABEL("OpenDatabaseOp::VersionChangeOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16165( "OpenDatabaseOp::VersionChangeOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
16166 | ||||
16167 | IDB_LOG_MARK_PARENT_TRANSACTION("Beginning database work", "DB Start",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" ": " "Beginning database work" , "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start", mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransactionLoggingSerialNumber) | |||
16168 | IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" ": " "Beginning database work" , "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start", mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransactionLoggingSerialNumber) | |||
16169 | mTransactionLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" ": " "Beginning database work" , "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start", mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransactionLoggingSerialNumber); | |||
16170 | ||||
16171 | Transaction().SetActiveOnConnectionThread(); | |||
16172 | ||||
16173 | QM_TRY(MOZ_TO_RESULT({auto tryResult3554 = (ToResult(aConnection->BeginWriteTransaction (Transaction().GetDurability()))); static_assert(std::is_empty_v <typename decltype(tryResult3554)::ok_type>); if ((__builtin_expect (!!(tryResult3554.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))" , tryResult3554.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16174, mozilla::dom::quota::Severity::Error); return tryResult3554 .propagateErr(); }} | |||
16174 | aConnection->BeginWriteTransaction(Transaction().GetDurability()))){auto tryResult3554 = (ToResult(aConnection->BeginWriteTransaction (Transaction().GetDurability()))); static_assert(std::is_empty_v <typename decltype(tryResult3554)::ok_type>); if ((__builtin_expect (!!(tryResult3554.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))" , tryResult3554.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16174, mozilla::dom::quota::Severity::Error); return tryResult3554 .propagateErr(); }}; | |||
16175 | ||||
16176 | // The parameter names are not used, parameters are bound by index only | |||
16177 | // locally in the same function. | |||
16178 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult3556 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3555 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult3555 )::ok_type>); if ((__builtin_expect(!!(tryResult3555.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult3555.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16183, mozilla::dom::quota::Severity::Error); return tryResult3555 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult3556)::ok_type>); if ((__builtin_expect (!!(tryResult3556.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3555 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult3555)::ok_type>); if ((__builtin_expect(!!(tryResult3555.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult3555.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16183, mozilla::dom::quota::Severity::Error); return tryResult3555.propagateErr(); }}; return Ok{}; })))" , tryResult3556.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16186, mozilla::dom::quota::Severity::Error); return tryResult3556 .propagateErr(); }} | |||
16179 | "UPDATE database SET version = :version;"_ns,{auto tryResult3556 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3555 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult3555 )::ok_type>); if ((__builtin_expect(!!(tryResult3555.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult3555.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16183, mozilla::dom::quota::Severity::Error); return tryResult3555 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult3556)::ok_type>); if ((__builtin_expect (!!(tryResult3556.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3555 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult3555)::ok_type>); if ((__builtin_expect(!!(tryResult3555.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult3555.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16183, mozilla::dom::quota::Severity::Error); return tryResult3555.propagateErr(); }}; return Ok{}; })))" , tryResult3556.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16186, mozilla::dom::quota::Severity::Error); return tryResult3556 .propagateErr(); }} | |||
16180 | ([&self = *this]({auto tryResult3556 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3555 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult3555 )::ok_type>); if ((__builtin_expect(!!(tryResult3555.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult3555.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16183, mozilla::dom::quota::Severity::Error); return tryResult3555 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult3556)::ok_type>); if ((__builtin_expect (!!(tryResult3556.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3555 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult3555)::ok_type>); if ((__builtin_expect(!!(tryResult3555.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult3555.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16183, mozilla::dom::quota::Severity::Error); return tryResult3555.propagateErr(); }}; return Ok{}; })))" , tryResult3556.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16186, mozilla::dom::quota::Severity::Error); return tryResult3556 .propagateErr(); }} | |||
16181 | mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> {{auto tryResult3556 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3555 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult3555 )::ok_type>); if ((__builtin_expect(!!(tryResult3555.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult3555.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16183, mozilla::dom::quota::Severity::Error); return tryResult3555 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult3556)::ok_type>); if ((__builtin_expect (!!(tryResult3556.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3555 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult3555)::ok_type>); if ((__builtin_expect(!!(tryResult3555.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult3555.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16183, mozilla::dom::quota::Severity::Error); return tryResult3555.propagateErr(); }}; return Ok{}; })))" , tryResult3556.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16186, mozilla::dom::quota::Severity::Error); return tryResult3556 .propagateErr(); }} | |||
16182 | QM_TRY(MOZ_TO_RESULT({auto tryResult3556 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3555 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult3555 )::ok_type>); if ((__builtin_expect(!!(tryResult3555.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult3555.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16183, mozilla::dom::quota::Severity::Error); return tryResult3555 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult3556)::ok_type>); if ((__builtin_expect (!!(tryResult3556.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3555 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult3555)::ok_type>); if ((__builtin_expect(!!(tryResult3555.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult3555.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16183, mozilla::dom::quota::Severity::Error); return tryResult3555.propagateErr(); }}; return Ok{}; })))" , tryResult3556.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16186, mozilla::dom::quota::Severity::Error); return tryResult3556 .propagateErr(); }} | |||
16183 | updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion))));{auto tryResult3556 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3555 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult3555 )::ok_type>); if ((__builtin_expect(!!(tryResult3555.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult3555.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16183, mozilla::dom::quota::Severity::Error); return tryResult3555 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult3556)::ok_type>); if ((__builtin_expect (!!(tryResult3556.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3555 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult3555)::ok_type>); if ((__builtin_expect(!!(tryResult3555.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult3555.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16183, mozilla::dom::quota::Severity::Error); return tryResult3555.propagateErr(); }}; return Ok{}; })))" , tryResult3556.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16186, mozilla::dom::quota::Severity::Error); return tryResult3556 .propagateErr(); }} | |||
16184 | ||||
16185 | return Ok{};{auto tryResult3556 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3555 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult3555 )::ok_type>); if ((__builtin_expect(!!(tryResult3555.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult3555.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16183, mozilla::dom::quota::Severity::Error); return tryResult3555 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult3556)::ok_type>); if ((__builtin_expect (!!(tryResult3556.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3555 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult3555)::ok_type>); if ((__builtin_expect(!!(tryResult3555.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult3555.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16183, mozilla::dom::quota::Severity::Error); return tryResult3555.propagateErr(); }}; return Ok{}; })))" , tryResult3556.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16186, mozilla::dom::quota::Severity::Error); return tryResult3556 .propagateErr(); }} | |||
16186 | })))){auto tryResult3556 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3555 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult3555 )::ok_type>); if ((__builtin_expect(!!(tryResult3555.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult3555.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16183, mozilla::dom::quota::Severity::Error); return tryResult3555 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult3556)::ok_type>); if ((__builtin_expect (!!(tryResult3556.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3555 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult3555)::ok_type>); if ((__builtin_expect(!!(tryResult3555.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult3555.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16183, mozilla::dom::quota::Severity::Error); return tryResult3555.propagateErr(); }}; return Ok{}; })))" , tryResult3556.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16186, mozilla::dom::quota::Severity::Error); return tryResult3556 .propagateErr(); }}; | |||
16187 | ||||
16188 | return NS_OK; | |||
16189 | } | |||
16190 | ||||
16191 | nsresult OpenDatabaseOp::VersionChangeOp::SendSuccessResult() { | |||
16192 | AssertIsOnOwningThread(); | |||
16193 | MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"); do { *((volatile int*)__null) = 16193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16194 | MOZ_ASSERT(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange" ")"); do { *((volatile int*)__null) = 16194; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16195 | MOZ_ASSERT(mOpenDatabaseOp->mVersionChangeOp == this)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp->mVersionChangeOp == this)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mOpenDatabaseOp->mVersionChangeOp == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mVersionChangeOp == this" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this" ")"); do { *((volatile int*)__null) = 16195; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16196 | ||||
16197 | nsresult rv = mOpenDatabaseOp->SendUpgradeNeeded(); | |||
16198 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16198)) { | |||
16199 | return rv; | |||
16200 | } | |||
16201 | ||||
16202 | return NS_OK; | |||
16203 | } | |||
16204 | ||||
16205 | bool OpenDatabaseOp::VersionChangeOp::SendFailureResult(nsresult aResultCode) { | |||
16206 | AssertIsOnOwningThread(); | |||
16207 | MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16207); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"); do { *((volatile int*)__null) = 16207; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16208 | MOZ_ASSERT(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16208); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange" ")"); do { *((volatile int*)__null) = 16208; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16209 | MOZ_ASSERT(mOpenDatabaseOp->mVersionChangeOp == this)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp->mVersionChangeOp == this)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mOpenDatabaseOp->mVersionChangeOp == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mVersionChangeOp == this" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16209); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this" ")"); do { *((volatile int*)__null) = 16209; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16210 | ||||
16211 | mOpenDatabaseOp->SetFailureCode(aResultCode); | |||
16212 | mOpenDatabaseOp->mState = State::SendingResults; | |||
16213 | ||||
16214 | MOZ_ALWAYS_SUCCEEDS(mOpenDatabaseOp->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mOpenDatabaseOp->Run())), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(mOpenDatabaseOp->Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16214); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mOpenDatabaseOp->Run())" ")"); do { * ((volatile int*)__null) = 16214; __attribute__((nomerge)) ::abort (); } while (false); } } while (false); } } while (false); | |||
16215 | ||||
16216 | return false; | |||
16217 | } | |||
16218 | ||||
16219 | void OpenDatabaseOp::VersionChangeOp::Cleanup() { | |||
16220 | AssertIsOnOwningThread(); | |||
16221 | MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16221); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"); do { *((volatile int*)__null) = 16221; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16222 | MOZ_ASSERT(mOpenDatabaseOp->mVersionChangeOp == this)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOpenDatabaseOp->mVersionChangeOp == this)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mOpenDatabaseOp->mVersionChangeOp == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mVersionChangeOp == this" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16222); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this" ")"); do { *((volatile int*)__null) = 16222; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16223 | ||||
16224 | mOpenDatabaseOp->mVersionChangeOp = nullptr; | |||
16225 | mOpenDatabaseOp = nullptr; | |||
16226 | ||||
16227 | #ifdef DEBUG1 | |||
16228 | // A bit hacky but the VersionChangeOp is not generated in response to a | |||
16229 | // child request like most other database operations. Do this to make our | |||
16230 | // assertions happy. | |||
16231 | // | |||
16232 | // XXX: Depending on timing, in most cases, NoteActorDestroyed will not have | |||
16233 | // been destroyed before, but in some cases it has. This should be reworked in | |||
16234 | // a way this hack is not necessary. There are also several similar cases in | |||
16235 | // other *Op classes. | |||
16236 | if (!IsActorDestroyed()) { | |||
16237 | NoteActorDestroyed(); | |||
16238 | } | |||
16239 | #endif | |||
16240 | ||||
16241 | TransactionDatabaseOperationBase::Cleanup(); | |||
16242 | } | |||
16243 | ||||
16244 | void DeleteDatabaseOp::LoadPreviousVersion(nsIFile& aDatabaseFile) { | |||
16245 | AssertIsOnIOThread(); | |||
16246 | MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseWorkOpen", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16246); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen" ")"); do { *((volatile int*)__null) = 16246; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16247 | MOZ_ASSERT(!mPreviousVersion)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mPreviousVersion)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mPreviousVersion))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mPreviousVersion" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16247); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mPreviousVersion" ")"); do { *((volatile int*)__null) = 16247; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16248 | ||||
16249 | AUTO_PROFILER_LABEL("DeleteDatabaseOp::LoadPreviousVersion", DOM)mozilla::AutoProfilerLabel raiiObject16249( "DeleteDatabaseOp::LoadPreviousVersion" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
16250 | ||||
16251 | nsresult rv; | |||
16252 | ||||
16253 | nsCOMPtr<mozIStorageService> ss = | |||
16254 | do_GetService(MOZ_STORAGE_SERVICE_CONTRACTID"@mozilla.org/storage" "/service;1", &rv); | |||
16255 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16255)) { | |||
16256 | return; | |||
16257 | } | |||
16258 | ||||
16259 | IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get(); | |||
16260 | MOZ_ASSERT(idm)do { static_assert( mozilla::detail::AssertionConditionType< decltype(idm)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(idm))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("idm", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16260); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")"); do { *((volatile int*)__null) = 16260; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
16261 | ||||
16262 | const PersistenceType persistenceType = | |||
16263 | mCommonParams.metadata().persistenceType(); | |||
16264 | const nsAString& databaseName = mCommonParams.metadata().name(); | |||
16265 | ||||
16266 | SafeRefPtr<DatabaseFileManager> fileManager = idm->GetFileManager( | |||
16267 | persistenceType, mOriginMetadata.mOrigin, databaseName); | |||
16268 | ||||
16269 | if (!fileManager) { | |||
16270 | fileManager = MakeSafeRefPtr<DatabaseFileManager>( | |||
16271 | persistenceType, mOriginMetadata, databaseName, mDatabaseId.ref(), | |||
16272 | mDatabaseFilePath.ref(), mEnforcingQuota, mInPrivateBrowsing); | |||
16273 | } | |||
16274 | ||||
16275 | const auto maybeKey = | |||
16276 | mInPrivateBrowsing | |||
16277 | ? Some(fileManager->MutableCipherKeyManagerRef().Ensure()) | |||
16278 | : Nothing(); | |||
16279 | ||||
16280 | MOZ_RELEASE_ASSERT(mInPrivateBrowsing == maybeKey.isSome())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInPrivateBrowsing == maybeKey.isSome())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInPrivateBrowsing == maybeKey.isSome()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInPrivateBrowsing == maybeKey.isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16280); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()" ")"); do { *((volatile int*)__null) = 16280; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16281 | ||||
16282 | // Pass -1 as the directoryLockId to disable quota checking, since we might | |||
16283 | // temporarily exceed quota before deleting the database. | |||
16284 | QM_TRY_INSPECT(const auto& dbFileUrl,auto tryResult3557 = (GetDatabaseFileURL(aDatabaseFile, -1, maybeKey )); if ((__builtin_expect(!!(tryResult3557.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3557.unwrapErr (); mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16285, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const auto& dbFileUrl = tryResult3557.inspect(); | |||
16285 | GetDatabaseFileURL(aDatabaseFile, -1, maybeKey), QM_VOID)auto tryResult3557 = (GetDatabaseFileURL(aDatabaseFile, -1, maybeKey )); if ((__builtin_expect(!!(tryResult3557.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3557.unwrapErr (); mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16285, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const auto& dbFileUrl = tryResult3557.inspect();; | |||
16286 | ||||
16287 | QM_TRY_UNWRAP(const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult3558 = (OpenDatabaseAndHandleBusy(*ss, *dbFileUrl )); if ((__builtin_expect(!!(tryResult3558.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3558.unwrapErr (); mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16288, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const NotNull<nsCOMPtr<mozIStorageConnection>> connection = tryResult3558.unwrap(); | |||
16288 | OpenDatabaseAndHandleBusy(*ss, *dbFileUrl), QM_VOID)auto tryResult3558 = (OpenDatabaseAndHandleBusy(*ss, *dbFileUrl )); if ((__builtin_expect(!!(tryResult3558.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3558.unwrapErr (); mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16288, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const NotNull<nsCOMPtr<mozIStorageConnection>> connection = tryResult3558.unwrap();; | |||
16289 | ||||
16290 | #ifdef DEBUG1 | |||
16291 | { | |||
16292 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3559 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns )); if ((__builtin_expect(!!(tryResult3559.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3559.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16296, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const auto& stmt = tryResult3559.inspect(); | |||
16293 | CreateAndExecuteSingleStepStatement<auto tryResult3559 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns )); if ((__builtin_expect(!!(tryResult3559.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3559.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16296, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const auto& stmt = tryResult3559.inspect(); | |||
16294 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult3559 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns )); if ((__builtin_expect(!!(tryResult3559.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3559.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16296, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const auto& stmt = tryResult3559.inspect(); | |||
16295 | *connection, "SELECT name FROM database"_ns),auto tryResult3559 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns )); if ((__builtin_expect(!!(tryResult3559.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3559.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16296, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const auto& stmt = tryResult3559.inspect(); | |||
16296 | QM_VOID)auto tryResult3559 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns )); if ((__builtin_expect(!!(tryResult3559.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3559.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16296, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const auto& stmt = tryResult3559.inspect();; | |||
16297 | ||||
16298 | QM_TRY(OkIf(stmt), QM_VOID){auto tryResult3560 = (OkIf(stmt)); static_assert(std::is_empty_v <typename decltype(tryResult3560)::ok_type>); if ((__builtin_expect (!!(tryResult3560.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3560.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(stmt)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16298, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; | |||
16299 | ||||
16300 | nsString databaseName; | |||
16301 | rv = stmt->GetString(0, databaseName); | |||
16302 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16302)) { | |||
16303 | return; | |||
16304 | } | |||
16305 | ||||
16306 | MOZ_ASSERT(mCommonParams.metadata().name() == databaseName)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCommonParams.metadata().name() == databaseName)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mCommonParams.metadata().name() == databaseName))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mCommonParams.metadata().name() == databaseName" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16306); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCommonParams.metadata().name() == databaseName" ")"); do { *((volatile int*)__null) = 16306; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16307 | } | |||
16308 | #endif | |||
16309 | ||||
16310 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3561 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns )); if ((__builtin_expect(!!(tryResult3561.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3561.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const auto& stmt = tryResult3561.inspect(); | |||
16311 | CreateAndExecuteSingleStepStatement<auto tryResult3561 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns )); if ((__builtin_expect(!!(tryResult3561.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3561.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const auto& stmt = tryResult3561.inspect(); | |||
16312 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult3561 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns )); if ((__builtin_expect(!!(tryResult3561.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3561.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const auto& stmt = tryResult3561.inspect(); | |||
16313 | *connection, "SELECT version FROM database"_ns),auto tryResult3561 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns )); if ((__builtin_expect(!!(tryResult3561.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3561.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const auto& stmt = tryResult3561.inspect(); | |||
16314 | QM_VOID)auto tryResult3561 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns )); if ((__builtin_expect(!!(tryResult3561.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3561.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16314, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } const auto& stmt = tryResult3561.inspect();; | |||
16315 | ||||
16316 | QM_TRY(OkIf(stmt), QM_VOID){auto tryResult3562 = (OkIf(stmt)); static_assert(std::is_empty_v <typename decltype(tryResult3562)::ok_type>); if ((__builtin_expect (!!(tryResult3562.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3562.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(stmt)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16316, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; | |||
16317 | ||||
16318 | int64_t version; | |||
16319 | rv = stmt->GetInt64(0, &version); | |||
16320 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16320)) { | |||
16321 | return; | |||
16322 | } | |||
16323 | ||||
16324 | mPreviousVersion = uint64_t(version); | |||
16325 | } | |||
16326 | ||||
16327 | nsresult DeleteDatabaseOp::DatabaseOpen() { | |||
16328 | AssertIsOnOwningThread(); | |||
16329 | MOZ_ASSERT(mState == State::DatabaseOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseOpenPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseOpenPending ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseOpenPending", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16329); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending" ")"); do { *((volatile int*)__null) = 16329; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16330 | ||||
16331 | nsresult rv = SendToIOThread(); | |||
16332 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16332)) { | |||
16333 | return rv; | |||
16334 | } | |||
16335 | ||||
16336 | return NS_OK; | |||
16337 | } | |||
16338 | ||||
16339 | nsresult DeleteDatabaseOp::DoDatabaseWork() { | |||
16340 | AssertIsOnIOThread(); | |||
16341 | MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseWorkOpen", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16341); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen" ")"); do { *((volatile int*)__null) = 16341; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16342 | MOZ_ASSERT(mOriginMetadata.mPersistenceType ==do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOriginMetadata.mPersistenceType == mCommonParams.metadata ().persistenceType())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16343); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()" ")"); do { *((volatile int*)__null) = 16343; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
16343 | mCommonParams.metadata().persistenceType())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOriginMetadata.mPersistenceType == mCommonParams.metadata ().persistenceType())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16343); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()" ")"); do { *((volatile int*)__null) = 16343; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16344 | ||||
16345 | AUTO_PROFILER_LABEL("DeleteDatabaseOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16345( "DeleteDatabaseOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
16346 | ||||
16347 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16347) || | |||
16348 | !OperationMayProceed()) { | |||
16349 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16349, "UnknownErr"); | |||
16350 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
16351 | } | |||
16352 | ||||
16353 | const nsAString& databaseName = mCommonParams.metadata().name(); | |||
16354 | ||||
16355 | QuotaManager* const quotaManager = QuotaManager::Get(); | |||
16356 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16356); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { *((volatile int*)__null) = 16356; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16357 | ||||
16358 | QM_TRY_UNWRAP(auto directory,auto tryResult3563 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult3563.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult3563.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16359, mozilla::dom::quota::Severity::Error); return tryResult3563 .propagateErr(); } auto directory = tryResult3563.unwrap(); | |||
16359 | quotaManager->GetOriginDirectory(mOriginMetadata))auto tryResult3563 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult3563.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult3563.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16359, mozilla::dom::quota::Severity::Error); return tryResult3563 .propagateErr(); } auto directory = tryResult3563.unwrap();; | |||
16360 | ||||
16361 | QM_TRY(MOZ_TO_RESULT({auto tryResult3564 = (ToResult(directory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3564 )::ok_type>); if ((__builtin_expect(!!(tryResult3564.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3564.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16362, mozilla::dom::quota::Severity::Error); return tryResult3564 .propagateErr(); }} | |||
16362 | directory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult3564 = (ToResult(directory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult3564 )::ok_type>); if ((__builtin_expect(!!(tryResult3564.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult3564.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16362, mozilla::dom::quota::Severity::Error); return tryResult3564 .propagateErr(); }}; | |||
16363 | ||||
16364 | QM_TRY_UNWRAP(mDatabaseDirectoryPath, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult3565 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (directory)>::GetPath), (directory))); if ((__builtin_expect (!!(tryResult3565.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(directory)>::GetPath), (directory))" , tryResult3565.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16365, mozilla::dom::quota::Severity::Error); return tryResult3565 .propagateErr(); } mDatabaseDirectoryPath = tryResult3565.unwrap (); | |||
16365 | nsString, directory, GetPath))auto tryResult3565 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (directory)>::GetPath), (directory))); if ((__builtin_expect (!!(tryResult3565.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(directory)>::GetPath), (directory))" , tryResult3565.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16365, mozilla::dom::quota::Severity::Error); return tryResult3565 .propagateErr(); } mDatabaseDirectoryPath = tryResult3565.unwrap ();; | |||
16366 | ||||
16367 | mDatabaseFilenameBase = | |||
16368 | GetDatabaseFilenameBase(databaseName, mOriginMetadata.mIsPrivate); | |||
16369 | ||||
16370 | QM_TRY_INSPECT(auto tryResult3566 = (CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult3566.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)" , tryResult3566.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16372, mozilla::dom::quota::Severity::Error); return tryResult3566 .propagateErr(); } const auto& dbFile = tryResult3566.inspect (); | |||
16371 | const auto& dbFile,auto tryResult3566 = (CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult3566.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)" , tryResult3566.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16372, mozilla::dom::quota::Severity::Error); return tryResult3566 .propagateErr(); } const auto& dbFile = tryResult3566.inspect (); | |||
16372 | CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix))auto tryResult3566 = (CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult3566.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)" , tryResult3566.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16372, mozilla::dom::quota::Severity::Error); return tryResult3566 .propagateErr(); } const auto& dbFile = tryResult3566.inspect ();; | |||
16373 | ||||
16374 | #ifdef DEBUG1 | |||
16375 | { | |||
16376 | QM_TRY_INSPECT(auto tryResult3567 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!( tryResult3567.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3567.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16378, mozilla::dom::quota::Severity::Error); return tryResult3567 .propagateErr(); } const auto& databaseFilePath = tryResult3567 .inspect(); | |||
16377 | const auto& databaseFilePath,auto tryResult3567 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!( tryResult3567.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3567.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16378, mozilla::dom::quota::Severity::Error); return tryResult3567 .propagateErr(); } const auto& databaseFilePath = tryResult3567 .inspect(); | |||
16378 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath))auto tryResult3567 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!( tryResult3567.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))" , tryResult3567.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16378, mozilla::dom::quota::Severity::Error); return tryResult3567 .propagateErr(); } const auto& databaseFilePath = tryResult3567 .inspect();; | |||
16379 | ||||
16380 | MOZ_ASSERT(databaseFilePath == mDatabaseFilePath.ref())do { static_assert( mozilla::detail::AssertionConditionType< decltype(databaseFilePath == mDatabaseFilePath.ref())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(databaseFilePath == mDatabaseFilePath.ref()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("databaseFilePath == mDatabaseFilePath.ref()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16380); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFilePath == mDatabaseFilePath.ref()" ")"); do { *((volatile int*)__null) = 16380; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16381 | } | |||
16382 | #endif | |||
16383 | ||||
16384 | QM_TRY_INSPECT(const bool& exists,auto tryResult3568 = (::mozilla::ToResultInvokeMember( (dbFile ), &::mozilla::detail::DerefedType<decltype(dbFile)> ::Exists)); if ((__builtin_expect(!!(tryResult3568.isErr()), 0 ))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbFile), &::mozilla::detail::DerefedType<decltype(dbFile)>::Exists)" , tryResult3568.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16385, mozilla::dom::quota::Severity::Error); return tryResult3568 .propagateErr(); } const bool& exists = tryResult3568.inspect (); | |||
16385 | MOZ_TO_RESULT_INVOKE_MEMBER(dbFile, Exists))auto tryResult3568 = (::mozilla::ToResultInvokeMember( (dbFile ), &::mozilla::detail::DerefedType<decltype(dbFile)> ::Exists)); if ((__builtin_expect(!!(tryResult3568.isErr()), 0 ))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbFile), &::mozilla::detail::DerefedType<decltype(dbFile)>::Exists)" , tryResult3568.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16385, mozilla::dom::quota::Severity::Error); return tryResult3568 .propagateErr(); } const bool& exists = tryResult3568.inspect ();; | |||
16386 | ||||
16387 | if (exists) { | |||
16388 | // Parts of this function may fail but that shouldn't prevent us from | |||
16389 | // deleting the file eventually. | |||
16390 | LoadPreviousVersion(*dbFile); | |||
16391 | ||||
16392 | mState = State::BeginVersionChange; | |||
16393 | } else { | |||
16394 | mState = State::SendingResults; | |||
16395 | } | |||
16396 | ||||
16397 | QM_TRY(MOZ_TO_RESULT({auto tryResult3569 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult3569)::ok_type>); if ((__builtin_expect (!!(tryResult3569.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult3569.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16398, mozilla::dom::quota::Severity::Error); return tryResult3569 .propagateErr(); }} | |||
16398 | DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult3569 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult3569)::ok_type>); if ((__builtin_expect (!!(tryResult3569.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult3569.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16398, mozilla::dom::quota::Severity::Error); return tryResult3569 .propagateErr(); }}; | |||
16399 | ||||
16400 | return NS_OK; | |||
16401 | } | |||
16402 | ||||
16403 | nsresult DeleteDatabaseOp::BeginVersionChange() { | |||
16404 | AssertIsOnOwningThread(); | |||
16405 | MOZ_ASSERT(mState == State::BeginVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::BeginVersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::BeginVersionChange", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16405); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange" ")"); do { *((volatile int*)__null) = 16405; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16406 | MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeBlockedDatabases.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16406); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { *((volatile int*)__null) = 16406; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16407 | ||||
16408 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16408) || | |||
16409 | IsActorDestroyed()) { | |||
16410 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16410, "UnknownErr"); | |||
16411 | QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult3570 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR )); static_assert(std::is_empty_v<typename decltype(tryResult3570 )::ok_type>); if ((__builtin_expect(!!(tryResult3570.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)" , tryResult3570.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16411, mozilla::dom::quota::Severity::Error); return tryResult3570 .propagateErr(); }}; | |||
16412 | } | |||
16413 | ||||
16414 | DatabaseActorInfo* info; | |||
16415 | if (gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { | |||
16416 | MOZ_ASSERT(!info->mWaitingFactoryOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16416); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { *((volatile int*)__null) = 16416; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16417 | ||||
16418 | nsresult rv = | |||
16419 | SendVersionChangeMessages(info, Nothing(), mPreviousVersion, Nothing()); | |||
16420 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16420)) { | |||
16421 | return rv; | |||
16422 | } | |||
16423 | ||||
16424 | if (!mMaybeBlockedDatabases.IsEmpty()) { | |||
16425 | // If the actor gets destroyed, mWaitingFactoryOp will hold the last | |||
16426 | // strong reference to us. | |||
16427 | info->mWaitingFactoryOp = this; | |||
16428 | ||||
16429 | mState = State::WaitingForOtherDatabasesToClose; | |||
16430 | return NS_OK; | |||
16431 | } | |||
16432 | } | |||
16433 | ||||
16434 | // No other databases need to be notified, just make sure that all | |||
16435 | // transactions are complete. | |||
16436 | WaitForTransactions(); | |||
16437 | return NS_OK; | |||
16438 | } | |||
16439 | ||||
16440 | bool DeleteDatabaseOp::AreActorsAlive() { | |||
16441 | AssertIsOnOwningThread(); | |||
16442 | ||||
16443 | return !IsActorDestroyed(); | |||
16444 | } | |||
16445 | ||||
16446 | nsresult DeleteDatabaseOp::DispatchToWorkThread() { | |||
16447 | AssertIsOnOwningThread(); | |||
16448 | MOZ_ASSERT(mState == State::WaitingForTransactionsToComplete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::WaitingForTransactionsToComplete)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::WaitingForTransactionsToComplete))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForTransactionsToComplete" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16448); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForTransactionsToComplete" ")"); do { *((volatile int*)__null) = 16448; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16449 | MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeBlockedDatabases.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16449); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { *((volatile int*)__null) = 16449; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16450 | ||||
16451 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16451) || | |||
16452 | IsActorDestroyed()) { | |||
16453 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16453, "UnknownErr"); | |||
16454 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
16455 | } | |||
16456 | ||||
16457 | mState = State::DatabaseWorkVersionChange; | |||
16458 | ||||
16459 | RefPtr<VersionChangeOp> versionChangeOp = new VersionChangeOp(this); | |||
16460 | ||||
16461 | QuotaManager* const quotaManager = QuotaManager::Get(); | |||
16462 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16462); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { *((volatile int*)__null) = 16462; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16463 | ||||
16464 | nsresult rv = quotaManager->IOThread()->Dispatch(versionChangeOp.forget(), | |||
16465 | NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL); | |||
16466 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16466)) { | |||
16467 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16467, "UnknownErr"); | |||
16468 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
16469 | } | |||
16470 | ||||
16471 | return NS_OK; | |||
16472 | } | |||
16473 | ||||
16474 | void DeleteDatabaseOp::SendBlockedNotification() { | |||
16475 | AssertIsOnOwningThread(); | |||
16476 | MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::WaitingForOtherDatabasesToClose)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mState == State::WaitingForOtherDatabasesToClose))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForOtherDatabasesToClose" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16476); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose" ")"); do { *((volatile int*)__null) = 16476; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16477 | ||||
16478 | if (!IsActorDestroyed()) { | |||
16479 | Unused << SendBlocked(mPreviousVersion); | |||
16480 | } | |||
16481 | } | |||
16482 | ||||
16483 | void DeleteDatabaseOp::SendResults() { | |||
16484 | AssertIsOnOwningThread(); | |||
16485 | MOZ_ASSERT(mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::SendingResults)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::SendingResults ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::SendingResults", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16485); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults" ")"); do { *((volatile int*)__null) = 16485; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16486 | MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeBlockedDatabases.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16486); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { *((volatile int*)__null) = 16486; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16487 | ||||
16488 | DebugOnly<DatabaseActorInfo*> info = nullptr; | |||
16489 | MOZ_ASSERT_IF(mDatabaseId.isSome() && gLiveDatabaseHashtable &&do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable && gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { *((volatile int*)__null) = 16491; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
16490 | gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info),do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable && gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { *((volatile int*)__null) = 16491; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
16491 | !info->mWaitingFactoryOp)do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable && gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { *((volatile int*)__null) = 16491; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
16492 | ||||
16493 | if (!IsActorDestroyed()) { | |||
16494 | FactoryRequestResponse response; | |||
16495 | ||||
16496 | if (!HasFailed()) { | |||
16497 | response = DeleteDatabaseRequestResponse(mPreviousVersion); | |||
16498 | } else { | |||
16499 | response = ClampResultCode(ResultCode()); | |||
16500 | } | |||
16501 | ||||
16502 | Unused << PBackgroundIDBFactoryRequestParent::Send__delete__(this, | |||
16503 | response); | |||
16504 | } | |||
16505 | ||||
16506 | SafeDropDirectoryLock(mDirectoryLock); | |||
16507 | ||||
16508 | CleanupMetadata(); | |||
16509 | ||||
16510 | FinishSendResults(); | |||
16511 | } | |||
16512 | ||||
16513 | nsresult DeleteDatabaseOp::VersionChangeOp::RunOnIOThread() { | |||
16514 | AssertIsOnIOThread(); | |||
16515 | MOZ_ASSERT(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange" ")"); do { *((volatile int*)__null) = 16515; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16516 | ||||
16517 | AUTO_PROFILER_LABEL("DeleteDatabaseOp::VersionChangeOp::RunOnIOThread", DOM)mozilla::AutoProfilerLabel raiiObject16517( "DeleteDatabaseOp::VersionChangeOp::RunOnIOThread" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
16518 | ||||
16519 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16519) || | |||
16520 | !OperationMayProceed()) { | |||
16521 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16521, "UnknownErr"); | |||
16522 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
16523 | } | |||
16524 | ||||
16525 | const PersistenceType& persistenceType = | |||
16526 | mDeleteDatabaseOp->mCommonParams.metadata().persistenceType(); | |||
16527 | ||||
16528 | QuotaManager* quotaManager = | |||
16529 | mDeleteDatabaseOp->mEnforcingQuota ? QuotaManager::Get() : nullptr; | |||
16530 | ||||
16531 | MOZ_ASSERT_IF(mDeleteDatabaseOp->mEnforcingQuota, quotaManager)do { if (mDeleteDatabaseOp->mEnforcingQuota) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(quotaManager )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16531); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { *((volatile int*)__null) = 16531; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
16532 | ||||
16533 | nsCOMPtr<nsIFile> directory = | |||
16534 | GetFileForPath(mDeleteDatabaseOp->mDatabaseDirectoryPath); | |||
16535 | if (NS_WARN_IF(!directory)NS_warn_if_impl(!directory, "!directory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16535)) { | |||
16536 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16536, "UnknownErr"); | |||
16537 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
16538 | } | |||
16539 | ||||
16540 | nsresult rv = RemoveDatabaseFilesAndDirectory( | |||
16541 | *directory, mDeleteDatabaseOp->mDatabaseFilenameBase, quotaManager, | |||
16542 | persistenceType, mDeleteDatabaseOp->mOriginMetadata, | |||
16543 | mDeleteDatabaseOp->mCommonParams.metadata().name()); | |||
16544 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16544)) { | |||
16545 | return rv; | |||
16546 | } | |||
16547 | ||||
16548 | rv = mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL); | |||
16549 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16549)) { | |||
16550 | return rv; | |||
16551 | } | |||
16552 | ||||
16553 | return NS_OK; | |||
16554 | } | |||
16555 | ||||
16556 | void DeleteDatabaseOp::VersionChangeOp::RunOnOwningThread() { | |||
16557 | AssertIsOnOwningThread(); | |||
16558 | MOZ_ASSERT(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16558); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange" ")"); do { *((volatile int*)__null) = 16558; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16559 | ||||
16560 | const RefPtr<DeleteDatabaseOp> deleteOp = std::move(mDeleteDatabaseOp); | |||
16561 | ||||
16562 | if (deleteOp->IsActorDestroyed()) { | |||
16563 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16563, "UnknownErr"); | |||
16564 | deleteOp->SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | |||
16565 | } else if (HasFailed()) { | |||
16566 | deleteOp->SetFailureCodeIfUnset(ResultCode()); | |||
16567 | } else { | |||
16568 | DatabaseActorInfo* info; | |||
16569 | ||||
16570 | // Inform all the other databases that they are now invalidated. That | |||
16571 | // should remove the previous metadata from our table. | |||
16572 | if (gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref(), &info)) { | |||
16573 | MOZ_ASSERT(!info->mLiveDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mLiveDatabases.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mLiveDatabases.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!info->mLiveDatabases.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.IsEmpty()" ")"); do { *((volatile int*)__null) = 16573; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16574 | MOZ_ASSERT(!info->mWaitingFactoryOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { *((volatile int*)__null) = 16574; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16575 | ||||
16576 | nsTArray<SafeRefPtr<Database>> liveDatabases; | |||
16577 | if (NS_WARN_IF(!liveDatabases.SetCapacity(info->mLiveDatabases.Length(),NS_warn_if_impl(!liveDatabases.SetCapacity(info->mLiveDatabases .Length(), fallible), "!liveDatabases.SetCapacity(info->mLiveDatabases.Length(), fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16578) | |||
16578 | fallible))NS_warn_if_impl(!liveDatabases.SetCapacity(info->mLiveDatabases .Length(), fallible), "!liveDatabases.SetCapacity(info->mLiveDatabases.Length(), fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16578)) { | |||
16579 | deleteOp->SetFailureCode(NS_ERROR_OUT_OF_MEMORY); | |||
16580 | } else { | |||
16581 | std::transform(info->mLiveDatabases.cbegin(), | |||
16582 | info->mLiveDatabases.cend(), | |||
16583 | MakeBackInserter(liveDatabases), | |||
16584 | [](const auto& aDatabase) -> SafeRefPtr<Database> { | |||
16585 | return {aDatabase.get(), AcquireStrongRefFromRawPtr{}}; | |||
16586 | }); | |||
16587 | ||||
16588 | #ifdef DEBUG1 | |||
16589 | // The code below should result in the deletion of |info|. Set to null | |||
16590 | // here to make sure we find invalid uses later. | |||
16591 | info = nullptr; | |||
16592 | #endif | |||
16593 | ||||
16594 | for (const auto& database : liveDatabases) { | |||
16595 | database->Invalidate(); | |||
16596 | } | |||
16597 | ||||
16598 | MOZ_ASSERT(!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref()))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId .ref()))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId .ref())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref())" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16598); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref())" ")"); do { *((volatile int*)__null) = 16598; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16599 | } | |||
16600 | } | |||
16601 | } | |||
16602 | ||||
16603 | // We hold a strong ref to the deleteOp, so it's safe to call Run() directly. | |||
16604 | ||||
16605 | deleteOp->mState = State::SendingResults; | |||
16606 | MOZ_ALWAYS_SUCCEEDS(deleteOp->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (deleteOp->Run())), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(deleteOp->Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16606); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(deleteOp->Run())" ")"); do { *((volatile int*)__null) = 16606; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
16607 | ||||
16608 | #ifdef DEBUG1 | |||
16609 | // A bit hacky but the DeleteDatabaseOp::VersionChangeOp is not really a | |||
16610 | // normal database operation that is tied to an actor. Do this to make our | |||
16611 | // assertions happy. | |||
16612 | NoteActorDestroyed(); | |||
16613 | #endif | |||
16614 | } | |||
16615 | ||||
16616 | nsresult DeleteDatabaseOp::VersionChangeOp::Run() { | |||
16617 | nsresult rv; | |||
16618 | ||||
16619 | if (IsOnIOThread()) { | |||
16620 | rv = RunOnIOThread(); | |||
16621 | } else { | |||
16622 | RunOnOwningThread(); | |||
16623 | rv = NS_OK; | |||
16624 | } | |||
16625 | ||||
16626 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16626)) { | |||
16627 | SetFailureCodeIfUnset(rv); | |||
16628 | ||||
16629 | MOZ_ALWAYS_SUCCEEDS(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16629); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 16629; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
16630 | } | |||
16631 | ||||
16632 | return NS_OK; | |||
16633 | } | |||
16634 | ||||
16635 | nsresult GetDatabasesOp::DatabasesNotAvailable() { | |||
16636 | AssertIsOnIOThread(); | |||
16637 | MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseWorkOpen", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen" ")"); do { *((volatile int*)__null) = 16637; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16638 | ||||
16639 | mState = State::SendingResults; | |||
16640 | ||||
16641 | QM_TRY(MOZ_TO_RESULT({auto tryResult3571 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult3571)::ok_type>); if ((__builtin_expect (!!(tryResult3571.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult3571.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16642, mozilla::dom::quota::Severity::Error); return tryResult3571 .propagateErr(); }} | |||
16642 | DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult3571 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult3571)::ok_type>); if ((__builtin_expect (!!(tryResult3571.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult3571.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16642, mozilla::dom::quota::Severity::Error); return tryResult3571 .propagateErr(); }}; | |||
16643 | ||||
16644 | return NS_OK; | |||
16645 | } | |||
16646 | ||||
16647 | nsresult GetDatabasesOp::DoDirectoryWork() { | |||
16648 | AssertIsOnIOThread(); | |||
16649 | MOZ_ASSERT(mState == State::DirectoryWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DirectoryWorkOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DirectoryWorkOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DirectoryWorkOpen", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16649); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkOpen" ")"); do { *((volatile int*)__null) = 16649; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16650 | ||||
16651 | // This state (DirectoryWorkOpen) runs immediately on the I/O thread, before | |||
16652 | // waiting for existing factory operations to complete (at which point | |||
16653 | // DoDatabaseWork will be invoked). To match the spec, we must snapshot the | |||
16654 | // current state of any databases that are being created (version = 0) or | |||
16655 | // upgraded (version >= 1) now. If we only sampled these values in | |||
16656 | // DoDatabaseWork, we would only see their post-creation/post-upgrade | |||
16657 | // versions, which would be incorrect. | |||
16658 | ||||
16659 | IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get(); | |||
16660 | MOZ_ASSERT(idm)do { static_assert( mozilla::detail::AssertionConditionType< decltype(idm)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(idm))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("idm", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16660); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")"); do { *((volatile int*)__null) = 16660; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
16661 | ||||
16662 | const auto& fileManagers = | |||
16663 | idm->GetFileManagers(mPersistenceType, mOriginMetadata.mOrigin); | |||
16664 | ||||
16665 | for (const auto& fileManager : fileManagers) { | |||
16666 | auto& metadata = | |||
16667 | mDatabaseMetadataTable.LookupOrInsert(fileManager->DatabaseFilePath()); | |||
16668 | metadata.name() = fileManager->DatabaseName(); | |||
16669 | metadata.version() = fileManager->DatabaseVersion(); | |||
16670 | } | |||
16671 | ||||
16672 | // Must set this before dispatching otherwise we will race with the IO thread. | |||
16673 | mState = State::DirectoryWorkDone; | |||
16674 | ||||
16675 | QM_TRY(MOZ_TO_RESULT(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))){auto tryResult3572 = (ToResult(mOwningEventTarget->Dispatch (this, nsIEventTarget::DISPATCH_NORMAL))); static_assert(std:: is_empty_v<typename decltype(tryResult3572)::ok_type>); if ((__builtin_expect(!!(tryResult3572.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryResult3572.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16675, mozilla::dom::quota::Severity::Error); return tryResult3572 .propagateErr(); }}; | |||
16676 | ||||
16677 | return NS_OK; | |||
16678 | } | |||
16679 | ||||
16680 | nsresult GetDatabasesOp::DatabaseOpen() { | |||
16681 | AssertIsOnOwningThread(); | |||
16682 | MOZ_ASSERT(mState == State::DatabaseOpenPending)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseOpenPending)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseOpenPending ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseOpenPending", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16682); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending" ")"); do { *((volatile int*)__null) = 16682; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16683 | ||||
16684 | nsresult rv = SendToIOThread(); | |||
16685 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16685)) { | |||
16686 | return rv; | |||
16687 | } | |||
16688 | ||||
16689 | return NS_OK; | |||
16690 | } | |||
16691 | ||||
16692 | nsresult GetDatabasesOp::DoDatabaseWork() { | |||
16693 | AssertIsOnIOThread(); | |||
16694 | MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::DatabaseWorkOpen", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16694); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen" ")"); do { *((volatile int*)__null) = 16694; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16695 | ||||
16696 | AUTO_PROFILER_LABEL("GetDatabasesOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16696( "GetDatabasesOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
16697 | ||||
16698 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16698) || | |||
16699 | !OperationMayProceed()) { | |||
16700 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16700, "UnknownErr"); | |||
16701 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
16702 | } | |||
16703 | ||||
16704 | QuotaManager* const quotaManager = QuotaManager::Get(); | |||
16705 | MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(quotaManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { *((volatile int*)__null) = 16705; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16706 | ||||
16707 | if (mPersistenceType != PERSISTENCE_TYPE_PERSISTENT) { | |||
16708 | QM_TRY(MOZ_TO_RESULT({auto tryResult3573 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3573 )::ok_type>); if ((__builtin_expect(!!(tryResult3573.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3573.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16709, mozilla::dom::quota::Severity::Error); return tryResult3573 .propagateErr(); }} | |||
16709 | quotaManager->EnsureTemporaryStorageIsInitializedInternal())){auto tryResult3573 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal ())); static_assert(std::is_empty_v<typename decltype(tryResult3573 )::ok_type>); if ((__builtin_expect(!!(tryResult3573.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())" , tryResult3573.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16709, mozilla::dom::quota::Severity::Error); return tryResult3573 .propagateErr(); }}; | |||
16710 | } | |||
16711 | ||||
16712 | { | |||
16713 | QM_TRY_INSPECT(const bool& exists,auto tryResult3574 = (quotaManager->DoesOriginDirectoryExist (mOriginMetadata)); if ((__builtin_expect(!!(tryResult3574.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->DoesOriginDirectoryExist(mOriginMetadata)" , tryResult3574.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16714, mozilla::dom::quota::Severity::Error); return tryResult3574 .propagateErr(); } const bool& exists = tryResult3574.inspect (); | |||
16714 | quotaManager->DoesOriginDirectoryExist(mOriginMetadata))auto tryResult3574 = (quotaManager->DoesOriginDirectoryExist (mOriginMetadata)); if ((__builtin_expect(!!(tryResult3574.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->DoesOriginDirectoryExist(mOriginMetadata)" , tryResult3574.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16714, mozilla::dom::quota::Severity::Error); return tryResult3574 .propagateErr(); } const bool& exists = tryResult3574.inspect ();; | |||
16715 | if (!exists) { | |||
16716 | return DatabasesNotAvailable(); | |||
16717 | } | |||
16718 | } | |||
16719 | ||||
16720 | QM_TRY((["aManager, this](){auto tryResult3577 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3575.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575 ;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3576.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult3577)::ok_type >); if ((__builtin_expect(!!(tryResult3577.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3575.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3576.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult3577.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16730, mozilla::dom::quota::Severity::Error); return tryResult3577 .propagateErr(); }} | |||
16721 | -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> {{auto tryResult3577 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3575.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575 ;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3576.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult3577)::ok_type >); if ((__builtin_expect(!!(tryResult3577.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3575.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3576.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult3577.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16730, mozilla::dom::quota::Severity::Error); return tryResult3577 .propagateErr(); }} | |||
16722 | if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {{auto tryResult3577 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3575.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575 ;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3576.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult3577)::ok_type >); if ((__builtin_expect(!!(tryResult3577.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3575.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3576.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult3577.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16730, mozilla::dom::quota::Severity::Error); return tryResult3577 .propagateErr(); }} | |||
16723 | QM_TRY_RETURN(quotaManager->EnsurePersistentOriginIsInitializedInternal({auto tryResult3577 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3575.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575 ;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3576.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult3577)::ok_type >); if ((__builtin_expect(!!(tryResult3577.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3575.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3576.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult3577.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16730, mozilla::dom::quota::Severity::Error); return tryResult3577 .propagateErr(); }} | |||
16724 | mOriginMetadata));{auto tryResult3577 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3575.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575 ;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3576.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult3577)::ok_type >); if ((__builtin_expect(!!(tryResult3577.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3575.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3576.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult3577.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16730, mozilla::dom::quota::Severity::Error); return tryResult3577 .propagateErr(); }} | |||
16725 | }{auto tryResult3577 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3575.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575 ;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3576.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult3577)::ok_type >); if ((__builtin_expect(!!(tryResult3577.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3575.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3576.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult3577.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16730, mozilla::dom::quota::Severity::Error); return tryResult3577 .propagateErr(); }} | |||
16726 | ||||
16727 | QM_TRY_RETURN(quotaManager->EnsureTemporaryOriginIsInitializedInternal({auto tryResult3577 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3575.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575 ;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3576.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult3577)::ok_type >); if ((__builtin_expect(!!(tryResult3577.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3575.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3576.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult3577.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16730, mozilla::dom::quota::Severity::Error); return tryResult3577 .propagateErr(); }} | |||
16728 | mOriginMetadata));{auto tryResult3577 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3575.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575 ;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3576.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult3577)::ok_type >); if ((__builtin_expect(!!(tryResult3577.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3575.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3576.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult3577.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16730, mozilla::dom::quota::Severity::Error); return tryResult3577 .propagateErr(); }} | |||
16729 | }(){auto tryResult3577 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3575.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575 ;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3576.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult3577)::ok_type >); if ((__builtin_expect(!!(tryResult3577.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3575.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3576.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult3577.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16730, mozilla::dom::quota::Severity::Error); return tryResult3577 .propagateErr(); }} | |||
16730 | .map([](const auto& res) { return Ok{}; }))){auto tryResult3577 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)" , tryResult3575.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575 ;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal ( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)" , tryResult3576.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult3577)::ok_type >); if ((__builtin_expect(!!(tryResult3577.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3575 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3575.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult3575.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16724, mozilla::dom::quota::Severity::Error); } return tryResult3575;}; } {auto tryResult3576 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult3576.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult3576.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16728, mozilla::dom::quota::Severity::Error); } return tryResult3576;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult3577.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16730, mozilla::dom::quota::Severity::Error); return tryResult3577 .propagateErr(); }}; | |||
16731 | ||||
16732 | { | |||
16733 | QM_TRY_INSPECT(const bool& exists,auto tryResult3578 = (quotaManager->DoesClientDirectoryExist ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3578.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3578.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16735, mozilla::dom::quota::Severity::Error); return tryResult3578 .propagateErr(); } const bool& exists = tryResult3578.inspect (); | |||
16734 | quotaManager->DoesClientDirectoryExist(auto tryResult3578 = (quotaManager->DoesClientDirectoryExist ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3578.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3578.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16735, mozilla::dom::quota::Severity::Error); return tryResult3578 .propagateErr(); } const bool& exists = tryResult3578.inspect (); | |||
16735 | ClientMetadata{mOriginMetadata, Client::IDB}))auto tryResult3578 = (quotaManager->DoesClientDirectoryExist ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3578.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3578.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16735, mozilla::dom::quota::Severity::Error); return tryResult3578 .propagateErr(); } const bool& exists = tryResult3578.inspect ();; | |||
16736 | if (!exists) { | |||
16737 | return DatabasesNotAvailable(); | |||
16738 | } | |||
16739 | } | |||
16740 | ||||
16741 | QM_TRY_INSPECT(auto tryResult3581 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3579.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579 ;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3580.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3581.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3579.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3580.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3581.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16753, mozilla::dom::quota::Severity::Error); return tryResult3581 .propagateErr(); } const auto& clientDirectory = tryResult3581 .inspect(); | |||
16742 | const auto& clientDirectory,auto tryResult3581 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3579.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579 ;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3580.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3581.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3579.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3580.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3581.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16753, mozilla::dom::quota::Severity::Error); return tryResult3581 .propagateErr(); } const auto& clientDirectory = tryResult3581 .inspect(); | |||
16743 | (["aManager, this]()auto tryResult3581 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3579.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579 ;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3580.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3581.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3579.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3580.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3581.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16753, mozilla::dom::quota::Severity::Error); return tryResult3581 .propagateErr(); } const auto& clientDirectory = tryResult3581 .inspect(); | |||
16744 | -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> {auto tryResult3581 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3579.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579 ;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3580.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3581.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3579.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3580.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3581.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16753, mozilla::dom::quota::Severity::Error); return tryResult3581 .propagateErr(); } const auto& clientDirectory = tryResult3581 .inspect(); | |||
16745 | if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {auto tryResult3581 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3579.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579 ;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3580.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3581.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3579.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3580.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3581.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16753, mozilla::dom::quota::Severity::Error); return tryResult3581 .propagateErr(); } const auto& clientDirectory = tryResult3581 .inspect(); | |||
16746 | QM_TRY_RETURN(quotaManager->EnsurePersistentClientIsInitialized(auto tryResult3581 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3579.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579 ;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3580.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3581.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3579.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3580.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3581.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16753, mozilla::dom::quota::Severity::Error); return tryResult3581 .propagateErr(); } const auto& clientDirectory = tryResult3581 .inspect(); | |||
16747 | ClientMetadata{mOriginMetadata, Client::IDB}));auto tryResult3581 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3579.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579 ;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3580.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3581.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3579.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3580.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3581.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16753, mozilla::dom::quota::Severity::Error); return tryResult3581 .propagateErr(); } const auto& clientDirectory = tryResult3581 .inspect(); | |||
16748 | }auto tryResult3581 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3579.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579 ;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3580.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3581.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3579.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3580.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3581.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16753, mozilla::dom::quota::Severity::Error); return tryResult3581 .propagateErr(); } const auto& clientDirectory = tryResult3581 .inspect(); | |||
16749 | ||||
16750 | QM_TRY_RETURN(quotaManager->EnsureTemporaryClientIsInitialized(auto tryResult3581 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3579.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579 ;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3580.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3581.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3579.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3580.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3581.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16753, mozilla::dom::quota::Severity::Error); return tryResult3581 .propagateErr(); } const auto& clientDirectory = tryResult3581 .inspect(); | |||
16751 | ClientMetadata{mOriginMetadata, Client::IDB}));auto tryResult3581 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3579.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579 ;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3580.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3581.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3579.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3580.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3581.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16753, mozilla::dom::quota::Severity::Error); return tryResult3581 .propagateErr(); } const auto& clientDirectory = tryResult3581 .inspect(); | |||
16752 | }()auto tryResult3581 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3579.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579 ;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3580.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3581.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3579.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3580.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3581.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16753, mozilla::dom::quota::Severity::Error); return tryResult3581 .propagateErr(); } const auto& clientDirectory = tryResult3581 .inspect(); | |||
16753 | .map([](const auto& res) { return res.first; })))auto tryResult3581 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3579.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579 ;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult3580.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult3581.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult3579 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3579.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3579.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16747, mozilla::dom::quota::Severity::Error); } return tryResult3579;}; } {auto tryResult3580 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult3580.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult3580.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16751, mozilla::dom::quota::Severity::Error); } return tryResult3580;}; }() .map([](const auto& res) { return res.first; }))" , tryResult3581.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16753, mozilla::dom::quota::Severity::Error); return tryResult3581 .propagateErr(); } const auto& clientDirectory = tryResult3581 .inspect();; | |||
16754 | ||||
16755 | QM_TRY_INSPECT(auto tryResult3582 = (QuotaClient::GetDatabaseFilenames(*clientDirectory , Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult3582 .isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})" , tryResult3582.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16758, mozilla::dom::quota::Severity::Error); return tryResult3582 .propagateErr(); } const auto& [subdirsToProcess, databaseFilenames ] = tryResult3582.inspect(); | |||
16756 | (const auto& [subdirsToProcess, databaseFilenames]),auto tryResult3582 = (QuotaClient::GetDatabaseFilenames(*clientDirectory , Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult3582 .isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})" , tryResult3582.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16758, mozilla::dom::quota::Severity::Error); return tryResult3582 .propagateErr(); } const auto& [subdirsToProcess, databaseFilenames ] = tryResult3582.inspect(); | |||
16757 | QuotaClient::GetDatabaseFilenames(*clientDirectory,auto tryResult3582 = (QuotaClient::GetDatabaseFilenames(*clientDirectory , Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult3582 .isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})" , tryResult3582.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16758, mozilla::dom::quota::Severity::Error); return tryResult3582 .propagateErr(); } const auto& [subdirsToProcess, databaseFilenames ] = tryResult3582.inspect(); | |||
16758 | /* aCanceled */ Atomic<bool>{false}))auto tryResult3582 = (QuotaClient::GetDatabaseFilenames(*clientDirectory , Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult3582 .isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})" , tryResult3582.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16758, mozilla::dom::quota::Severity::Error); return tryResult3582 .propagateErr(); } const auto& [subdirsToProcess, databaseFilenames ] = tryResult3582.inspect();; | |||
16759 | ||||
16760 | for (const auto& databaseFilename : databaseFilenames) { | |||
16761 | QM_TRY_INSPECT(auto tryResult3583 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult3583.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)" , tryResult3583.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16763, mozilla::dom::quota::Severity::Error); return tryResult3583 .propagateErr(); } const auto& databaseFile = tryResult3583 .inspect(); | |||
16762 | const auto& databaseFile,auto tryResult3583 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult3583.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)" , tryResult3583.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16763, mozilla::dom::quota::Severity::Error); return tryResult3583 .propagateErr(); } const auto& databaseFile = tryResult3583 .inspect(); | |||
16763 | CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix))auto tryResult3583 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult3583.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)" , tryResult3583.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16763, mozilla::dom::quota::Severity::Error); return tryResult3583 .propagateErr(); } const auto& databaseFile = tryResult3583 .inspect();; | |||
16764 | ||||
16765 | nsString path; | |||
16766 | databaseFile->GetPath(path); | |||
16767 | ||||
16768 | // Use the snapshotted values from DoDirectoryWork which correctly | |||
16769 | // snapshotted the state of any pending creations/upgrades. This does mean | |||
16770 | // that we need to skip reporting databases that had a version of 0 at that | |||
16771 | // time because they were still being created. In the event that any other | |||
16772 | // creation or upgrade requests are made after our operation is created, | |||
16773 | // this operation will block those, so it's not possible for this set of | |||
16774 | // data to get out of sync. The snapshotting (using cached database name | |||
16775 | // and version in DatabaseFileManager) also guarantees that we are not | |||
16776 | // touching the SQLite database here on the QuotaManager I/O thread which | |||
16777 | // is already open on the connection thread. | |||
16778 | ||||
16779 | auto metadata = mDatabaseMetadataTable.Lookup(path); | |||
16780 | if (metadata) { | |||
16781 | if (metadata->version() != 0) { | |||
16782 | mDatabaseMetadataArray.AppendElement(DatabaseMetadata( | |||
16783 | metadata->name(), metadata->version(), mPersistenceType)); | |||
16784 | } | |||
16785 | ||||
16786 | continue; | |||
16787 | } | |||
16788 | ||||
16789 | // Since the database is not already open (there was no DatabaseFileManager | |||
16790 | // for snapshotting in DoDirectoryWork which could provide us with the | |||
16791 | // database name and version without needing to open the SQLite database), | |||
16792 | // it is safe and necessary for us to open the database on this thread and | |||
16793 | // retrieve its name and version. We do not need to worry about racing a | |||
16794 | // database open because database opens can only be processed on this | |||
16795 | // thread and we are performing the steps below synchronously. | |||
16796 | ||||
16797 | QM_TRY_INSPECT(auto tryResult3584 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult3584.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult3584.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16800, mozilla::dom::quota::Severity::Error); return tryResult3584 .propagateErr(); } const auto& fmDirectory = tryResult3584 .inspect(); | |||
16798 | const auto& fmDirectory,auto tryResult3584 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult3584.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult3584.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16800, mozilla::dom::quota::Severity::Error); return tryResult3584 .propagateErr(); } const auto& fmDirectory = tryResult3584 .inspect(); | |||
16799 | CloneFileAndAppend(*clientDirectory,auto tryResult3584 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult3584.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult3584.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16800, mozilla::dom::quota::Severity::Error); return tryResult3584 .propagateErr(); } const auto& fmDirectory = tryResult3584 .inspect(); | |||
16800 | databaseFilename + kFileManagerDirectoryNameSuffix))auto tryResult3584 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult3584.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult3584.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16800, mozilla::dom::quota::Severity::Error); return tryResult3584 .propagateErr(); } const auto& fmDirectory = tryResult3584 .inspect();; | |||
16801 | ||||
16802 | QM_TRY_UNWRAP(auto tryResult3585 = (CreateStorageConnection(*databaseFile, * fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId , TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect (!!(tryResult3585.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})" , tryResult3585.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16806, mozilla::dom::quota::Severity::Error); return tryResult3585 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult3585.unwrap(); | |||
16803 | const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult3585 = (CreateStorageConnection(*databaseFile, * fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId , TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect (!!(tryResult3585.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})" , tryResult3585.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16806, mozilla::dom::quota::Severity::Error); return tryResult3585 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult3585.unwrap(); | |||
16804 | CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(),auto tryResult3585 = (CreateStorageConnection(*databaseFile, * fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId , TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect (!!(tryResult3585.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})" , tryResult3585.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16806, mozilla::dom::quota::Severity::Error); return tryResult3585 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult3585.unwrap(); | |||
16805 | mOriginMetadata.mOrigin, mDirectoryLockId,auto tryResult3585 = (CreateStorageConnection(*databaseFile, * fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId , TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect (!!(tryResult3585.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})" , tryResult3585.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16806, mozilla::dom::quota::Severity::Error); return tryResult3585 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult3585.unwrap(); | |||
16806 | TelemetryIdForFile(databaseFile), Nothing{}))auto tryResult3585 = (CreateStorageConnection(*databaseFile, * fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId , TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect (!!(tryResult3585.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})" , tryResult3585.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16806, mozilla::dom::quota::Severity::Error); return tryResult3585 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult3585.unwrap();; | |||
16807 | ||||
16808 | { | |||
16809 | // Load version information. | |||
16810 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3586 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult3586.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)" , tryResult3586.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16813, mozilla::dom::quota::Severity::Error); return tryResult3586 .propagateErr(); } const auto& stmt = tryResult3586.inspect (); | |||
16811 | CreateAndExecuteSingleStepStatement<auto tryResult3586 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult3586.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)" , tryResult3586.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16813, mozilla::dom::quota::Severity::Error); return tryResult3586 .propagateErr(); } const auto& stmt = tryResult3586.inspect (); | |||
16812 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult3586 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult3586.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)" , tryResult3586.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16813, mozilla::dom::quota::Severity::Error); return tryResult3586 .propagateErr(); } const auto& stmt = tryResult3586.inspect (); | |||
16813 | *connection, "SELECT name, version FROM database"_ns))auto tryResult3586 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult3586.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)" , tryResult3586.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16813, mozilla::dom::quota::Severity::Error); return tryResult3586 .propagateErr(); } const auto& stmt = tryResult3586.inspect ();; | |||
16814 | ||||
16815 | QM_TRY(OkIf(stmt), NS_ERROR_FILE_CORRUPTED){auto tryResult3587 = (OkIf(stmt)); static_assert(std::is_empty_v <typename decltype(tryResult3587)::ok_type>); if ((__builtin_expect (!!(tryResult3587.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3587.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(stmt)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16815, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(stmt)", tryTempError , NS_ERROR_FILE_CORRUPTED); }}; | |||
16816 | ||||
16817 | QM_TRY_INSPECT(auto tryResult3588 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!! (tryResult3588.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)" , tryResult3588.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16819, mozilla::dom::quota::Severity::Error); return tryResult3588 .propagateErr(); } const auto& databaseName = tryResult3588 .inspect(); | |||
16818 | const auto& databaseName,auto tryResult3588 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!! (tryResult3588.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)" , tryResult3588.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16819, mozilla::dom::quota::Severity::Error); return tryResult3588 .propagateErr(); } const auto& databaseName = tryResult3588 .inspect(); | |||
16819 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, stmt, GetString, 0))auto tryResult3588 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!! (tryResult3588.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)" , tryResult3588.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16819, mozilla::dom::quota::Severity::Error); return tryResult3588 .propagateErr(); } const auto& databaseName = tryResult3588 .inspect();; | |||
16820 | ||||
16821 | QM_TRY_INSPECT(const int64_t& version,auto tryResult3589 = (::mozilla::ToResultInvokeMember( (stmt) , &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 1)); if ((__builtin_expect(!!(tryResult3589.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3589.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16822, mozilla::dom::quota::Severity::Error); return tryResult3589 .propagateErr(); } const int64_t& version = tryResult3589 .inspect(); | |||
16822 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1))auto tryResult3589 = (::mozilla::ToResultInvokeMember( (stmt) , &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64, 1)); if ((__builtin_expect(!!(tryResult3589.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)" , tryResult3589.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16822, mozilla::dom::quota::Severity::Error); return tryResult3589 .propagateErr(); } const int64_t& version = tryResult3589 .inspect();; | |||
16823 | ||||
16824 | mDatabaseMetadataArray.AppendElement( | |||
16825 | DatabaseMetadata(databaseName, version, mPersistenceType)); | |||
16826 | } | |||
16827 | } | |||
16828 | ||||
16829 | mState = State::SendingResults; | |||
16830 | ||||
16831 | QM_TRY(MOZ_TO_RESULT({auto tryResult3590 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult3590)::ok_type>); if ((__builtin_expect (!!(tryResult3590.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult3590.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16832, mozilla::dom::quota::Severity::Error); return tryResult3590 .propagateErr(); }} | |||
16832 | DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult3590 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult3590)::ok_type>); if ((__builtin_expect (!!(tryResult3590.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult3590.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16832, mozilla::dom::quota::Severity::Error); return tryResult3590 .propagateErr(); }}; | |||
16833 | ||||
16834 | return NS_OK; | |||
16835 | } | |||
16836 | ||||
16837 | nsresult GetDatabasesOp::BeginVersionChange() { | |||
16838 | MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable." , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16838); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { *((volatile int*)__null) = 16838; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
16839 | } | |||
16840 | ||||
16841 | bool GetDatabasesOp::AreActorsAlive() { | |||
16842 | MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable." , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16842); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { *((volatile int*)__null) = 16842; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
16843 | } | |||
16844 | ||||
16845 | void GetDatabasesOp::SendBlockedNotification() { | |||
16846 | MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable." , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16846); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { *((volatile int*)__null) = 16846; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
16847 | } | |||
16848 | ||||
16849 | nsresult GetDatabasesOp::DispatchToWorkThread() { | |||
16850 | MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable." , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16850); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { *((volatile int*)__null) = 16850; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
16851 | } | |||
16852 | ||||
16853 | void GetDatabasesOp::SendResults() { | |||
16854 | AssertIsOnOwningThread(); | |||
16855 | MOZ_ASSERT(mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::SendingResults)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::SendingResults ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mState == State::SendingResults", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16855); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults" ")"); do { *((volatile int*)__null) = 16855; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
| ||||
16856 | ||||
16857 | #ifdef DEBUG1 | |||
16858 | NoteActorDestroyed(); | |||
16859 | #endif | |||
16860 | ||||
16861 | mResolver(mDatabaseMetadataArray); | |||
16862 | ||||
16863 | SafeDropDirectoryLock(mDirectoryLock); | |||
16864 | ||||
16865 | CleanupMetadata(); | |||
16866 | ||||
16867 | FinishSendResults(); | |||
16868 | } | |||
16869 | ||||
16870 | TransactionDatabaseOperationBase::TransactionDatabaseOperationBase( | |||
16871 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId) | |||
16872 | : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(), | |||
16873 | aTransaction->GetLoggingInfo()->NextRequestSN()), | |||
16874 | mTransaction(WrapNotNull(std::move(aTransaction))), | |||
16875 | mRequestId(aRequestId), | |||
16876 | mTransactionIsAborted((*mTransaction)->IsAborted()), | |||
16877 | mTransactionLoggingSerialNumber((*mTransaction)->LoggingSerialNumber()) { | |||
16878 | MOZ_ASSERT(LoggingSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType< decltype(LoggingSerialNumber())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(LoggingSerialNumber()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("LoggingSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16878); AnnotateMozCrashReason("MOZ_ASSERT" "(" "LoggingSerialNumber()" ")"); do { *((volatile int*)__null) = 16878; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16879 | } | |||
16880 | ||||
16881 | TransactionDatabaseOperationBase::TransactionDatabaseOperationBase( | |||
16882 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | |||
16883 | uint64_t aLoggingSerialNumber) | |||
16884 | : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(), | |||
16885 | aLoggingSerialNumber), | |||
16886 | mTransaction(WrapNotNull(std::move(aTransaction))), | |||
16887 | mRequestId(aRequestId), | |||
16888 | mTransactionIsAborted((*mTransaction)->IsAborted()), | |||
16889 | mTransactionLoggingSerialNumber((*mTransaction)->LoggingSerialNumber()) {} | |||
16890 | ||||
16891 | TransactionDatabaseOperationBase::~TransactionDatabaseOperationBase() { | |||
16892 | MOZ_ASSERT(mInternalState == InternalState::Completed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::Completed)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInternalState == InternalState::Completed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Completed" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Completed" ")"); do { *((volatile int*)__null) = 16892; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16893 | MOZ_ASSERT(!mTransaction,do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransaction" " (" "TransactionDatabaseOperationBase::Cleanup() was not called by a " "subclass!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16895); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction" ") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a " "subclass!" ")"); do { *((volatile int*)__null) = 16895; __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false) | |||
16894 | "TransactionDatabaseOperationBase::Cleanup() was not called by a "do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransaction" " (" "TransactionDatabaseOperationBase::Cleanup() was not called by a " "subclass!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16895); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction" ") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a " "subclass!" ")"); do { *((volatile int*)__null) = 16895; __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false) | |||
16895 | "subclass!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransaction" " (" "TransactionDatabaseOperationBase::Cleanup() was not called by a " "subclass!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16895); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction" ") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a " "subclass!" ")"); do { *((volatile int*)__null) = 16895; __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); | |||
16896 | } | |||
16897 | ||||
16898 | #ifdef DEBUG1 | |||
16899 | ||||
16900 | void TransactionDatabaseOperationBase::AssertIsOnConnectionThread() const { | |||
16901 | (*mTransaction)->AssertIsOnConnectionThread(); | |||
16902 | } | |||
16903 | ||||
16904 | #endif // DEBUG | |||
16905 | ||||
16906 | uint64_t TransactionDatabaseOperationBase::StartOnConnectionPool( | |||
16907 | const nsID& aBackgroundChildLoggingId, const nsACString& aDatabaseId, | |||
16908 | int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames, | |||
16909 | bool aIsWriteTransaction) { | |||
16910 | AssertIsOnOwningThread(); | |||
16911 | MOZ_ASSERT(mInternalState == InternalState::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::Initial)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInternalState == InternalState::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Initial" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16911); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial" ")"); do { *((volatile int*)__null) = 16911; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16912 | ||||
16913 | // Must set mInternalState before dispatching otherwise we will race with the | |||
16914 | // connection thread. | |||
16915 | mInternalState = InternalState::DatabaseWork; | |||
16916 | ||||
16917 | return gConnectionPool->Start(aBackgroundChildLoggingId, aDatabaseId, | |||
16918 | aLoggingSerialNumber, aObjectStoreNames, | |||
16919 | aIsWriteTransaction, this); | |||
16920 | } | |||
16921 | ||||
16922 | void TransactionDatabaseOperationBase::DispatchToConnectionPool() { | |||
16923 | AssertIsOnOwningThread(); | |||
16924 | MOZ_ASSERT(mInternalState == InternalState::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::Initial)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInternalState == InternalState::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Initial" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16924); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial" ")"); do { *((volatile int*)__null) = 16924; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16925 | ||||
16926 | Unused << this->Run(); | |||
16927 | } | |||
16928 | ||||
16929 | void TransactionDatabaseOperationBase::RunOnConnectionThread() { | |||
16930 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16930); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 16930; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16931 | MOZ_ASSERT(mInternalState == InternalState::DatabaseWork)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::DatabaseWork)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mInternalState == InternalState::DatabaseWork))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::DatabaseWork" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16931); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::DatabaseWork" ")"); do { *((volatile int*)__null) = 16931; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16932 | MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!HasFailed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { *((volatile int*)__null) = 16932; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16933 | ||||
16934 | AUTO_PROFILER_LABEL("TransactionDatabaseOperationBase::RunOnConnectionThread",mozilla::AutoProfilerLabel raiiObject16935( "TransactionDatabaseOperationBase::RunOnConnectionThread" , nullptr, JS::ProfilingCategoryPair::DOM) | |||
16935 | DOM)mozilla::AutoProfilerLabel raiiObject16935( "TransactionDatabaseOperationBase::RunOnConnectionThread" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
16936 | ||||
16937 | // There are several cases where we don't actually have to to any work here. | |||
16938 | ||||
16939 | if (mTransactionIsAborted || (*mTransaction)->IsInvalidatedOnAnyThread()) { | |||
16940 | // This transaction is already set to be aborted or invalidated. | |||
16941 | SetFailureCode(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR); | |||
16942 | } else if (!OperationMayProceed()) { | |||
16943 | // The operation was canceled in some way, likely because the child process | |||
16944 | // has crashed. | |||
16945 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16945, "UnknownErr"); | |||
16946 | OverrideFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | |||
16947 | } else { | |||
16948 | Database& database = (*mTransaction)->GetMutableDatabase(); | |||
16949 | ||||
16950 | // Here we're actually going to perform the database operation. | |||
16951 | nsresult rv = database.EnsureConnection(); | |||
16952 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16952)) { | |||
16953 | SetFailureCode(rv); | |||
16954 | } else { | |||
16955 | DatabaseConnection* connection = database.GetConnection(); | |||
16956 | MOZ_ASSERT(connection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(connection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(connection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("connection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection" ")"); do { *((volatile int*)__null) = 16956; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
16957 | ||||
16958 | auto& storageConnection = connection->MutableStorageConnection(); | |||
16959 | ||||
16960 | AutoSetProgressHandler autoProgress; | |||
16961 | if (mLoggingSerialNumber) { | |||
16962 | rv = autoProgress.Register(storageConnection, this); | |||
16963 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 16963)) { | |||
16964 | SetFailureCode(rv); | |||
16965 | } | |||
16966 | } | |||
16967 | ||||
16968 | if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { | |||
16969 | if (mLoggingSerialNumber) { | |||
16970 | IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom:: indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransactionLoggingSerialNumber, mLoggingSerialNumber ) | |||
16971 | "Beginning database work", "DB Start",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom:: indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransactionLoggingSerialNumber, mLoggingSerialNumber ) | |||
16972 | IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom:: indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransactionLoggingSerialNumber, mLoggingSerialNumber ) | |||
16973 | mTransactionLoggingSerialNumber, mLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom:: indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransactionLoggingSerialNumber, mLoggingSerialNumber ); | |||
16974 | } | |||
16975 | ||||
16976 | rv = DoDatabaseWork(connection); | |||
16977 | ||||
16978 | if (mLoggingSerialNumber) { | |||
16979 | IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "Finished database work", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB ::LoggingIdString<true>(mBackgroundChildLoggingId).get( ), mTransactionLoggingSerialNumber, mLoggingSerialNumber) | |||
16980 | "Finished database work", "DB End",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "Finished database work", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB ::LoggingIdString<true>(mBackgroundChildLoggingId).get( ), mTransactionLoggingSerialNumber, mLoggingSerialNumber) | |||
16981 | IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "Finished database work", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB ::LoggingIdString<true>(mBackgroundChildLoggingId).get( ), mTransactionLoggingSerialNumber, mLoggingSerialNumber) | |||
16982 | mTransactionLoggingSerialNumber, mLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "Finished database work", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB ::LoggingIdString<true>(mBackgroundChildLoggingId).get( ), mTransactionLoggingSerialNumber, mLoggingSerialNumber); | |||
16983 | } | |||
16984 | ||||
16985 | if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { | |||
16986 | SetFailureCode(rv); | |||
16987 | } | |||
16988 | } | |||
16989 | } | |||
16990 | } | |||
16991 | ||||
16992 | // Must set mInternalState before dispatching otherwise we will race with the | |||
16993 | // owning thread. | |||
16994 | if (HasPreprocessInfo()) { | |||
16995 | mInternalState = InternalState::SendingPreprocess; | |||
16996 | } else { | |||
16997 | mInternalState = InternalState::SendingResults; | |||
16998 | } | |||
16999 | ||||
17000 | MOZ_ALWAYS_SUCCEEDS(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL ))), 1)))), 1))) { } else { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17000); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { *((volatile int*)__null) = 17000; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
17001 | } | |||
17002 | ||||
17003 | bool TransactionDatabaseOperationBase::HasPreprocessInfo() { return false; } | |||
17004 | ||||
17005 | nsresult TransactionDatabaseOperationBase::SendPreprocessInfo() { | |||
17006 | return NS_OK; | |||
17007 | } | |||
17008 | ||||
17009 | void TransactionDatabaseOperationBase::NoteContinueReceived() { | |||
17010 | AssertIsOnOwningThread(); | |||
17011 | MOZ_ASSERT(mInternalState == InternalState::WaitingForContinue)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::WaitingForContinue) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mInternalState == InternalState::WaitingForContinue) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::WaitingForContinue" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17011); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::WaitingForContinue" ")"); do { *((volatile int*)__null) = 17011; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17012 | ||||
17013 | mWaitingForContinue = false; | |||
17014 | ||||
17015 | mInternalState = InternalState::SendingResults; | |||
17016 | ||||
17017 | // This TransactionDatabaseOperationBase can only be held alive by the IPDL. | |||
17018 | // Run() can end up with clearing that last reference. So we need to add | |||
17019 | // a self reference here. | |||
17020 | RefPtr<TransactionDatabaseOperationBase> kungFuDeathGrip = this; | |||
17021 | ||||
17022 | Unused << this->Run(); | |||
17023 | } | |||
17024 | ||||
17025 | void TransactionDatabaseOperationBase::SendToConnectionPool() { | |||
17026 | AssertIsOnOwningThread(); | |||
17027 | MOZ_ASSERT(mInternalState == InternalState::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::Initial)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInternalState == InternalState::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Initial" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17027); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial" ")"); do { *((volatile int*)__null) = 17027; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17028 | ||||
17029 | // Must set mInternalState before dispatching otherwise we will race with the | |||
17030 | // connection thread. | |||
17031 | mInternalState = InternalState::DatabaseWork; | |||
17032 | ||||
17033 | gConnectionPool->Dispatch((*mTransaction)->TransactionId(), this); | |||
17034 | ||||
17035 | (*mTransaction)->NoteActiveRequest(); | |||
17036 | } | |||
17037 | ||||
17038 | void TransactionDatabaseOperationBase::SendPreprocess() { | |||
17039 | AssertIsOnOwningThread(); | |||
17040 | MOZ_ASSERT(mInternalState == InternalState::SendingPreprocess)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::SendingPreprocess)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mInternalState == InternalState::SendingPreprocess)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingPreprocess" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess" ")"); do { *((volatile int*)__null) = 17040; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17041 | ||||
17042 | SendPreprocessInfoOrResults(/* aSendPreprocessInfo */ true); | |||
17043 | } | |||
17044 | ||||
17045 | void TransactionDatabaseOperationBase::SendResults() { | |||
17046 | AssertIsOnOwningThread(); | |||
17047 | MOZ_ASSERT(mInternalState == InternalState::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::SendingResults)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mInternalState == InternalState::SendingResults))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingResults" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingResults" ")"); do { *((volatile int*)__null) = 17047; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17048 | ||||
17049 | SendPreprocessInfoOrResults(/* aSendPreprocessInfo */ false); | |||
17050 | } | |||
17051 | ||||
17052 | void TransactionDatabaseOperationBase::SendPreprocessInfoOrResults( | |||
17053 | bool aSendPreprocessInfo) { | |||
17054 | AssertIsOnOwningThread(); | |||
17055 | MOZ_ASSERT(mInternalState == InternalState::SendingPreprocess ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17056); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults" ")"); do { *((volatile int*)__null) = 17056; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
17056 | mInternalState == InternalState::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17056); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults" ")"); do { *((volatile int*)__null) = 17056; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17057 | ||||
17058 | // The flag is raised only when there is no mUpdateRefcountFunction for the | |||
17059 | // executing operation. It assume that is because the previous | |||
17060 | // StartTransactionOp was failed to begin a write transaction and it reported | |||
17061 | // when this operation has already jumped to the Connection thread. | |||
17062 | MOZ_DIAGNOSTIC_ASSERT_IF(mAssumingPreviousOperationFail,do { if (mAssumingPreviousOperationFail) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*mTransaction )->IsAborted())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*mTransaction)->IsAborted ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*mTransaction)->IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17063); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "(*mTransaction)->IsAborted()" ")"); do { *((volatile int*)__null) = 17063; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
17063 | (*mTransaction)->IsAborted())do { if (mAssumingPreviousOperationFail) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*mTransaction )->IsAborted())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*mTransaction)->IsAborted ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*mTransaction)->IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17063); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "(*mTransaction)->IsAborted()" ")"); do { *((volatile int*)__null) = 17063; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
17064 | ||||
17065 | if (NS_WARN_IF(IsActorDestroyed())NS_warn_if_impl(IsActorDestroyed(), "IsActorDestroyed()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17065)) { | |||
17066 | // Normally we wouldn't need to send any notifications if the actor was | |||
17067 | // already destroyed, but this can be a VersionChangeOp which needs to | |||
17068 | // notify its parent operation (OpenDatabaseOp) about the failure. | |||
17069 | // So SendFailureResult needs to be called even when the actor was | |||
17070 | // destroyed. Normal operations redundantly check if the actor was | |||
17071 | // destroyed in SendSuccessResult and SendFailureResult, therefore it's | |||
17072 | // ok to call it in all cases here. | |||
17073 | if (!HasFailed()) { | |||
17074 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17074, "UnknownErr"); | |||
17075 | SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | |||
17076 | } | |||
17077 | } else if ((*mTransaction)->IsInvalidated() || (*mTransaction)->IsAborted()) { | |||
17078 | // Aborted transactions always see their requests fail with ABORT_ERR, | |||
17079 | // even if the request succeeded or failed with another error. | |||
17080 | OverrideFailureCode(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR); | |||
17081 | } | |||
17082 | ||||
17083 | const nsresult rv = [aSendPreprocessInfo, this] { | |||
17084 | if (HasFailed()) { | |||
17085 | return ResultCode(); | |||
17086 | } | |||
17087 | if (aSendPreprocessInfo) { | |||
17088 | // This should not release the IPDL reference. | |||
17089 | return SendPreprocessInfo(); | |||
17090 | } | |||
17091 | // This may release the IPDL reference. | |||
17092 | return SendSuccessResult(); | |||
17093 | }(); | |||
17094 | ||||
17095 | if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { | |||
17096 | SetFailureCodeIfUnset(rv); | |||
17097 | ||||
17098 | // This should definitely release the IPDL reference. | |||
17099 | if (!SendFailureResult(rv)) { | |||
17100 | // Abort the transaction. | |||
17101 | (*mTransaction)->Abort(rv, /* aForce */ false); | |||
17102 | } | |||
17103 | } | |||
17104 | ||||
17105 | if (aSendPreprocessInfo && !HasFailed()) { | |||
17106 | mInternalState = InternalState::WaitingForContinue; | |||
17107 | ||||
17108 | mWaitingForContinue = true; | |||
17109 | } else { | |||
17110 | if (mLoggingSerialNumber) { | |||
17111 | (*mTransaction)->NoteFinishedRequest(mRequestId, ResultCode()); | |||
17112 | } | |||
17113 | ||||
17114 | Cleanup(); | |||
17115 | ||||
17116 | mInternalState = InternalState::Completed; | |||
17117 | } | |||
17118 | } | |||
17119 | ||||
17120 | bool TransactionDatabaseOperationBase::Init(TransactionBase& aTransaction) { | |||
17121 | AssertIsOnBackgroundThread(); | |||
17122 | MOZ_ASSERT(mInternalState == InternalState::Initial)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::Initial)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mInternalState == InternalState::Initial))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Initial" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17122); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial" ")"); do { *((volatile int*)__null) = 17122; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17123 | ||||
17124 | return true; | |||
17125 | } | |||
17126 | ||||
17127 | void TransactionDatabaseOperationBase::Cleanup() { | |||
17128 | AssertIsOnOwningThread(); | |||
17129 | MOZ_ASSERT(mInternalState == InternalState::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mInternalState == InternalState::SendingResults)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mInternalState == InternalState::SendingResults))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingResults" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17129); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingResults" ")"); do { *((volatile int*)__null) = 17129; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17130 | ||||
17131 | mTransaction.destroy(); | |||
17132 | } | |||
17133 | ||||
17134 | NS_IMETHODIMPnsresult | |||
17135 | TransactionDatabaseOperationBase::Run() { | |||
17136 | switch (mInternalState) { | |||
17137 | case InternalState::Initial: | |||
17138 | SendToConnectionPool(); | |||
17139 | return NS_OK; | |||
17140 | ||||
17141 | case InternalState::DatabaseWork: | |||
17142 | RunOnConnectionThread(); | |||
17143 | return NS_OK; | |||
17144 | ||||
17145 | case InternalState::SendingPreprocess: | |||
17146 | SendPreprocess(); | |||
17147 | return NS_OK; | |||
17148 | ||||
17149 | case InternalState::SendingResults: | |||
17150 | SendResults(); | |||
17151 | return NS_OK; | |||
17152 | ||||
17153 | default: | |||
17154 | MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17154); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")" ); do { *((volatile int*)__null) = 17154; __attribute__((nomerge )) ::abort(); } while (false); } while (false); | |||
17155 | } | |||
17156 | } | |||
17157 | ||||
17158 | TransactionBase::CommitOp::CommitOp(SafeRefPtr<TransactionBase> aTransaction, | |||
17159 | nsresult aResultCode) | |||
17160 | : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(), | |||
17161 | aTransaction->GetLoggingInfo()->NextRequestSN()), | |||
17162 | mTransaction(std::move(aTransaction)), | |||
17163 | mResultCode(aResultCode) { | |||
17164 | MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17164); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { *((volatile int*)__null) = 17164; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17165 | MOZ_ASSERT(LoggingSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType< decltype(LoggingSerialNumber())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(LoggingSerialNumber()))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("LoggingSerialNumber()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17165); AnnotateMozCrashReason("MOZ_ASSERT" "(" "LoggingSerialNumber()" ")"); do { *((volatile int*)__null) = 17165; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17166 | } | |||
17167 | ||||
17168 | nsresult TransactionBase::CommitOp::WriteAutoIncrementCounts() { | |||
17169 | MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17169); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { *((volatile int*)__null) = 17169; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17170 | mTransaction->AssertIsOnConnectionThread(); | |||
17171 | MOZ_ASSERT(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() == IDBTransaction::Mode:: ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode ::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode( ) == IDBTransaction::Mode::ReadWriteFlush || mTransaction-> GetMode() == IDBTransaction::Mode::Cleanup || mTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 17174; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
17172 | mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() == IDBTransaction::Mode:: ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode ::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode( ) == IDBTransaction::Mode::ReadWriteFlush || mTransaction-> GetMode() == IDBTransaction::Mode::Cleanup || mTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 17174; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
17173 | mTransaction->GetMode() == IDBTransaction::Mode::Cleanup ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() == IDBTransaction::Mode:: ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode ::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode( ) == IDBTransaction::Mode::ReadWriteFlush || mTransaction-> GetMode() == IDBTransaction::Mode::Cleanup || mTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 17174; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
17174 | mTransaction->GetMode() == IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() == IDBTransaction::Mode:: ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode ::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode( ) == IDBTransaction::Mode::ReadWriteFlush || mTransaction-> GetMode() == IDBTransaction::Mode::Cleanup || mTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 17174; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17175 | ||||
17176 | const nsTArray<SafeRefPtr<FullObjectStoreMetadata>>& metadataArray = | |||
17177 | mTransaction->mModifiedAutoIncrementObjectStoreMetadataArray; | |||
17178 | ||||
17179 | if (!metadataArray.IsEmpty()) { | |||
17180 | DatabaseConnection* connection = | |||
17181 | mTransaction->GetDatabase().GetConnection(); | |||
17182 | MOZ_ASSERT(connection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(connection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(connection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("connection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17182); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection" ")"); do { *((volatile int*)__null) = 17182; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17183 | ||||
17184 | // The parameter names are not used, parameters are bound by index only | |||
17185 | // locally in the same function. | |||
17186 | auto stmt = DatabaseConnection::LazyStatement( | |||
17187 | *connection, | |||
17188 | "UPDATE object_store " | |||
17189 | "SET auto_increment = :auto_increment WHERE id " | |||
17190 | "= :object_store_id;"_ns); | |||
17191 | ||||
17192 | for (const auto& metadata : metadataArray) { | |||
17193 | MOZ_ASSERT(!metadata->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!metadata->mDeleted)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!metadata->mDeleted))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!metadata->mDeleted" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!metadata->mDeleted" ")"); do { *((volatile int*)__null) = 17193; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17194 | ||||
17195 | const int64_t nextAutoIncrementId = [&metadata] { | |||
17196 | const auto&& lockedAutoIncrementIds = | |||
17197 | metadata->mAutoIncrementIds.Lock(); | |||
17198 | return lockedAutoIncrementIds->next; | |||
17199 | }(); | |||
17200 | ||||
17201 | MOZ_ASSERT(nextAutoIncrementId > 1)do { static_assert( mozilla::detail::AssertionConditionType< decltype(nextAutoIncrementId > 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(nextAutoIncrementId > 1)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("nextAutoIncrementId > 1" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17201); AnnotateMozCrashReason("MOZ_ASSERT" "(" "nextAutoIncrementId > 1" ")"); do { *((volatile int*)__null) = 17201; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17202 | ||||
17203 | QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult3591 = (stmt.Borrow()); if ((__builtin_expect(! !(tryResult3591.isErr()), 0))) { mozilla::dom::quota::HandleError ("stmt.Borrow()", tryResult3591.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17203, mozilla::dom::quota::Severity::Error); return tryResult3591 .propagateErr(); } const auto& borrowedStmt = tryResult3591 .inspect();; | |||
17204 | ||||
17205 | QM_TRY(MOZ_TO_RESULT({auto tryResult3592 = (ToResult(borrowedStmt->BindInt64ByIndex (1, metadata->mCommonMetadata.id()))); static_assert(std:: is_empty_v<typename decltype(tryResult3592)::ok_type>); if ((__builtin_expect(!!(tryResult3592.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))" , tryResult3592.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17206, mozilla::dom::quota::Severity::Error); return tryResult3592 .propagateErr(); }} | |||
17206 | borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))){auto tryResult3592 = (ToResult(borrowedStmt->BindInt64ByIndex (1, metadata->mCommonMetadata.id()))); static_assert(std:: is_empty_v<typename decltype(tryResult3592)::ok_type>); if ((__builtin_expect(!!(tryResult3592.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))" , tryResult3592.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17206, mozilla::dom::quota::Severity::Error); return tryResult3592 .propagateErr(); }}; | |||
17207 | ||||
17208 | QM_TRY(MOZ_TO_RESULT({auto tryResult3593 = (ToResult(borrowedStmt->BindInt64ByIndex (0, nextAutoIncrementId))); static_assert(std::is_empty_v< typename decltype(tryResult3593)::ok_type>); if ((__builtin_expect (!!(tryResult3593.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))" , tryResult3593.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17209, mozilla::dom::quota::Severity::Error); return tryResult3593 .propagateErr(); }} | |||
17209 | borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))){auto tryResult3593 = (ToResult(borrowedStmt->BindInt64ByIndex (0, nextAutoIncrementId))); static_assert(std::is_empty_v< typename decltype(tryResult3593)::ok_type>); if ((__builtin_expect (!!(tryResult3593.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))" , tryResult3593.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17209, mozilla::dom::quota::Severity::Error); return tryResult3593 .propagateErr(); }}; | |||
17210 | ||||
17211 | QM_TRY(MOZ_TO_RESULT(borrowedStmt->Execute())){auto tryResult3594 = (ToResult(borrowedStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3594 )::ok_type>); if ((__builtin_expect(!!(tryResult3594.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->Execute())" , tryResult3594.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17211, mozilla::dom::quota::Severity::Error); return tryResult3594 .propagateErr(); }}; | |||
17212 | } | |||
17213 | } | |||
17214 | ||||
17215 | return NS_OK; | |||
17216 | } | |||
17217 | ||||
17218 | void TransactionBase::CommitOp::CommitOrRollbackAutoIncrementCounts() { | |||
17219 | MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17219); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { *((volatile int*)__null) = 17219; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17220 | mTransaction->AssertIsOnConnectionThread(); | |||
17221 | MOZ_ASSERT(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() == IDBTransaction::Mode:: ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode ::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode( ) == IDBTransaction::Mode::ReadWriteFlush || mTransaction-> GetMode() == IDBTransaction::Mode::Cleanup || mTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17224); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 17224; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
17222 | mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() == IDBTransaction::Mode:: ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode ::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode( ) == IDBTransaction::Mode::ReadWriteFlush || mTransaction-> GetMode() == IDBTransaction::Mode::Cleanup || mTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17224); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 17224; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
17223 | mTransaction->GetMode() == IDBTransaction::Mode::Cleanup ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() == IDBTransaction::Mode:: ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode ::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode( ) == IDBTransaction::Mode::ReadWriteFlush || mTransaction-> GetMode() == IDBTransaction::Mode::Cleanup || mTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17224); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 17224; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
17224 | mTransaction->GetMode() == IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() == IDBTransaction::Mode:: ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode ::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction ::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction ::Mode::VersionChange)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode( ) == IDBTransaction::Mode::ReadWriteFlush || mTransaction-> GetMode() == IDBTransaction::Mode::Cleanup || mTransaction-> GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17224); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { *((volatile int*)__null) = 17224; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17225 | ||||
17226 | const auto& metadataArray = | |||
17227 | mTransaction->mModifiedAutoIncrementObjectStoreMetadataArray; | |||
17228 | ||||
17229 | if (!metadataArray.IsEmpty()) { | |||
17230 | bool committed = NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) )); | |||
17231 | ||||
17232 | for (const auto& metadata : metadataArray) { | |||
17233 | auto&& lockedAutoIncrementIds = metadata->mAutoIncrementIds.Lock(); | |||
17234 | ||||
17235 | if (committed) { | |||
17236 | lockedAutoIncrementIds->committed = lockedAutoIncrementIds->next; | |||
17237 | } else { | |||
17238 | lockedAutoIncrementIds->next = lockedAutoIncrementIds->committed; | |||
17239 | } | |||
17240 | } | |||
17241 | } | |||
17242 | } | |||
17243 | ||||
17244 | #ifdef DEBUG1 | |||
17245 | ||||
17246 | void TransactionBase::CommitOp::AssertForeignKeyConsistency( | |||
17247 | DatabaseConnection* aConnection) { | |||
17248 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17248); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 17248; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17249 | MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17249); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { *((volatile int*)__null) = 17249; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17250 | mTransaction->AssertIsOnConnectionThread(); | |||
17251 | MOZ_ASSERT(mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction->GetMode() != IDBTransaction::Mode:: ReadOnly)>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(mTransaction->GetMode() != IDBTransaction ::Mode::ReadOnly))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17251); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly" ")"); do { *((volatile int*)__null) = 17251; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17252 | ||||
17253 | { | |||
17254 | QM_TRY_INSPECT(auto tryResult3595 = (CreateAndExecuteSingleStepStatement( aConnection ->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect(!!(tryResult3595.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3595.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17258, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17258); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17258; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& pragmaStmt = tryResult3595.inspect(); | |||
17255 | const auto& pragmaStmt,auto tryResult3595 = (CreateAndExecuteSingleStepStatement( aConnection ->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect(!!(tryResult3595.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3595.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17258, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17258); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17258; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& pragmaStmt = tryResult3595.inspect(); | |||
17256 | CreateAndExecuteSingleStepStatement(auto tryResult3595 = (CreateAndExecuteSingleStepStatement( aConnection ->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect(!!(tryResult3595.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3595.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17258, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17258); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17258; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& pragmaStmt = tryResult3595.inspect(); | |||
17257 | aConnection->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns),auto tryResult3595 = (CreateAndExecuteSingleStepStatement( aConnection ->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect(!!(tryResult3595.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3595.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17258, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17258); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17258; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& pragmaStmt = tryResult3595.inspect(); | |||
17258 | QM_ASSERT_UNREACHABLE_VOID)auto tryResult3595 = (CreateAndExecuteSingleStepStatement( aConnection ->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect(!!(tryResult3595.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3595.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17258, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17258); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17258; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& pragmaStmt = tryResult3595.inspect();; | |||
17259 | ||||
17260 | int32_t foreignKeysEnabled; | |||
17261 | MOZ_ALWAYS_SUCCEEDS(pragmaStmt->GetInt32(0, &foreignKeysEnabled))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (pragmaStmt->GetInt32(0, &foreignKeysEnabled))), 1)))) , 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(pragmaStmt->GetInt32(0, &foreignKeysEnabled))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17261); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(pragmaStmt->GetInt32(0, &foreignKeysEnabled))" ")"); do { *((volatile int*)__null) = 17261; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
17262 | ||||
17263 | MOZ_ASSERT(foreignKeysEnabled,do { static_assert( mozilla::detail::AssertionConditionType< decltype(foreignKeysEnabled)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(foreignKeysEnabled))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("foreignKeysEnabled" " (" "Database doesn't have foreign keys enabled!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17264); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foreignKeysEnabled" ") (" "Database doesn't have foreign keys enabled!" ")"); do { *((volatile int*)__null) = 17264; __attribute__((nomerge)) ::abort(); } while (false); } } while (false) | |||
17264 | "Database doesn't have foreign keys enabled!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(foreignKeysEnabled)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(foreignKeysEnabled))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("foreignKeysEnabled" " (" "Database doesn't have foreign keys enabled!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17264); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foreignKeysEnabled" ") (" "Database doesn't have foreign keys enabled!" ")"); do { *((volatile int*)__null) = 17264; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); | |||
17265 | } | |||
17266 | ||||
17267 | { | |||
17268 | QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult3596 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult3596.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3596.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17273, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17273); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17273; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult3596.inspect(); | |||
17269 | CreateAndExecuteSingleStepStatement<auto tryResult3596 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult3596.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3596.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17273, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17273); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17273; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult3596.inspect(); | |||
17270 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult3596 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult3596.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3596.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17273, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17273); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17273; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult3596.inspect(); | |||
17271 | aConnection->MutableStorageConnection(),auto tryResult3596 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult3596.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3596.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17273, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17273); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17273; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult3596.inspect(); | |||
17272 | "PRAGMA foreign_key_check;"_ns),auto tryResult3596 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult3596.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3596.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17273, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17273); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17273; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult3596.inspect(); | |||
17273 | QM_ASSERT_UNREACHABLE_VOID)auto tryResult3596 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult3596.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3596.unwrapErr (); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17273, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) { do { do { } while (false); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17273); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17273; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult3596.inspect();; | |||
17274 | ||||
17275 | MOZ_ASSERT(!foreignKeyError, "Database has inconsisistent foreign keys!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(!foreignKeyError)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!foreignKeyError))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!foreignKeyError" " (" "Database has inconsisistent foreign keys!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17275); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!foreignKeyError" ") (" "Database has inconsisistent foreign keys!" ")"); do { *((volatile int*)__null) = 17275; __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | |||
17276 | } | |||
17277 | } | |||
17278 | ||||
17279 | #endif // DEBUG | |||
17280 | ||||
17281 | NS_IMPL_ISUPPORTS_INHERITED0(TransactionBase::CommitOp, DatabaseOperationBase)nsresult TransactionBase::CommitOp::QueryInterface(const nsIID & aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!" , "aInstancePtr", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17281); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE; if (((bool)(__builtin_expect(!!(!NS_FAILED_impl (rv)), 1)))) return rv; return DatabaseOperationBase::QueryInterface (aIID, aInstancePtr); } MozExternalRefCountType TransactionBase ::CommitOp::AddRef(void) { static_assert(!std::is_destructible_v <TransactionBase::CommitOp>, "Reference-counted class " "TransactionBase::CommitOp" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = DatabaseOperationBase ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <TransactionBase::CommitOp>) { NS_LogAddRef((this), (r) , ("TransactionBase::CommitOp"), (uint32_t)(sizeof(*this))); } return r; } MozExternalRefCountType TransactionBase::CommitOp ::Release(void) { nsrefcnt r = DatabaseOperationBase::Release (); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <TransactionBase::CommitOp>) { NS_LogRelease((this), (r ), ("TransactionBase::CommitOp")); } return r; } | |||
17282 | ||||
17283 | NS_IMETHODIMPnsresult | |||
17284 | TransactionBase::CommitOp::Run() { | |||
17285 | MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17285); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { *((volatile int*)__null) = 17285; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17286 | mTransaction->AssertIsOnConnectionThread(); | |||
17287 | ||||
17288 | AUTO_PROFILER_LABEL("TransactionBase::CommitOp::Run", DOM)mozilla::AutoProfilerLabel raiiObject17288( "TransactionBase::CommitOp::Run" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
17289 | ||||
17290 | IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom:: indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber ) | |||
17291 | "Beginning database work", "DB Start",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom:: indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber ) | |||
17292 | IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom:: indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber ) | |||
17293 | mTransaction->LoggingSerialNumber(), mLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom:: indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber ); | |||
17294 | ||||
17295 | if (mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly && | |||
17296 | mTransaction->mHasBeenActiveOnConnectionThread) { | |||
17297 | if (DatabaseConnection* connection = | |||
17298 | mTransaction->GetDatabase().GetConnection()) { | |||
17299 | // May be null if the VersionChangeOp was canceled. | |||
17300 | DatabaseConnection::UpdateRefcountFunction* fileRefcountFunction = | |||
17301 | connection->GetUpdateRefcountFunction(); | |||
17302 | ||||
17303 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | |||
17304 | if (fileRefcountFunction) { | |||
17305 | mResultCode = fileRefcountFunction->WillCommit(); | |||
17306 | NS_WARNING_ASSERTION(NS_SUCCEEDED(mResultCode),do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode )), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WillCommit() failed!" , "NS_SUCCEEDED(mResultCode)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17307); } } while (false) | |||
17307 | "WillCommit() failed!")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode )), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WillCommit() failed!" , "NS_SUCCEEDED(mResultCode)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17307); } } while (false); | |||
17308 | } | |||
17309 | ||||
17310 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | |||
17311 | mResultCode = WriteAutoIncrementCounts(); | |||
17312 | NS_WARNING_ASSERTION(NS_SUCCEEDED(mResultCode),do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode )), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WriteAutoIncrementCounts() failed!" , "NS_SUCCEEDED(mResultCode)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17313); } } while (false) | |||
17313 | "WriteAutoIncrementCounts() failed!")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode )), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WriteAutoIncrementCounts() failed!" , "NS_SUCCEEDED(mResultCode)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17313); } } while (false); | |||
17314 | ||||
17315 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | |||
17316 | AssertForeignKeyConsistency(connection); | |||
17317 | ||||
17318 | mResultCode = connection->CommitWriteTransaction(); | |||
17319 | NS_WARNING_ASSERTION(NS_SUCCEEDED(mResultCode), "Commit failed!")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode )), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "Commit failed!" , "NS_SUCCEEDED(mResultCode)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17319); } } while (false); | |||
17320 | ||||
17321 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) )) && | |||
17322 | mTransaction->GetMode() == | |||
17323 | IDBTransaction::Mode::ReadWriteFlush) { | |||
17324 | mResultCode = connection->Checkpoint(); | |||
17325 | } | |||
17326 | ||||
17327 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) )) && fileRefcountFunction) { | |||
17328 | fileRefcountFunction->DidCommit(); | |||
17329 | } | |||
17330 | } | |||
17331 | } | |||
17332 | } | |||
17333 | ||||
17334 | if (NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)) )) { | |||
17335 | if (fileRefcountFunction) { | |||
17336 | fileRefcountFunction->DidAbort(); | |||
17337 | } | |||
17338 | ||||
17339 | connection->RollbackWriteTransaction(); | |||
17340 | } | |||
17341 | ||||
17342 | CommitOrRollbackAutoIncrementCounts(); | |||
17343 | ||||
17344 | connection->FinishWriteTransaction(); | |||
17345 | ||||
17346 | if (mTransaction->GetMode() == IDBTransaction::Mode::Cleanup) { | |||
17347 | connection->DoIdleProcessing(/* aNeedsCheckpoint */ true, | |||
17348 | /* aInterrupted */ Atomic<bool>(false)); | |||
17349 | ||||
17350 | connection->EnableQuotaChecks(); | |||
17351 | } | |||
17352 | } | |||
17353 | } | |||
17354 | ||||
17355 | IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "Finished database work", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB ::LoggingIdString<true>(mBackgroundChildLoggingId).get( ), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber ) | |||
17356 | "Finished database work", "DB End",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "Finished database work", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB ::LoggingIdString<true>(mBackgroundChildLoggingId).get( ), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber ) | |||
17357 | IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "Finished database work", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB ::LoggingIdString<true>(mBackgroundChildLoggingId).get( ), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber ) | |||
17358 | mTransaction->LoggingSerialNumber(), mLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "Finished database work", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB ::LoggingIdString<true>(mBackgroundChildLoggingId).get( ), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber ); | |||
17359 | ||||
17360 | IDB_LOG_MARK_PARENT_TRANSACTION("Finished database work", "DB End",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" ": " "Finished database work" , "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB End", mozilla ::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransaction->LoggingSerialNumber()) | |||
17361 | IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" ": " "Finished database work" , "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB End", mozilla ::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransaction->LoggingSerialNumber()) | |||
17362 | mTransaction->LoggingSerialNumber())mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" ": " "Finished database work" , "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB End", mozilla ::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId ).get(), mTransaction->LoggingSerialNumber()); | |||
17363 | ||||
17364 | return NS_OK; | |||
17365 | } | |||
17366 | ||||
17367 | void TransactionBase::CommitOp::TransactionFinishedBeforeUnblock() { | |||
17368 | AssertIsOnBackgroundThread(); | |||
17369 | MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17369); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { *((volatile int*)__null) = 17369; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17370 | ||||
17371 | AUTO_PROFILER_LABEL("CommitOp::TransactionFinishedBeforeUnblock", DOM)mozilla::AutoProfilerLabel raiiObject17371( "CommitOp::TransactionFinishedBeforeUnblock" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
17372 | ||||
17373 | if (!IsActorDestroyed()) { | |||
17374 | mTransaction->UpdateMetadata(mResultCode); | |||
17375 | } | |||
17376 | } | |||
17377 | ||||
17378 | void TransactionBase::CommitOp::TransactionFinishedAfterUnblock() { | |||
17379 | AssertIsOnBackgroundThread(); | |||
17380 | MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mTransaction)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mTransaction", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17380); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { *((volatile int*)__null) = 17380; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17381 | ||||
17382 | IDB_LOG_MARK_PARENT_TRANSACTION(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" ": " "Finished with result 0x%" "x", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "Transaction finished (0x%" "x" ")", mozilla::dom::indexedDB::LoggingIdString<true> (mTransaction->GetLoggingInfo()->Id()).get(), mTransaction ->LoggingSerialNumber(), static_cast<uint32_t>(mResultCode )) | |||
17383 | "Finished with result 0x%" PRIx32, "Transaction finished (0x%" PRIx32 ")",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" ": " "Finished with result 0x%" "x", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "Transaction finished (0x%" "x" ")", mozilla::dom::indexedDB::LoggingIdString<true> (mTransaction->GetLoggingInfo()->Id()).get(), mTransaction ->LoggingSerialNumber(), static_cast<uint32_t>(mResultCode )) | |||
17384 | IDB_LOG_ID_STRING(mTransaction->GetLoggingInfo()->Id()),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" ": " "Finished with result 0x%" "x", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "Transaction finished (0x%" "x" ")", mozilla::dom::indexedDB::LoggingIdString<true> (mTransaction->GetLoggingInfo()->Id()).get(), mTransaction ->LoggingSerialNumber(), static_cast<uint32_t>(mResultCode )) | |||
17385 | mTransaction->LoggingSerialNumber(), static_cast<uint32_t>(mResultCode))mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" ": " "Finished with result 0x%" "x", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "Transaction finished (0x%" "x" ")", mozilla::dom::indexedDB::LoggingIdString<true> (mTransaction->GetLoggingInfo()->Id()).get(), mTransaction ->LoggingSerialNumber(), static_cast<uint32_t>(mResultCode )); | |||
17386 | ||||
17387 | mTransaction->SendCompleteNotification(ClampResultCode(mResultCode)); | |||
17388 | ||||
17389 | mTransaction->GetMutableDatabase().UnregisterTransaction(*mTransaction); | |||
17390 | ||||
17391 | mTransaction = nullptr; | |||
17392 | ||||
17393 | #ifdef DEBUG1 | |||
17394 | // A bit hacky but the CommitOp is not really a normal database operation | |||
17395 | // that is tied to an actor. Do this to make our assertions happy. | |||
17396 | NoteActorDestroyed(); | |||
17397 | #endif | |||
17398 | } | |||
17399 | ||||
17400 | nsresult VersionChangeTransactionOp::SendSuccessResult() { | |||
17401 | AssertIsOnOwningThread(); | |||
17402 | ||||
17403 | // Nothing to send here, the API assumes that this request always succeeds. | |||
17404 | return NS_OK; | |||
17405 | } | |||
17406 | ||||
17407 | bool VersionChangeTransactionOp::SendFailureResult(nsresult aResultCode) { | |||
17408 | AssertIsOnOwningThread(); | |||
17409 | ||||
17410 | // The only option here is to cause the transaction to abort. | |||
17411 | return false; | |||
17412 | } | |||
17413 | ||||
17414 | void VersionChangeTransactionOp::Cleanup() { | |||
17415 | AssertIsOnOwningThread(); | |||
17416 | ||||
17417 | #ifdef DEBUG1 | |||
17418 | // A bit hacky but the VersionChangeTransactionOp is not generated in response | |||
17419 | // to a child request like most other database operations. Do this to make our | |||
17420 | // assertions happy. | |||
17421 | NoteActorDestroyed(); | |||
17422 | #endif | |||
17423 | ||||
17424 | TransactionDatabaseOperationBase::Cleanup(); | |||
17425 | } | |||
17426 | ||||
17427 | nsresult CreateObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) { | |||
17428 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17428); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 17428; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17429 | aConnection->AssertIsOnConnectionThread(); | |||
17430 | ||||
17431 | AUTO_PROFILER_LABEL("CreateObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17431( "CreateObjectStoreOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
17432 | ||||
17433 | #ifdef DEBUG1 | |||
17434 | { | |||
17435 | // Make sure that we're not creating an object store with the same name as | |||
17436 | // another that already exists. This should be impossible because we should | |||
17437 | // have thrown an error long before now... | |||
17438 | // The parameter names are not used, parameters are bound by index only | |||
17439 | // locally in the same function. | |||
17440 | QM_TRY_INSPECT(const bool& hasResult,auto tryResult3598 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect (!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult3597.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17448, mozilla::dom::quota::Severity::Error); return tryResult3597 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3598.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3598.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17452; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3598.inspect(); | |||
17441 | aConnectionauto tryResult3598 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect (!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult3597.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17448, mozilla::dom::quota::Severity::Error); return tryResult3597 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3598.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3598.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17452; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3598.inspect(); | |||
17442 | ->BorrowAndExecuteSingleStepStatement(auto tryResult3598 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect (!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult3597.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17448, mozilla::dom::quota::Severity::Error); return tryResult3597 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3598.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3598.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17452; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3598.inspect(); | |||
17443 | "SELECT name "auto tryResult3598 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect (!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult3597.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17448, mozilla::dom::quota::Severity::Error); return tryResult3597 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3598.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3598.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17452; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3598.inspect(); | |||
17444 | "FROM object_store "auto tryResult3598 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect (!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult3597.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17448, mozilla::dom::quota::Severity::Error); return tryResult3597 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3598.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3598.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17452; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3598.inspect(); | |||
17445 | "WHERE name = :name;"_ns,auto tryResult3598 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect (!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult3597.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17448, mozilla::dom::quota::Severity::Error); return tryResult3597 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3598.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3598.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17452; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3598.inspect(); | |||
17446 | [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult3598 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect (!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult3597.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17448, mozilla::dom::quota::Severity::Error); return tryResult3597 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3598.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3598.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17452; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3598.inspect(); | |||
17447 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(auto tryResult3598 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect (!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult3597.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17448, mozilla::dom::quota::Severity::Error); return tryResult3597 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3598.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3598.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17452; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3598.inspect(); | |||
17448 | 0, self.mMetadata.name())));auto tryResult3598 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect (!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult3597.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17448, mozilla::dom::quota::Severity::Error); return tryResult3597 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3598.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3598.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17452; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3598.inspect(); | |||
17449 | return Ok{};auto tryResult3598 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect (!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult3597.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17448, mozilla::dom::quota::Severity::Error); return tryResult3597 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3598.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3598.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17452; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3598.inspect(); | |||
17450 | })auto tryResult3598 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect (!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult3597.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17448, mozilla::dom::quota::Severity::Error); return tryResult3597 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3598.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3598.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17452; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3598.inspect(); | |||
17451 | .map(IsSome),auto tryResult3598 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect (!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult3597.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17448, mozilla::dom::quota::Severity::Error); return tryResult3597 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3598.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3598.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17452; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3598.inspect(); | |||
17452 | QM_ASSERT_UNREACHABLE)auto tryResult3598 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect (!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult3597.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17448, mozilla::dom::quota::Severity::Error); return tryResult3597 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3598.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3598.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3597 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3597)::ok_type>); if ((__builtin_expect(!!(tryResult3597.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult3597.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17448, mozilla::dom::quota::Severity::Error); return tryResult3597.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17452); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17452; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3598.inspect();; | |||
17453 | ||||
17454 | MOZ_ASSERT(!hasResult)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!hasResult)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!hasResult))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!hasResult", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17454); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult" ")"); do { *((volatile int*)__null) = 17454; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17455 | } | |||
17456 | #endif | |||
17457 | ||||
17458 | DatabaseConnection::AutoSavepoint autoSave; | |||
17459 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult3599 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3599)::ok_type>); if ((__builtin_expect(!!(tryResult3599 .isErr()), 0))) { auto tryTempError = tryResult3599.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17464, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17460 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult3599 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3599)::ok_type>); if ((__builtin_expect(!!(tryResult3599 .isErr()), 0))) { auto tryTempError = tryResult3599.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17464, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17461 | ,{auto tryResult3599 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3599)::ok_type>); if ((__builtin_expect(!!(tryResult3599 .isErr()), 0))) { auto tryTempError = tryResult3599.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17464, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17462 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult3599 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3599)::ok_type>); if ((__builtin_expect(!!(tryResult3599 .isErr()), 0))) { auto tryTempError = tryResult3599.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17464, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17463 | #endif{auto tryResult3599 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3599)::ok_type>); if ((__builtin_expect(!!(tryResult3599 .isErr()), 0))) { auto tryTempError = tryResult3599.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17464, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17464 | ){auto tryResult3599 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3599)::ok_type>); if ((__builtin_expect(!!(tryResult3599 .isErr()), 0))) { auto tryTempError = tryResult3599.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17464, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | |||
17465 | ||||
17466 | // The parameter names are not used, parameters are bound by index only | |||
17467 | // locally in the same function. | |||
17468 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }} | |||
17469 | "INSERT INTO object_store (id, auto_increment, name, key_path) "{auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }} | |||
17470 | "VALUES (:id, :auto_increment, :name, :key_path);"_ns,{auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }} | |||
17471 | [&metadata ={auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }} | |||
17472 | mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }} | |||
17473 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, metadata.id())));{auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }} | |||
17474 | ||||
17475 | QM_TRY(MOZ_TO_RESULT({auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }} | |||
17476 | stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0)));{auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }} | |||
17477 | ||||
17478 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(2, metadata.name())));{auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }} | |||
17479 | ||||
17480 | if (metadata.keyPath().IsValid()) {{auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }} | |||
17481 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex({auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }} | |||
17482 | 3, metadata.keyPath().SerializeToString())));{auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }} | |||
17483 | } else {{auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }} | |||
17484 | QM_TRY(MOZ_TO_RESULT(stmt.BindNullByIndex(3)));{auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }} | |||
17485 | }{auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }} | |||
17486 | ||||
17487 | return Ok{};{auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }} | |||
17488 | }))){auto tryResult3605 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store (id, auto_increment, name, key_path) " "VALUES (:id, :auto_increment, :name, :key_path);"_ns, [& metadata = mMetadata](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect (!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult3600 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17473, mozilla::dom::quota::Severity::Error); return tryResult3600 .propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect (!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult3601.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17476, mozilla::dom::quota::Severity::Error); return tryResult3601 .propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect (!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult3602 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17478, mozilla::dom::quota::Severity::Error); return tryResult3602 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect (!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult3603.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17482, mozilla::dom::quota::Severity::Error); return tryResult3603 .propagateErr(); }}; } else { {auto tryResult3604 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect (!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult3604.inspectErr (), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17484, mozilla::dom::quota::Severity::Error); return tryResult3604 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult3605)::ok_type>); if ((__builtin_expect(!!(tryResult3605.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3600 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3600)::ok_type>); if ((__builtin_expect(!!(tryResult3600.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3600.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17473, mozilla::dom::quota::Severity::Error); return tryResult3600.propagateErr(); }}; {auto tryResult3601 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3601)::ok_type>); if ((__builtin_expect(!!(tryResult3601.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult3601.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17476, mozilla::dom::quota::Severity::Error); return tryResult3601.propagateErr(); }}; {auto tryResult3602 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3602)::ok_type>); if ((__builtin_expect(!!(tryResult3602.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult3602.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17478, mozilla::dom::quota::Severity::Error); return tryResult3602.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult3603 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3603)::ok_type>); if ((__builtin_expect(!!(tryResult3603.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult3603.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17482, mozilla::dom::quota::Severity::Error); return tryResult3603.propagateErr(); }}; } else { {auto tryResult3604 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult3604)::ok_type>); if ((__builtin_expect(!!(tryResult3604.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult3604.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17484, mozilla::dom::quota::Severity::Error); return tryResult3604.propagateErr(); }}; } return Ok{}; }))" , tryResult3605.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17488, mozilla::dom::quota::Severity::Error); return tryResult3605 .propagateErr(); }}; | |||
17489 | ||||
17490 | #ifdef DEBUG1 | |||
17491 | { | |||
17492 | int64_t id; | |||
17493 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetLastInsertRowID (&id))), 1)))), 1))) { } else { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(false)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17494); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" ")"); do { *((volatile int*)__null) = 17494; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
17494 | aConnection->MutableStorageConnection().GetLastInsertRowID(&id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetLastInsertRowID (&id))), 1)))), 1))) { } else { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(false)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17494); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" ")"); do { *((volatile int*)__null) = 17494; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
17495 | MOZ_ASSERT(mMetadata.id() == id)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata.id() == id)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata.id() == id))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata.id() == id" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17495); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata.id() == id" ")"); do { *((volatile int*)__null) = 17495; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17496 | } | |||
17497 | #endif | |||
17498 | ||||
17499 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult3606 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult3606)::ok_type >); if ((__builtin_expect(!!(tryResult3606.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult3606.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17499, mozilla::dom::quota::Severity::Error); return tryResult3606 .propagateErr(); }}; | |||
17500 | ||||
17501 | return NS_OK; | |||
17502 | } | |||
17503 | ||||
17504 | nsresult DeleteObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) { | |||
17505 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17505); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 17505; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17506 | aConnection->AssertIsOnConnectionThread(); | |||
17507 | ||||
17508 | AUTO_PROFILER_LABEL("DeleteObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17508( "DeleteObjectStoreOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
17509 | ||||
17510 | #ifdef DEBUG1 | |||
17511 | { | |||
17512 | // Make sure |mIsLastObjectStore| is telling the truth. | |||
17513 | QM_TRY_INSPECT(auto tryResult3607 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns )); if ((__builtin_expect(!!(tryResult3607.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3607.unwrapErr (); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17516, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17516); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17516; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult3607.inspect(); | |||
17514 | const auto& stmt,auto tryResult3607 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns )); if ((__builtin_expect(!!(tryResult3607.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3607.unwrapErr (); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17516, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17516); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17516; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult3607.inspect(); | |||
17515 | aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns),auto tryResult3607 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns )); if ((__builtin_expect(!!(tryResult3607.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3607.unwrapErr (); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17516, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17516); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17516; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult3607.inspect(); | |||
17516 | QM_ASSERT_UNREACHABLE)auto tryResult3607 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns )); if ((__builtin_expect(!!(tryResult3607.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3607.unwrapErr (); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17516, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17516); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17516; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult3607.inspect();; | |||
17517 | ||||
17518 | bool foundThisObjectStore = false; | |||
17519 | bool foundOtherObjectStore = false; | |||
17520 | ||||
17521 | while (true) { | |||
17522 | bool hasResult; | |||
17523 | MOZ_ALWAYS_SUCCEEDS(stmt->ExecuteStep(&hasResult))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (stmt->ExecuteStep(&hasResult))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17523); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))" ")" ); do { *((volatile int*)__null) = 17523; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
17524 | ||||
17525 | if (!hasResult) { | |||
17526 | break; | |||
17527 | } | |||
17528 | ||||
17529 | int64_t id; | |||
17530 | MOZ_ALWAYS_SUCCEEDS(stmt->GetInt64(0, &id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (stmt->GetInt64(0, &id))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(stmt->GetInt64(0, &id))" ")" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17530); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(stmt->GetInt64(0, &id))" ")"); do { *((volatile int*)__null) = 17530; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } } while (false ); | |||
17531 | ||||
17532 | if (id == mMetadata->mCommonMetadata.id()) { | |||
17533 | foundThisObjectStore = true; | |||
17534 | } else { | |||
17535 | foundOtherObjectStore = true; | |||
17536 | } | |||
17537 | } | |||
17538 | ||||
17539 | MOZ_ASSERT_IF(mIsLastObjectStore,do { if (mIsLastObjectStore) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(foundThisObjectStore && !foundOtherObjectStore)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(foundThisObjectStore && !foundOtherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("foundThisObjectStore && !foundOtherObjectStore", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17540); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && !foundOtherObjectStore" ")"); do { *((volatile int*)__null) = 17540; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
17540 | foundThisObjectStore && !foundOtherObjectStore)do { if (mIsLastObjectStore) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(foundThisObjectStore && !foundOtherObjectStore)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(foundThisObjectStore && !foundOtherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("foundThisObjectStore && !foundOtherObjectStore", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17540); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && !foundOtherObjectStore" ")"); do { *((volatile int*)__null) = 17540; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
17541 | MOZ_ASSERT_IF(!mIsLastObjectStore,do { if (!mIsLastObjectStore) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(foundThisObjectStore && foundOtherObjectStore)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(foundThisObjectStore && foundOtherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("foundThisObjectStore && foundOtherObjectStore", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17542); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && foundOtherObjectStore" ")"); do { *((volatile int*)__null) = 17542; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
17542 | foundThisObjectStore && foundOtherObjectStore)do { if (!mIsLastObjectStore) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(foundThisObjectStore && foundOtherObjectStore)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(foundThisObjectStore && foundOtherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("foundThisObjectStore && foundOtherObjectStore", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17542); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && foundOtherObjectStore" ")"); do { *((volatile int*)__null) = 17542; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
17543 | } | |||
17544 | #endif | |||
17545 | ||||
17546 | DatabaseConnection::AutoSavepoint autoSave; | |||
17547 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult3608 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3608)::ok_type>); if ((__builtin_expect(!!(tryResult3608 .isErr()), 0))) { auto tryTempError = tryResult3608.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17552, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17548 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult3608 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3608)::ok_type>); if ((__builtin_expect(!!(tryResult3608 .isErr()), 0))) { auto tryTempError = tryResult3608.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17552, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17549 | ,{auto tryResult3608 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3608)::ok_type>); if ((__builtin_expect(!!(tryResult3608 .isErr()), 0))) { auto tryTempError = tryResult3608.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17552, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17550 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult3608 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3608)::ok_type>); if ((__builtin_expect(!!(tryResult3608 .isErr()), 0))) { auto tryTempError = tryResult3608.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17552, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17551 | #endif{auto tryResult3608 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3608)::ok_type>); if ((__builtin_expect(!!(tryResult3608 .isErr()), 0))) { auto tryTempError = tryResult3608.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17552, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17552 | ){auto tryResult3608 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3608)::ok_type>); if ((__builtin_expect(!!(tryResult3608 .isErr()), 0))) { auto tryTempError = tryResult3608.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17552, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | |||
17553 | ||||
17554 | if (mIsLastObjectStore) { | |||
17555 | // We can just delete everything if this is the last object store. | |||
17556 | QM_TRY(MOZ_TO_RESULT({auto tryResult3609 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM index_data;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult3609)::ok_type>); if ((__builtin_expect (!!(tryResult3609.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM index_data;\"_ns))" , tryResult3609.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17557, mozilla::dom::quota::Severity::Error); return tryResult3609 .propagateErr(); }} | |||
17557 | aConnection->ExecuteCachedStatement("DELETE FROM index_data;"_ns))){auto tryResult3609 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM index_data;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult3609)::ok_type>); if ((__builtin_expect (!!(tryResult3609.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM index_data;\"_ns))" , tryResult3609.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17557, mozilla::dom::quota::Severity::Error); return tryResult3609 .propagateErr(); }}; | |||
17558 | ||||
17559 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult3610 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM unique_index_data;"_ns))); static_assert(std:: is_empty_v<typename decltype(tryResult3610)::ok_type>); if ((__builtin_expect(!!(tryResult3610.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM unique_index_data;\"_ns))" , tryResult3610.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17560, mozilla::dom::quota::Severity::Error); return tryResult3610 .propagateErr(); }} | |||
17560 | "DELETE FROM unique_index_data;"_ns))){auto tryResult3610 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM unique_index_data;"_ns))); static_assert(std:: is_empty_v<typename decltype(tryResult3610)::ok_type>); if ((__builtin_expect(!!(tryResult3610.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM unique_index_data;\"_ns))" , tryResult3610.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17560, mozilla::dom::quota::Severity::Error); return tryResult3610 .propagateErr(); }}; | |||
17561 | ||||
17562 | QM_TRY(MOZ_TO_RESULT({auto tryResult3611 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM object_data;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult3611)::ok_type>); if ((__builtin_expect (!!(tryResult3611.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_data;\"_ns))" , tryResult3611.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17563, mozilla::dom::quota::Severity::Error); return tryResult3611 .propagateErr(); }} | |||
17563 | aConnection->ExecuteCachedStatement("DELETE FROM object_data;"_ns))){auto tryResult3611 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM object_data;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult3611)::ok_type>); if ((__builtin_expect (!!(tryResult3611.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_data;\"_ns))" , tryResult3611.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17563, mozilla::dom::quota::Severity::Error); return tryResult3611 .propagateErr(); }}; | |||
17564 | ||||
17565 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult3612 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index;"_ns))); static_assert(std:: is_empty_v<typename decltype(tryResult3612)::ok_type>); if ((__builtin_expect(!!(tryResult3612.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index;\"_ns))" , tryResult3612.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17566, mozilla::dom::quota::Severity::Error); return tryResult3612 .propagateErr(); }} | |||
17566 | "DELETE FROM object_store_index;"_ns))){auto tryResult3612 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index;"_ns))); static_assert(std:: is_empty_v<typename decltype(tryResult3612)::ok_type>); if ((__builtin_expect(!!(tryResult3612.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index;\"_ns))" , tryResult3612.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17566, mozilla::dom::quota::Severity::Error); return tryResult3612 .propagateErr(); }}; | |||
17567 | ||||
17568 | QM_TRY(MOZ_TO_RESULT({auto tryResult3613 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM object_store;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult3613)::ok_type>); if ((__builtin_expect (!!(tryResult3613.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_store;\"_ns))" , tryResult3613.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17569, mozilla::dom::quota::Severity::Error); return tryResult3613 .propagateErr(); }} | |||
17569 | aConnection->ExecuteCachedStatement("DELETE FROM object_store;"_ns))){auto tryResult3613 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM object_store;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult3613)::ok_type>); if ((__builtin_expect (!!(tryResult3613.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_store;\"_ns))" , tryResult3613.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17569, mozilla::dom::quota::Severity::Error); return tryResult3613 .propagateErr(); }}; | |||
17570 | } else { | |||
17571 | QM_TRY_INSPECT(auto tryResult3614 = (ObjectStoreHasIndexes(*aConnection, mMetadata ->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult3614 .isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())" , tryResult3614.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17573, mozilla::dom::quota::Severity::Error); return tryResult3614 .propagateErr(); } const bool& hasIndexes = tryResult3614 .inspect(); | |||
17572 | const bool& hasIndexes,auto tryResult3614 = (ObjectStoreHasIndexes(*aConnection, mMetadata ->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult3614 .isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())" , tryResult3614.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17573, mozilla::dom::quota::Severity::Error); return tryResult3614 .propagateErr(); } const bool& hasIndexes = tryResult3614 .inspect(); | |||
17573 | ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id()))auto tryResult3614 = (ObjectStoreHasIndexes(*aConnection, mMetadata ->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult3614 .isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())" , tryResult3614.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17573, mozilla::dom::quota::Severity::Error); return tryResult3614 .propagateErr(); } const bool& hasIndexes = tryResult3614 .inspect();; | |||
17574 | ||||
17575 | const auto bindObjectStoreIdToFirstParameter = | |||
17576 | [this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { | |||
17577 | QM_TRY(MOZ_TO_RESULT({auto tryResult3615 = (ToResult(stmt.BindInt64ByIndex(0, mMetadata ->mCommonMetadata.id()))); static_assert(std::is_empty_v< typename decltype(tryResult3615)::ok_type>); if ((__builtin_expect (!!(tryResult3615.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))" , tryResult3615.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17578, mozilla::dom::quota::Severity::Error); return tryResult3615 .propagateErr(); }} | |||
17578 | stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))){auto tryResult3615 = (ToResult(stmt.BindInt64ByIndex(0, mMetadata ->mCommonMetadata.id()))); static_assert(std::is_empty_v< typename decltype(tryResult3615)::ok_type>); if ((__builtin_expect (!!(tryResult3615.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))" , tryResult3615.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17578, mozilla::dom::quota::Severity::Error); return tryResult3615 .propagateErr(); }}; | |||
17579 | ||||
17580 | return Ok{}; | |||
17581 | }; | |||
17582 | ||||
17583 | // The parameter name :object_store_id in the SQL statements below is not | |||
17584 | // used for binding, parameters are bound by index only locally by | |||
17585 | // bindObjectStoreIdToFirstParameter. | |||
17586 | if (hasIndexes) { | |||
17587 | QM_TRY(MOZ_TO_RESULT(DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult3616 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mMetadata->mCommonMetadata.id(), Nothing()) )); static_assert(std::is_empty_v<typename decltype(tryResult3616 )::ok_type>); if ((__builtin_expect(!!(tryResult3616.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mMetadata->mCommonMetadata.id(), Nothing()))" , tryResult3616.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17588, mozilla::dom::quota::Severity::Error); return tryResult3616 .propagateErr(); }} | |||
17588 | aConnection, mMetadata->mCommonMetadata.id(), Nothing()))){auto tryResult3616 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mMetadata->mCommonMetadata.id(), Nothing()) )); static_assert(std::is_empty_v<typename decltype(tryResult3616 )::ok_type>); if ((__builtin_expect(!!(tryResult3616.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mMetadata->mCommonMetadata.id(), Nothing()))" , tryResult3616.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17588, mozilla::dom::quota::Severity::Error); return tryResult3616 .propagateErr(); }}; | |||
17589 | ||||
17590 | // Now clean up the object store index table. | |||
17591 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult3617 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult3617)::ok_type>); if ((__builtin_expect (!!(tryResult3617.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult3617.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17594, mozilla::dom::quota::Severity::Error); return tryResult3617 .propagateErr(); }} | |||
17592 | "DELETE FROM object_store_index "{auto tryResult3617 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult3617)::ok_type>); if ((__builtin_expect (!!(tryResult3617.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult3617.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17594, mozilla::dom::quota::Severity::Error); return tryResult3617 .propagateErr(); }} | |||
17593 | "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult3617 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult3617)::ok_type>); if ((__builtin_expect (!!(tryResult3617.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult3617.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17594, mozilla::dom::quota::Severity::Error); return tryResult3617 .propagateErr(); }} | |||
17594 | bindObjectStoreIdToFirstParameter))){auto tryResult3617 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult3617)::ok_type>); if ((__builtin_expect (!!(tryResult3617.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult3617.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17594, mozilla::dom::quota::Severity::Error); return tryResult3617 .propagateErr(); }}; | |||
17595 | } else { | |||
17596 | // We only have to worry about object data if this object store has no | |||
17597 | // indexes. | |||
17598 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult3618 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult3618)::ok_type>); if ((__builtin_expect (!!(tryResult3618.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult3618.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17601, mozilla::dom::quota::Severity::Error); return tryResult3618 .propagateErr(); }} | |||
17599 | "DELETE FROM object_data "{auto tryResult3618 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult3618)::ok_type>); if ((__builtin_expect (!!(tryResult3618.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult3618.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17601, mozilla::dom::quota::Severity::Error); return tryResult3618 .propagateErr(); }} | |||
17600 | "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult3618 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult3618)::ok_type>); if ((__builtin_expect (!!(tryResult3618.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult3618.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17601, mozilla::dom::quota::Severity::Error); return tryResult3618 .propagateErr(); }} | |||
17601 | bindObjectStoreIdToFirstParameter))){auto tryResult3618 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult3618)::ok_type>); if ((__builtin_expect (!!(tryResult3618.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult3618.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17601, mozilla::dom::quota::Severity::Error); return tryResult3618 .propagateErr(); }}; | |||
17602 | } | |||
17603 | ||||
17604 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult3619 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult3619)::ok_type>); if ((__builtin_expect (!!(tryResult3619.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult3619.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17607, mozilla::dom::quota::Severity::Error); return tryResult3619 .propagateErr(); }} | |||
17605 | "DELETE FROM object_store "{auto tryResult3619 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult3619)::ok_type>); if ((__builtin_expect (!!(tryResult3619.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult3619.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17607, mozilla::dom::quota::Severity::Error); return tryResult3619 .propagateErr(); }} | |||
17606 | "WHERE id = :object_store_id;"_ns,{auto tryResult3619 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult3619)::ok_type>); if ((__builtin_expect (!!(tryResult3619.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult3619.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17607, mozilla::dom::quota::Severity::Error); return tryResult3619 .propagateErr(); }} | |||
17607 | bindObjectStoreIdToFirstParameter))){auto tryResult3619 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult3619)::ok_type>); if ((__builtin_expect (!!(tryResult3619.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult3619.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17607, mozilla::dom::quota::Severity::Error); return tryResult3619 .propagateErr(); }}; | |||
17608 | ||||
17609 | #ifdef DEBUG1 | |||
17610 | { | |||
17611 | int32_t deletedRowCount; | |||
17612 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetAffectedRows( & deletedRowCount))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17614); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")"); do { *((volatile int*)__null) = 17614; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
17613 | aConnection->MutableStorageConnection().GetAffectedRows(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetAffectedRows( & deletedRowCount))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17614); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")"); do { *((volatile int*)__null) = 17614; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
17614 | &deletedRowCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetAffectedRows( & deletedRowCount))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17614); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")"); do { *((volatile int*)__null) = 17614; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
17615 | MOZ_ASSERT(deletedRowCount == 1)do { static_assert( mozilla::detail::AssertionConditionType< decltype(deletedRowCount == 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(deletedRowCount == 1))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("deletedRowCount == 1" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17615); AnnotateMozCrashReason("MOZ_ASSERT" "(" "deletedRowCount == 1" ")"); do { *((volatile int*)__null) = 17615; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17616 | } | |||
17617 | #endif | |||
17618 | } | |||
17619 | ||||
17620 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult3620 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult3620)::ok_type >); if ((__builtin_expect(!!(tryResult3620.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult3620.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17620, mozilla::dom::quota::Severity::Error); return tryResult3620 .propagateErr(); }}; | |||
17621 | ||||
17622 | if (mMetadata->mCommonMetadata.autoIncrement()) { | |||
17623 | Transaction().ForgetModifiedAutoIncrementObjectStore(*mMetadata); | |||
17624 | } | |||
17625 | ||||
17626 | return NS_OK; | |||
17627 | } | |||
17628 | ||||
17629 | nsresult RenameObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) { | |||
17630 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17630); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 17630; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17631 | aConnection->AssertIsOnConnectionThread(); | |||
17632 | ||||
17633 | AUTO_PROFILER_LABEL("RenameObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17633( "RenameObjectStoreOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
17634 | ||||
17635 | #ifdef DEBUG1 | |||
17636 | { | |||
17637 | // Make sure that we're not renaming an object store with the same name as | |||
17638 | // another that already exists. This should be impossible because we should | |||
17639 | // have thrown an error long before now... | |||
17640 | // The parameter names are not used, parameters are bound by index only | |||
17641 | // locally in the same function. | |||
17642 | QM_TRY_INSPECT(auto tryResult3623 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect (!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3621 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17651, mozilla::dom::quota::Severity::Error); return tryResult3621 .propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3622.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17653, mozilla::dom::quota::Severity::Error); return tryResult3622 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3623.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3623.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17657; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3623.inspect(); | |||
17643 | const bool& hasResult,auto tryResult3623 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect (!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3621 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17651, mozilla::dom::quota::Severity::Error); return tryResult3621 .propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3622.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17653, mozilla::dom::quota::Severity::Error); return tryResult3622 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3623.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3623.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17657; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3623.inspect(); | |||
17644 | aConnectionauto tryResult3623 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect (!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3621 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17651, mozilla::dom::quota::Severity::Error); return tryResult3621 .propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3622.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17653, mozilla::dom::quota::Severity::Error); return tryResult3622 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3623.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3623.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17657; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3623.inspect(); | |||
17645 | ->BorrowAndExecuteSingleStepStatement(auto tryResult3623 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect (!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3621 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17651, mozilla::dom::quota::Severity::Error); return tryResult3621 .propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3622.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17653, mozilla::dom::quota::Severity::Error); return tryResult3622 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3623.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3623.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17657; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3623.inspect(); | |||
17646 | "SELECT name "auto tryResult3623 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect (!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3621 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17651, mozilla::dom::quota::Severity::Error); return tryResult3621 .propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3622.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17653, mozilla::dom::quota::Severity::Error); return tryResult3622 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3623.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3623.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17657; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3623.inspect(); | |||
17647 | "FROM object_store "auto tryResult3623 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect (!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3621 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17651, mozilla::dom::quota::Severity::Error); return tryResult3621 .propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3622.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17653, mozilla::dom::quota::Severity::Error); return tryResult3622 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3623.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3623.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17657; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3623.inspect(); | |||
17648 | "WHERE name = :name AND id != :id;"_ns,auto tryResult3623 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect (!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3621 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17651, mozilla::dom::quota::Severity::Error); return tryResult3621 .propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3622.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17653, mozilla::dom::quota::Severity::Error); return tryResult3622 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3623.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3623.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17657; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3623.inspect(); | |||
17649 | [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult3623 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect (!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3621 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17651, mozilla::dom::quota::Severity::Error); return tryResult3621 .propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3622.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17653, mozilla::dom::quota::Severity::Error); return tryResult3622 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3623.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3623.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17657; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3623.inspect(); | |||
17650 | QM_TRY(auto tryResult3623 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect (!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3621 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17651, mozilla::dom::quota::Severity::Error); return tryResult3621 .propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3622.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17653, mozilla::dom::quota::Severity::Error); return tryResult3622 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3623.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3623.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17657; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3623.inspect(); | |||
17651 | MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));auto tryResult3623 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect (!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3621 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17651, mozilla::dom::quota::Severity::Error); return tryResult3621 .propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3622.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17653, mozilla::dom::quota::Severity::Error); return tryResult3622 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3623.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3623.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17657; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3623.inspect(); | |||
17652 | ||||
17653 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mId)));auto tryResult3623 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect (!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3621 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17651, mozilla::dom::quota::Severity::Error); return tryResult3621 .propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3622.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17653, mozilla::dom::quota::Severity::Error); return tryResult3622 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3623.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3623.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17657; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3623.inspect(); | |||
17654 | return Ok{};auto tryResult3623 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect (!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3621 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17651, mozilla::dom::quota::Severity::Error); return tryResult3621 .propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3622.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17653, mozilla::dom::quota::Severity::Error); return tryResult3622 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3623.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3623.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17657; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3623.inspect(); | |||
17655 | })auto tryResult3623 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect (!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3621 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17651, mozilla::dom::quota::Severity::Error); return tryResult3621 .propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3622.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17653, mozilla::dom::quota::Severity::Error); return tryResult3622 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3623.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3623.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17657; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3623.inspect(); | |||
17656 | .map(IsSome),auto tryResult3623 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect (!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3621 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17651, mozilla::dom::quota::Severity::Error); return tryResult3621 .propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3622.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17653, mozilla::dom::quota::Severity::Error); return tryResult3622 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3623.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3623.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17657; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3623.inspect(); | |||
17657 | QM_ASSERT_UNREACHABLE)auto tryResult3623 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect (!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3621 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17651, mozilla::dom::quota::Severity::Error); return tryResult3621 .propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3622.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17653, mozilla::dom::quota::Severity::Error); return tryResult3622 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3623.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3623.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3621 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3621)::ok_type>); if ((__builtin_expect(!!(tryResult3621.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3621.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17651, mozilla::dom::quota::Severity::Error); return tryResult3621.propagateErr(); }}; {auto tryResult3622 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3622)::ok_type>); if ((__builtin_expect(!!(tryResult3622.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3622.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17653, mozilla::dom::quota::Severity::Error); return tryResult3622.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17657); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17657; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3623.inspect();; | |||
17658 | ||||
17659 | MOZ_ASSERT(!hasResult)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!hasResult)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!hasResult))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!hasResult", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17659); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult" ")"); do { *((volatile int*)__null) = 17659; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17660 | } | |||
17661 | #endif | |||
17662 | ||||
17663 | DatabaseConnection::AutoSavepoint autoSave; | |||
17664 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult3624 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3624)::ok_type>); if ((__builtin_expect(!!(tryResult3624 .isErr()), 0))) { auto tryTempError = tryResult3624.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17669, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17665 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult3624 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3624)::ok_type>); if ((__builtin_expect(!!(tryResult3624 .isErr()), 0))) { auto tryTempError = tryResult3624.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17669, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17666 | ,{auto tryResult3624 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3624)::ok_type>); if ((__builtin_expect(!!(tryResult3624 .isErr()), 0))) { auto tryTempError = tryResult3624.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17669, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17667 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult3624 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3624)::ok_type>); if ((__builtin_expect(!!(tryResult3624 .isErr()), 0))) { auto tryTempError = tryResult3624.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17669, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17668 | #endif{auto tryResult3624 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3624)::ok_type>); if ((__builtin_expect(!!(tryResult3624 .isErr()), 0))) { auto tryTempError = tryResult3624.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17669, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17669 | ){auto tryResult3624 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3624)::ok_type>); if ((__builtin_expect(!!(tryResult3624 .isErr()), 0))) { auto tryTempError = tryResult3624.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17669, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | |||
17670 | ||||
17671 | // The parameter names are not used, parameters are bound by index only | |||
17672 | // locally in the same function. | |||
17673 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult3627 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect (!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3625 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17678, mozilla::dom::quota::Severity::Error); return tryResult3625 .propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3626.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17680, mozilla::dom::quota::Severity::Error); return tryResult3626 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3627)::ok_type>); if ((__builtin_expect (!!(tryResult3627.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect(!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3625.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17678, mozilla::dom::quota::Severity::Error); return tryResult3625.propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3626.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17680, mozilla::dom::quota::Severity::Error); return tryResult3626.propagateErr(); }}; return Ok{}; }))" , tryResult3627.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17683, mozilla::dom::quota::Severity::Error); return tryResult3627 .propagateErr(); }} | |||
17674 | "UPDATE object_store "{auto tryResult3627 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect (!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3625 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17678, mozilla::dom::quota::Severity::Error); return tryResult3625 .propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3626.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17680, mozilla::dom::quota::Severity::Error); return tryResult3626 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3627)::ok_type>); if ((__builtin_expect (!!(tryResult3627.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect(!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3625.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17678, mozilla::dom::quota::Severity::Error); return tryResult3625.propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3626.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17680, mozilla::dom::quota::Severity::Error); return tryResult3626.propagateErr(); }}; return Ok{}; }))" , tryResult3627.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17683, mozilla::dom::quota::Severity::Error); return tryResult3627 .propagateErr(); }} | |||
17675 | "SET name = :name "{auto tryResult3627 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect (!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3625 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17678, mozilla::dom::quota::Severity::Error); return tryResult3625 .propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3626.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17680, mozilla::dom::quota::Severity::Error); return tryResult3626 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3627)::ok_type>); if ((__builtin_expect (!!(tryResult3627.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect(!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3625.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17678, mozilla::dom::quota::Severity::Error); return tryResult3625.propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3626.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17680, mozilla::dom::quota::Severity::Error); return tryResult3626.propagateErr(); }}; return Ok{}; }))" , tryResult3627.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17683, mozilla::dom::quota::Severity::Error); return tryResult3627 .propagateErr(); }} | |||
17676 | "WHERE id = :id;"_ns,{auto tryResult3627 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect (!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3625 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17678, mozilla::dom::quota::Severity::Error); return tryResult3625 .propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3626.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17680, mozilla::dom::quota::Severity::Error); return tryResult3626 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3627)::ok_type>); if ((__builtin_expect (!!(tryResult3627.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect(!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3625.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17678, mozilla::dom::quota::Severity::Error); return tryResult3625.propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3626.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17680, mozilla::dom::quota::Severity::Error); return tryResult3626.propagateErr(); }}; return Ok{}; }))" , tryResult3627.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17683, mozilla::dom::quota::Severity::Error); return tryResult3627 .propagateErr(); }} | |||
17677 | [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult3627 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect (!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3625 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17678, mozilla::dom::quota::Severity::Error); return tryResult3625 .propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3626.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17680, mozilla::dom::quota::Severity::Error); return tryResult3626 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3627)::ok_type>); if ((__builtin_expect (!!(tryResult3627.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect(!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3625.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17678, mozilla::dom::quota::Severity::Error); return tryResult3625.propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3626.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17680, mozilla::dom::quota::Severity::Error); return tryResult3626.propagateErr(); }}; return Ok{}; }))" , tryResult3627.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17683, mozilla::dom::quota::Severity::Error); return tryResult3627 .propagateErr(); }} | |||
17678 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));{auto tryResult3627 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect (!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3625 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17678, mozilla::dom::quota::Severity::Error); return tryResult3625 .propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3626.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17680, mozilla::dom::quota::Severity::Error); return tryResult3626 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3627)::ok_type>); if ((__builtin_expect (!!(tryResult3627.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect(!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3625.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17678, mozilla::dom::quota::Severity::Error); return tryResult3625.propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3626.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17680, mozilla::dom::quota::Severity::Error); return tryResult3626.propagateErr(); }}; return Ok{}; }))" , tryResult3627.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17683, mozilla::dom::quota::Severity::Error); return tryResult3627 .propagateErr(); }} | |||
17679 | ||||
17680 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mId)));{auto tryResult3627 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect (!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3625 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17678, mozilla::dom::quota::Severity::Error); return tryResult3625 .propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3626.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17680, mozilla::dom::quota::Severity::Error); return tryResult3626 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3627)::ok_type>); if ((__builtin_expect (!!(tryResult3627.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect(!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3625.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17678, mozilla::dom::quota::Severity::Error); return tryResult3625.propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3626.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17680, mozilla::dom::quota::Severity::Error); return tryResult3626.propagateErr(); }}; return Ok{}; }))" , tryResult3627.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17683, mozilla::dom::quota::Severity::Error); return tryResult3627 .propagateErr(); }} | |||
17681 | ||||
17682 | return Ok{};{auto tryResult3627 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect (!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3625 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17678, mozilla::dom::quota::Severity::Error); return tryResult3625 .propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3626.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17680, mozilla::dom::quota::Severity::Error); return tryResult3626 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3627)::ok_type>); if ((__builtin_expect (!!(tryResult3627.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect(!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3625.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17678, mozilla::dom::quota::Severity::Error); return tryResult3625.propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3626.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17680, mozilla::dom::quota::Severity::Error); return tryResult3626.propagateErr(); }}; return Ok{}; }))" , tryResult3627.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17683, mozilla::dom::quota::Severity::Error); return tryResult3627 .propagateErr(); }} | |||
17683 | }))){auto tryResult3627 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect (!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3625 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17678, mozilla::dom::quota::Severity::Error); return tryResult3625 .propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult3626.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17680, mozilla::dom::quota::Severity::Error); return tryResult3626 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3627)::ok_type>); if ((__builtin_expect (!!(tryResult3627.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3625 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3625)::ok_type>); if ((__builtin_expect(!!(tryResult3625.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3625.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17678, mozilla::dom::quota::Severity::Error); return tryResult3625.propagateErr(); }}; {auto tryResult3626 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult3626)::ok_type>); if ((__builtin_expect(!!(tryResult3626.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult3626.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17680, mozilla::dom::quota::Severity::Error); return tryResult3626.propagateErr(); }}; return Ok{}; }))" , tryResult3627.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17683, mozilla::dom::quota::Severity::Error); return tryResult3627 .propagateErr(); }}; | |||
17684 | ||||
17685 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult3628 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult3628)::ok_type >); if ((__builtin_expect(!!(tryResult3628.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult3628.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17685, mozilla::dom::quota::Severity::Error); return tryResult3628 .propagateErr(); }}; | |||
17686 | ||||
17687 | return NS_OK; | |||
17688 | } | |||
17689 | ||||
17690 | CreateIndexOp::CreateIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | |||
17691 | const IndexOrObjectStoreId aObjectStoreId, | |||
17692 | const IndexMetadata& aMetadata) | |||
17693 | : VersionChangeTransactionOp(std::move(aTransaction)), | |||
17694 | mMetadata(aMetadata), | |||
17695 | mFileManager(Transaction().GetDatabase().GetFileManagerPtr()), | |||
17696 | mDatabaseId(Transaction().DatabaseId()), | |||
17697 | mObjectStoreId(aObjectStoreId) { | |||
17698 | MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aObjectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17698); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"); do { *((volatile int*)__null) = 17698; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17699 | MOZ_ASSERT(aMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMetadata.id())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMetadata.id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aMetadata.id()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17699); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMetadata.id()" ")"); do { *((volatile int*)__null) = 17699; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17700 | MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17700); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager" ")"); do { *((volatile int*)__null) = 17700; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17701 | MOZ_ASSERT(!mDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mDatabaseId.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseId.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17701); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.IsEmpty()" ")"); do { *((volatile int*)__null) = 17701; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17702 | } | |||
17703 | ||||
17704 | nsresult CreateIndexOp::InsertDataFromObjectStore( | |||
17705 | DatabaseConnection* aConnection) { | |||
17706 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 17706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17707 | aConnection->AssertIsOnConnectionThread(); | |||
17708 | MOZ_ASSERT(mMaybeUniqueIndexTable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeUniqueIndexTable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeUniqueIndexTable))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mMaybeUniqueIndexTable" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17708); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable" ")"); do { *((volatile int*)__null) = 17708; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17709 | ||||
17710 | AUTO_PROFILER_LABEL("CreateIndexOp::InsertDataFromObjectStore", DOM)mozilla::AutoProfilerLabel raiiObject17710( "CreateIndexOp::InsertDataFromObjectStore" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
17711 | ||||
17712 | auto& storageConnection = aConnection->MutableStorageConnection(); | |||
17713 | ||||
17714 | RefPtr<UpdateIndexDataValuesFunction> updateFunction = | |||
17715 | new UpdateIndexDataValuesFunction(this, aConnection, | |||
17716 | Transaction().GetDatabasePtr()); | |||
17717 | ||||
17718 | constexpr auto updateFunctionName = "update_index_data_values"_ns; | |||
17719 | ||||
17720 | nsresult rv = | |||
17721 | storageConnection.CreateFunction(updateFunctionName, 4, updateFunction); | |||
17722 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17722)) { | |||
17723 | return rv; | |||
17724 | } | |||
17725 | ||||
17726 | rv = InsertDataFromObjectStoreInternal(aConnection); | |||
17727 | ||||
17728 | MOZ_ALWAYS_SUCCEEDS(storageConnection.RemoveFunction(updateFunctionName))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (storageConnection.RemoveFunction(updateFunctionName))), 1))) ), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(storageConnection.RemoveFunction(updateFunctionName))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17728); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(storageConnection.RemoveFunction(updateFunctionName))" ")"); do { *((volatile int*)__null) = 17728; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
17729 | ||||
17730 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17730)) { | |||
17731 | return rv; | |||
17732 | } | |||
17733 | ||||
17734 | return NS_OK; | |||
17735 | } | |||
17736 | ||||
17737 | nsresult CreateIndexOp::InsertDataFromObjectStoreInternal( | |||
17738 | DatabaseConnection* aConnection) const { | |||
17739 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17739); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 17739; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17740 | aConnection->AssertIsOnConnectionThread(); | |||
17741 | MOZ_ASSERT(mMaybeUniqueIndexTable)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeUniqueIndexTable)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeUniqueIndexTable))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mMaybeUniqueIndexTable" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17741); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable" ")"); do { *((volatile int*)__null) = 17741; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17742 | ||||
17743 | MOZ_ASSERT(aConnection->HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection->HasStorageConnection())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aConnection->HasStorageConnection()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection->HasStorageConnection()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17743); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection->HasStorageConnection()" ")"); do { *((volatile int*)__null) = 17743; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17744 | ||||
17745 | // The parameter names are not used, parameters are bound by index only | |||
17746 | // locally in the same function. | |||
17747 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult3630 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data " "SET index_data_values = update_index_data_values " "(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns , [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult3629)::ok_type >); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult3629.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17754, mozilla::dom::quota::Severity::Error); return tryResult3629 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3630)::ok_type>); if ((__builtin_expect (!!(tryResult3630.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult3629)::ok_type>); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult3629.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17754, mozilla::dom::quota::Severity::Error); return tryResult3629.propagateErr(); }}; return Ok{}; }))" , tryResult3630.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17757, mozilla::dom::quota::Severity::Error); return tryResult3630 .propagateErr(); }} | |||
17748 | "UPDATE object_data "{auto tryResult3630 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data " "SET index_data_values = update_index_data_values " "(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns , [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult3629)::ok_type >); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult3629.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17754, mozilla::dom::quota::Severity::Error); return tryResult3629 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3630)::ok_type>); if ((__builtin_expect (!!(tryResult3630.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult3629)::ok_type>); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult3629.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17754, mozilla::dom::quota::Severity::Error); return tryResult3629.propagateErr(); }}; return Ok{}; }))" , tryResult3630.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17757, mozilla::dom::quota::Severity::Error); return tryResult3630 .propagateErr(); }} | |||
17749 | "SET index_data_values = update_index_data_values "{auto tryResult3630 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data " "SET index_data_values = update_index_data_values " "(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns , [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult3629)::ok_type >); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult3629.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17754, mozilla::dom::quota::Severity::Error); return tryResult3629 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3630)::ok_type>); if ((__builtin_expect (!!(tryResult3630.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult3629)::ok_type>); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult3629.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17754, mozilla::dom::quota::Severity::Error); return tryResult3629.propagateErr(); }}; return Ok{}; }))" , tryResult3630.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17757, mozilla::dom::quota::Severity::Error); return tryResult3630 .propagateErr(); }} | |||
17750 | "(key, index_data_values, file_ids, data) "{auto tryResult3630 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data " "SET index_data_values = update_index_data_values " "(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns , [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult3629)::ok_type >); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult3629.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17754, mozilla::dom::quota::Severity::Error); return tryResult3629 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3630)::ok_type>); if ((__builtin_expect (!!(tryResult3630.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult3629)::ok_type>); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult3629.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17754, mozilla::dom::quota::Severity::Error); return tryResult3629.propagateErr(); }}; return Ok{}; }))" , tryResult3630.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17757, mozilla::dom::quota::Severity::Error); return tryResult3630 .propagateErr(); }} | |||
17751 | "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult3630 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data " "SET index_data_values = update_index_data_values " "(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns , [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult3629)::ok_type >); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult3629.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17754, mozilla::dom::quota::Severity::Error); return tryResult3629 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3630)::ok_type>); if ((__builtin_expect (!!(tryResult3630.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult3629)::ok_type>); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult3629.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17754, mozilla::dom::quota::Severity::Error); return tryResult3629.propagateErr(); }}; return Ok{}; }))" , tryResult3630.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17757, mozilla::dom::quota::Severity::Error); return tryResult3630 .propagateErr(); }} | |||
17752 | [objectStoredId ={auto tryResult3630 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data " "SET index_data_values = update_index_data_values " "(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns , [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult3629)::ok_type >); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult3629.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17754, mozilla::dom::quota::Severity::Error); return tryResult3629 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3630)::ok_type>); if ((__builtin_expect (!!(tryResult3630.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult3629)::ok_type>); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult3629.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17754, mozilla::dom::quota::Severity::Error); return tryResult3629.propagateErr(); }}; return Ok{}; }))" , tryResult3630.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17757, mozilla::dom::quota::Severity::Error); return tryResult3630 .propagateErr(); }} | |||
17753 | mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult3630 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data " "SET index_data_values = update_index_data_values " "(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns , [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult3629)::ok_type >); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult3629.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17754, mozilla::dom::quota::Severity::Error); return tryResult3629 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3630)::ok_type>); if ((__builtin_expect (!!(tryResult3630.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult3629)::ok_type>); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult3629.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17754, mozilla::dom::quota::Severity::Error); return tryResult3629.propagateErr(); }}; return Ok{}; }))" , tryResult3630.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17757, mozilla::dom::quota::Severity::Error); return tryResult3630 .propagateErr(); }} | |||
17754 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, objectStoredId)));{auto tryResult3630 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data " "SET index_data_values = update_index_data_values " "(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns , [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult3629)::ok_type >); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult3629.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17754, mozilla::dom::quota::Severity::Error); return tryResult3629 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3630)::ok_type>); if ((__builtin_expect (!!(tryResult3630.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult3629)::ok_type>); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult3629.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17754, mozilla::dom::quota::Severity::Error); return tryResult3629.propagateErr(); }}; return Ok{}; }))" , tryResult3630.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17757, mozilla::dom::quota::Severity::Error); return tryResult3630 .propagateErr(); }} | |||
17755 | ||||
17756 | return Ok{};{auto tryResult3630 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data " "SET index_data_values = update_index_data_values " "(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns , [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult3629)::ok_type >); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult3629.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17754, mozilla::dom::quota::Severity::Error); return tryResult3629 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3630)::ok_type>); if ((__builtin_expect (!!(tryResult3630.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult3629)::ok_type>); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult3629.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17754, mozilla::dom::quota::Severity::Error); return tryResult3629.propagateErr(); }}; return Ok{}; }))" , tryResult3630.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17757, mozilla::dom::quota::Severity::Error); return tryResult3630 .propagateErr(); }} | |||
17757 | }))){auto tryResult3630 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_data " "SET index_data_values = update_index_data_values " "(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns , [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult3629)::ok_type >); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult3629.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17754, mozilla::dom::quota::Severity::Error); return tryResult3629 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3630)::ok_type>); if ((__builtin_expect (!!(tryResult3630.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3629 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult3629)::ok_type>); if ((__builtin_expect(!!(tryResult3629.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult3629.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17754, mozilla::dom::quota::Severity::Error); return tryResult3629.propagateErr(); }}; return Ok{}; }))" , tryResult3630.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17757, mozilla::dom::quota::Severity::Error); return tryResult3630 .propagateErr(); }}; | |||
17758 | ||||
17759 | return NS_OK; | |||
17760 | } | |||
17761 | ||||
17762 | bool CreateIndexOp::Init(TransactionBase& aTransaction) { | |||
17763 | AssertIsOnBackgroundThread(); | |||
17764 | MOZ_ASSERT(mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mObjectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17764); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")"); do { *((volatile int*)__null) = 17764; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17765 | MOZ_ASSERT(mMaybeUniqueIndexTable.isNothing())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMaybeUniqueIndexTable.isNothing())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMaybeUniqueIndexTable.isNothing ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMaybeUniqueIndexTable.isNothing()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17765); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable.isNothing()" ")"); do { *((volatile int*)__null) = 17765; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17766 | ||||
17767 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | |||
17768 | aTransaction.GetMetadataForObjectStoreId(mObjectStoreId); | |||
17769 | MOZ_ASSERT(objectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(objectStoreMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(objectStoreMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreMetadata" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17769); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata" ")"); do { *((volatile int*)__null) = 17769; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17770 | ||||
17771 | const uint32_t indexCount = objectStoreMetadata->mIndexes.Count(); | |||
17772 | if (!indexCount) { | |||
17773 | return true; | |||
17774 | } | |||
17775 | ||||
17776 | auto uniqueIndexTable = UniqueIndexTable{indexCount}; | |||
17777 | ||||
17778 | for (const auto& value : objectStoreMetadata->mIndexes.Values()) { | |||
17779 | MOZ_ASSERT(!uniqueIndexTable.Contains(value->mCommonMetadata.id()))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!uniqueIndexTable.Contains(value->mCommonMetadata .id()))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!uniqueIndexTable.Contains(value->mCommonMetadata .id())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!uniqueIndexTable.Contains(value->mCommonMetadata.id())" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17779); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!uniqueIndexTable.Contains(value->mCommonMetadata.id())" ")"); do { *((volatile int*)__null) = 17779; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17780 | ||||
17781 | if (NS_WARN_IF(!uniqueIndexTable.InsertOrUpdate(NS_warn_if_impl(!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata .id(), value->mCommonMetadata.unique(), fallible), "!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata.id(), value->mCommonMetadata.unique(), fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17783) | |||
17782 | value->mCommonMetadata.id(), value->mCommonMetadata.unique(),NS_warn_if_impl(!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata .id(), value->mCommonMetadata.unique(), fallible), "!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata.id(), value->mCommonMetadata.unique(), fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17783) | |||
17783 | fallible))NS_warn_if_impl(!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata .id(), value->mCommonMetadata.unique(), fallible), "!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata.id(), value->mCommonMetadata.unique(), fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17783)) { | |||
17784 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17784, "UnknownErr"); | |||
17785 | NS_WARNING("out of memory")NS_DebugBreak(NS_DEBUG_WARNING, "out of memory", nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17785); | |||
17786 | return false; | |||
17787 | } | |||
17788 | } | |||
17789 | ||||
17790 | uniqueIndexTable.MarkImmutable(); | |||
17791 | ||||
17792 | mMaybeUniqueIndexTable.emplace(std::move(uniqueIndexTable)); | |||
17793 | ||||
17794 | return true; | |||
17795 | } | |||
17796 | ||||
17797 | nsresult CreateIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) { | |||
17798 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 17798; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17799 | aConnection->AssertIsOnConnectionThread(); | |||
17800 | ||||
17801 | AUTO_PROFILER_LABEL("CreateIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17801( "CreateIndexOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
17802 | ||||
17803 | #ifdef DEBUG1 | |||
17804 | { | |||
17805 | // Make sure that we're not creating an index with the same name and object | |||
17806 | // store as another that already exists. This should be impossible because | |||
17807 | // we should have thrown an error long before now... | |||
17808 | // The parameter names are not used, parameters are bound by index only | |||
17809 | // locally in the same function. | |||
17810 | QM_TRY_INSPECT(auto tryResult3633 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect (!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult3631 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17819, mozilla::dom::quota::Severity::Error); return tryResult3631 .propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect (!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult3632.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17821, mozilla::dom::quota::Severity::Error); return tryResult3632 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3633.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3633.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17825; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3633.inspect(); | |||
17811 | const bool& hasResult,auto tryResult3633 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect (!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult3631 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17819, mozilla::dom::quota::Severity::Error); return tryResult3631 .propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect (!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult3632.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17821, mozilla::dom::quota::Severity::Error); return tryResult3632 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3633.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3633.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17825; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3633.inspect(); | |||
17812 | aConnectionauto tryResult3633 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect (!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult3631 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17819, mozilla::dom::quota::Severity::Error); return tryResult3631 .propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect (!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult3632.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17821, mozilla::dom::quota::Severity::Error); return tryResult3632 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3633.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3633.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17825; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3633.inspect(); | |||
17813 | ->BorrowAndExecuteSingleStepStatement(auto tryResult3633 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect (!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult3631 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17819, mozilla::dom::quota::Severity::Error); return tryResult3631 .propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect (!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult3632.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17821, mozilla::dom::quota::Severity::Error); return tryResult3632 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3633.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3633.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17825; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3633.inspect(); | |||
17814 | "SELECT name "auto tryResult3633 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect (!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult3631 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17819, mozilla::dom::quota::Severity::Error); return tryResult3631 .propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect (!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult3632.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17821, mozilla::dom::quota::Severity::Error); return tryResult3632 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3633.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3633.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17825; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3633.inspect(); | |||
17815 | "FROM object_store_index "auto tryResult3633 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect (!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult3631 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17819, mozilla::dom::quota::Severity::Error); return tryResult3631 .propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect (!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult3632.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17821, mozilla::dom::quota::Severity::Error); return tryResult3632 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3633.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3633.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17825; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3633.inspect(); | |||
17816 | "WHERE object_store_id = :object_store_id AND name = :name;"_ns,auto tryResult3633 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect (!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult3631 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17819, mozilla::dom::quota::Severity::Error); return tryResult3631 .propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect (!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult3632.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17821, mozilla::dom::quota::Severity::Error); return tryResult3632 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3633.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3633.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17825; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3633.inspect(); | |||
17817 | [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult3633 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect (!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult3631 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17819, mozilla::dom::quota::Severity::Error); return tryResult3631 .propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect (!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult3632.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17821, mozilla::dom::quota::Severity::Error); return tryResult3632 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3633.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3633.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17825; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3633.inspect(); | |||
17818 | QM_TRY(MOZ_TO_RESULT(auto tryResult3633 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect (!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult3631 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17819, mozilla::dom::quota::Severity::Error); return tryResult3631 .propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect (!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult3632.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17821, mozilla::dom::quota::Severity::Error); return tryResult3632 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3633.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3633.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17825; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3633.inspect(); | |||
17819 | stmt.BindInt64ByIndex(0, self.mObjectStoreId)));auto tryResult3633 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect (!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult3631 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17819, mozilla::dom::quota::Severity::Error); return tryResult3631 .propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect (!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult3632.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17821, mozilla::dom::quota::Severity::Error); return tryResult3632 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3633.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3633.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17825; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3633.inspect(); | |||
17820 | QM_TRY(MOZ_TO_RESULT(auto tryResult3633 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect (!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult3631 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17819, mozilla::dom::quota::Severity::Error); return tryResult3631 .propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect (!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult3632.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17821, mozilla::dom::quota::Severity::Error); return tryResult3632 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3633.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3633.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17825; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3633.inspect(); | |||
17821 | stmt.BindStringByIndex(1, self.mMetadata.name())));auto tryResult3633 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect (!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult3631 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17819, mozilla::dom::quota::Severity::Error); return tryResult3631 .propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect (!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult3632.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17821, mozilla::dom::quota::Severity::Error); return tryResult3632 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3633.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3633.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17825; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3633.inspect(); | |||
17822 | return Ok{};auto tryResult3633 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect (!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult3631 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17819, mozilla::dom::quota::Severity::Error); return tryResult3631 .propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect (!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult3632.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17821, mozilla::dom::quota::Severity::Error); return tryResult3632 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3633.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3633.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17825; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3633.inspect(); | |||
17823 | })auto tryResult3633 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect (!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult3631 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17819, mozilla::dom::quota::Severity::Error); return tryResult3631 .propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect (!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult3632.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17821, mozilla::dom::quota::Severity::Error); return tryResult3632 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3633.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3633.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17825; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3633.inspect(); | |||
17824 | .map(IsSome),auto tryResult3633 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect (!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult3631 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17819, mozilla::dom::quota::Severity::Error); return tryResult3631 .propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect (!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult3632.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17821, mozilla::dom::quota::Severity::Error); return tryResult3632 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3633.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3633.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17825; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3633.inspect(); | |||
17825 | QM_ASSERT_UNREACHABLE)auto tryResult3633 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect (!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult3631 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17819, mozilla::dom::quota::Severity::Error); return tryResult3631 .propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect (!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult3632.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17821, mozilla::dom::quota::Severity::Error); return tryResult3632 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3633.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3633.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3631 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3631)::ok_type>); if ((__builtin_expect(!!(tryResult3631.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult3631.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17819, mozilla::dom::quota::Severity::Error); return tryResult3631.propagateErr(); }}; {auto tryResult3632 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3632)::ok_type>); if ((__builtin_expect(!!(tryResult3632.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult3632.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17821, mozilla::dom::quota::Severity::Error); return tryResult3632.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17825); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 17825; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3633.inspect();; | |||
17826 | ||||
17827 | MOZ_ASSERT(!hasResult)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!hasResult)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!hasResult))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!hasResult", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17827); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult" ")"); do { *((volatile int*)__null) = 17827; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17828 | } | |||
17829 | #endif | |||
17830 | ||||
17831 | DatabaseConnection::AutoSavepoint autoSave; | |||
17832 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult3634 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3634)::ok_type>); if ((__builtin_expect(!!(tryResult3634 .isErr()), 0))) { auto tryTempError = tryResult3634.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17837, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17833 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult3634 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3634)::ok_type>); if ((__builtin_expect(!!(tryResult3634 .isErr()), 0))) { auto tryTempError = tryResult3634.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17837, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17834 | ,{auto tryResult3634 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3634)::ok_type>); if ((__builtin_expect(!!(tryResult3634 .isErr()), 0))) { auto tryTempError = tryResult3634.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17837, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17835 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult3634 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3634)::ok_type>); if ((__builtin_expect(!!(tryResult3634 .isErr()), 0))) { auto tryTempError = tryResult3634.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17837, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17836 | #endif{auto tryResult3634 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3634)::ok_type>); if ((__builtin_expect(!!(tryResult3634 .isErr()), 0))) { auto tryTempError = tryResult3634.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17837, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
17837 | ){auto tryResult3634 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3634)::ok_type>); if ((__builtin_expect(!!(tryResult3634 .isErr()), 0))) { auto tryTempError = tryResult3634.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17837, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | |||
17838 | ||||
17839 | // The parameter names are not used, parameters are bound by index only | |||
17840 | // locally in the same function. | |||
17841 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17842 | "INSERT INTO object_store_index (id, name, key_path, unique_index, "{auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17843 | "multientry, object_store_id, locale, "{auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17844 | "is_auto_locale) "{auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17845 | "VALUES (:id, :name, :key_path, :unique, :multientry, "{auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17846 | ":object_store_id, :locale, :is_auto_locale)"_ns,{auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17847 | [&metadata = mMetadata, objectStoreId = mObjectStoreId]({auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17848 | mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17849 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, metadata.id())));{auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17850 | ||||
17851 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(1, metadata.name())));{auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17852 | ||||
17853 | QM_TRY(MOZ_TO_RESULT({auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17854 | stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString())));{auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17855 | ||||
17856 | QM_TRY({auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17857 | MOZ_TO_RESULT(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0)));{auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17858 | ||||
17859 | QM_TRY(MOZ_TO_RESULT({auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17860 | stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0)));{auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17861 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(5, objectStoreId)));{auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17862 | ||||
17863 | QM_TRY(MOZ_TO_RESULT({auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17864 | metadata.locale().IsEmpty(){auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17865 | ? stmt.BindNullByIndex(6){auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17866 | : stmt.BindUTF8StringByIndex(6, metadata.locale())));{auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17867 | ||||
17868 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt32ByIndex(7, metadata.autoLocale())));{auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17869 | ||||
17870 | return Ok{};{auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }} | |||
17871 | }))){auto tryResult3643 = (ToResult(aConnection->ExecuteCachedStatement ( "INSERT INTO object_store_index (id, name, key_path, unique_index, " "multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, " ":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement & stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult3635)::ok_type >); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult3635.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17849, mozilla::dom::quota::Severity::Error); return tryResult3635 .propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect (!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult3636 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17851, mozilla::dom::quota::Severity::Error); return tryResult3636 .propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult3637)::ok_type> ); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult3637.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17854, mozilla::dom::quota::Severity::Error); return tryResult3637 .propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect (!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult3638.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17857, mozilla::dom::quota::Severity::Error); return tryResult3638 .propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect (!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult3639.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17860, mozilla::dom::quota::Severity::Error); return tryResult3639 .propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect (!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult3640 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17861, mozilla::dom::quota::Severity::Error); return tryResult3640 .propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect (!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult3641.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17866, mozilla::dom::quota::Severity::Error); return tryResult3641 .propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect (!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult3642.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17868, mozilla::dom::quota::Severity::Error); return tryResult3642 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3643)::ok_type>); if ((__builtin_expect (!!(tryResult3643.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3635 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3635)::ok_type>); if ((__builtin_expect(!!(tryResult3635.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult3635.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17849, mozilla::dom::quota::Severity::Error); return tryResult3635.propagateErr(); }}; {auto tryResult3636 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult3636)::ok_type>); if ((__builtin_expect(!!(tryResult3636.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult3636.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17851, mozilla::dom::quota::Severity::Error); return tryResult3636.propagateErr(); }}; {auto tryResult3637 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult3637)::ok_type>); if ((__builtin_expect(!!(tryResult3637.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult3637.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17854, mozilla::dom::quota::Severity::Error); return tryResult3637.propagateErr(); }}; {auto tryResult3638 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3638)::ok_type>); if ((__builtin_expect(!!(tryResult3638.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult3638.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17857, mozilla::dom::quota::Severity::Error); return tryResult3638.propagateErr(); }}; {auto tryResult3639 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult3639)::ok_type>); if ((__builtin_expect(!!(tryResult3639.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult3639.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17860, mozilla::dom::quota::Severity::Error); return tryResult3639.propagateErr(); }}; {auto tryResult3640 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3640)::ok_type>); if ((__builtin_expect(!!(tryResult3640.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult3640.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult3640.propagateErr(); }}; {auto tryResult3641 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult3641)::ok_type>); if ((__builtin_expect(!!(tryResult3641.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult3641.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17866, mozilla::dom::quota::Severity::Error); return tryResult3641.propagateErr(); }}; {auto tryResult3642 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult3642)::ok_type>); if ((__builtin_expect(!!(tryResult3642.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult3642.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult3642.propagateErr(); }}; return Ok{}; }))" , tryResult3643.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17871, mozilla::dom::quota::Severity::Error); return tryResult3643 .propagateErr(); }}; | |||
17872 | ||||
17873 | #ifdef DEBUG1 | |||
17874 | { | |||
17875 | int64_t id; | |||
17876 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetLastInsertRowID (&id))), 1)))), 1))) { } else { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(false)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17877); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" ")"); do { *((volatile int*)__null) = 17877; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
17877 | aConnection->MutableStorageConnection().GetLastInsertRowID(&id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetLastInsertRowID (&id))), 1)))), 1))) { } else { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(false)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17877); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" ")"); do { *((volatile int*)__null) = 17877; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
17878 | MOZ_ASSERT(mMetadata.id() == id)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata.id() == id)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata.id() == id))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata.id() == id" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17878); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata.id() == id" ")"); do { *((volatile int*)__null) = 17878; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17879 | } | |||
17880 | #endif | |||
17881 | ||||
17882 | QM_TRY(MOZ_TO_RESULT(InsertDataFromObjectStore(aConnection))){auto tryResult3644 = (ToResult(InsertDataFromObjectStore(aConnection ))); static_assert(std::is_empty_v<typename decltype(tryResult3644 )::ok_type>); if ((__builtin_expect(!!(tryResult3644.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(InsertDataFromObjectStore(aConnection))" , tryResult3644.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17882, mozilla::dom::quota::Severity::Error); return tryResult3644 .propagateErr(); }}; | |||
17883 | ||||
17884 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult3645 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult3645)::ok_type >); if ((__builtin_expect(!!(tryResult3645.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult3645.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17884, mozilla::dom::quota::Severity::Error); return tryResult3645 .propagateErr(); }}; | |||
17885 | ||||
17886 | return NS_OK; | |||
17887 | } | |||
17888 | ||||
17889 | NS_IMPL_ISUPPORTS(CreateIndexOp::UpdateIndexDataValuesFunction,MozExternalRefCountType CreateIndexOp::UpdateIndexDataValuesFunction ::AddRef(void) { static_assert(!std::is_destructible_v<CreateIndexOp ::UpdateIndexDataValuesFunction>, "Reference-counted class " "CreateIndexOp::UpdateIndexDataValuesFunction" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17890); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 17890; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("CreateIndexOp::UpdateIndexDataValuesFunction" != nullptr)>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!("CreateIndexOp::UpdateIndexDataValuesFunction" != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" " (" "Must specify a name" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17890); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" ") (" "Must specify a name" ")"); do { *((volatile int*)__null ) = 17890; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("CreateIndexOp::UpdateIndexDataValuesFunction" " not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef ((this), (count), ("CreateIndexOp::UpdateIndexDataValuesFunction" ), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType CreateIndexOp::UpdateIndexDataValuesFunction::Release(void) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17890); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 17890 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("CreateIndexOp::UpdateIndexDataValuesFunction" != nullptr)>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!("CreateIndexOp::UpdateIndexDataValuesFunction" != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" " (" "Must specify a name" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17890); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" ") (" "Must specify a name" ")"); do { *((volatile int*)__null ) = 17890; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("CreateIndexOp::UpdateIndexDataValuesFunction" " not thread-safe"); const char* const nametmp = "CreateIndexOp::UpdateIndexDataValuesFunction" ; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), ( nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return 0; } return count; } nsresult CreateIndexOp::UpdateIndexDataValuesFunction ::QueryInterface(const nsIID& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION , "QueryInterface requires a non-NULL destination!", "aInstancePtr" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17890); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE" ); static const QITableEntry table[] = { {&mozilla::detail ::kImplementedIID<CreateIndexOp::UpdateIndexDataValuesFunction , mozIStorageFunction>, int32_t( reinterpret_cast<char* >(static_cast<mozIStorageFunction*>((CreateIndexOp:: UpdateIndexDataValuesFunction*)0x1000)) - reinterpret_cast< char*>((CreateIndexOp::UpdateIndexDataValuesFunction*)0x1000 ))}, {&mozilla::detail::kImplementedIID<CreateIndexOp:: UpdateIndexDataValuesFunction, nsISupports>, int32_t(reinterpret_cast <char*>(static_cast<nsISupports*>( static_cast< mozIStorageFunction*>((CreateIndexOp::UpdateIndexDataValuesFunction *)0x1000))) - reinterpret_cast<char*>((CreateIndexOp::UpdateIndexDataValuesFunction *)0x1000))}, { nullptr, 0 } } ; static_assert((sizeof(table) / sizeof(table[0])) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID, aInstancePtr , table); return rv; } | |||
17890 | mozIStorageFunction)MozExternalRefCountType CreateIndexOp::UpdateIndexDataValuesFunction ::AddRef(void) { static_assert(!std::is_destructible_v<CreateIndexOp ::UpdateIndexDataValuesFunction>, "Reference-counted class " "CreateIndexOp::UpdateIndexDataValuesFunction" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17890); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 17890; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("CreateIndexOp::UpdateIndexDataValuesFunction" != nullptr)>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!("CreateIndexOp::UpdateIndexDataValuesFunction" != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" " (" "Must specify a name" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17890); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" ") (" "Must specify a name" ")"); do { *((volatile int*)__null ) = 17890; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("CreateIndexOp::UpdateIndexDataValuesFunction" " not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef ((this), (count), ("CreateIndexOp::UpdateIndexDataValuesFunction" ), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType CreateIndexOp::UpdateIndexDataValuesFunction::Release(void) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17890); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 17890 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("CreateIndexOp::UpdateIndexDataValuesFunction" != nullptr)>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!("CreateIndexOp::UpdateIndexDataValuesFunction" != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" " (" "Must specify a name" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17890); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" ") (" "Must specify a name" ")"); do { *((volatile int*)__null ) = 17890; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("CreateIndexOp::UpdateIndexDataValuesFunction" " not thread-safe"); const char* const nametmp = "CreateIndexOp::UpdateIndexDataValuesFunction" ; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), ( nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return 0; } return count; } nsresult CreateIndexOp::UpdateIndexDataValuesFunction ::QueryInterface(const nsIID& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION , "QueryInterface requires a non-NULL destination!", "aInstancePtr" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17890); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE" ); static const QITableEntry table[] = { {&mozilla::detail ::kImplementedIID<CreateIndexOp::UpdateIndexDataValuesFunction , mozIStorageFunction>, int32_t( reinterpret_cast<char* >(static_cast<mozIStorageFunction*>((CreateIndexOp:: UpdateIndexDataValuesFunction*)0x1000)) - reinterpret_cast< char*>((CreateIndexOp::UpdateIndexDataValuesFunction*)0x1000 ))}, {&mozilla::detail::kImplementedIID<CreateIndexOp:: UpdateIndexDataValuesFunction, nsISupports>, int32_t(reinterpret_cast <char*>(static_cast<nsISupports*>( static_cast< mozIStorageFunction*>((CreateIndexOp::UpdateIndexDataValuesFunction *)0x1000))) - reinterpret_cast<char*>((CreateIndexOp::UpdateIndexDataValuesFunction *)0x1000))}, { nullptr, 0 } } ; static_assert((sizeof(table) / sizeof(table[0])) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID, aInstancePtr , table); return rv; }; | |||
17891 | ||||
17892 | NS_IMETHODIMPnsresult | |||
17893 | CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall( | |||
17894 | mozIStorageValueArray* aValues, nsIVariant** _retval) { | |||
17895 | MOZ_ASSERT(aValues)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aValues)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aValues))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aValues", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17895); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")" ); do { *((volatile int*)__null) = 17895; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
17896 | MOZ_ASSERT(_retval)do { static_assert( mozilla::detail::AssertionConditionType< decltype(_retval)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(_retval))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("_retval", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17896); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")" ); do { *((volatile int*)__null) = 17896; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
17897 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17897); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { *((volatile int*)__null) = 17897; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17898 | mConnection->AssertIsOnConnectionThread(); | |||
17899 | MOZ_ASSERT(mOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOp)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(mOp))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mOp", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17899); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp" ")"); do { *((volatile int*)__null) = 17899; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
17900 | MOZ_ASSERT(mOp->mFileManager)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOp->mFileManager)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOp->mFileManager))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mOp->mFileManager" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17900); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp->mFileManager" ")"); do { *((volatile int*)__null) = 17900; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17901 | ||||
17902 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject17903( "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall" , nullptr, JS::ProfilingCategoryPair::DOM) | |||
17903 | "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall", DOM)mozilla::AutoProfilerLabel raiiObject17903( "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
17904 | ||||
17905 | #ifdef DEBUG1 | |||
17906 | { | |||
17907 | uint32_t argCount; | |||
17908 | MOZ_ALWAYS_SUCCEEDS(aValues->GetNumEntries(&argCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aValues->GetNumEntries(&argCount))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aValues->GetNumEntries(&argCount))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17908); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aValues->GetNumEntries(&argCount))" ")"); do { *((volatile int*)__null) = 17908; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
17909 | MOZ_ASSERT(argCount == 4)do { static_assert( mozilla::detail::AssertionConditionType< decltype(argCount == 4)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(argCount == 4))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("argCount == 4", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17909); AnnotateMozCrashReason("MOZ_ASSERT" "(" "argCount == 4" ")"); do { *((volatile int*)__null) = 17909; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); // key, index_data_values, file_ids, data | |||
17910 | ||||
17911 | int32_t valueType; | |||
17912 | MOZ_ALWAYS_SUCCEEDS(aValues->GetTypeOfIndex(0, &valueType))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aValues->GetTypeOfIndex(0, &valueType))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aValues->GetTypeOfIndex(0, &valueType))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17912); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aValues->GetTypeOfIndex(0, &valueType))" ")"); do { *((volatile int*)__null) = 17912; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
17913 | MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17913); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { *((volatile int*)__null) = 17913; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17914 | ||||
17915 | MOZ_ALWAYS_SUCCEEDS(aValues->GetTypeOfIndex(1, &valueType))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aValues->GetTypeOfIndex(1, &valueType))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aValues->GetTypeOfIndex(1, &valueType))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17915); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aValues->GetTypeOfIndex(1, &valueType))" ")"); do { *((volatile int*)__null) = 17915; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
17916 | MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17917); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { *((volatile int*)__null) = 17917; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
17917 | valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17917); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { *((volatile int*)__null) = 17917; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17918 | ||||
17919 | MOZ_ALWAYS_SUCCEEDS(aValues->GetTypeOfIndex(2, &valueType))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aValues->GetTypeOfIndex(2, &valueType))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aValues->GetTypeOfIndex(2, &valueType))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17919); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aValues->GetTypeOfIndex(2, &valueType))" ")"); do { *((volatile int*)__null) = 17919; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
17920 | MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17921); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 17921; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
17921 | valueType == mozIStorageValueArray::VALUE_TYPE_TEXT)do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17921); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT" ")"); do { *((volatile int*)__null) = 17921; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17922 | ||||
17923 | MOZ_ALWAYS_SUCCEEDS(aValues->GetTypeOfIndex(3, &valueType))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aValues->GetTypeOfIndex(3, &valueType))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aValues->GetTypeOfIndex(3, &valueType))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17923); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aValues->GetTypeOfIndex(3, &valueType))" ")"); do { *((volatile int*)__null) = 17923; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
17924 | MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17925); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER" ")"); do { *((volatile int*)__null) = 17925; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
17925 | valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER)do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER)>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17925); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER" ")"); do { *((volatile int*)__null) = 17925; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17926 | } | |||
17927 | #endif | |||
17928 | ||||
17929 | QM_TRY_UNWRAP(auto cloneInfo, GetStructuredCloneReadInfoFromValueArray(auto tryResult3646 = (GetStructuredCloneReadInfoFromValueArray ( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect (!!(tryResult3646.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)" , tryResult3646.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17932, mozilla::dom::quota::Severity::Error); return tryResult3646 .propagateErr(); } auto cloneInfo = tryResult3646.unwrap(); | |||
17930 | aValues,auto tryResult3646 = (GetStructuredCloneReadInfoFromValueArray ( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect (!!(tryResult3646.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)" , tryResult3646.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17932, mozilla::dom::quota::Severity::Error); return tryResult3646 .propagateErr(); } auto cloneInfo = tryResult3646.unwrap(); | |||
17931 | /* aDataIndex */ 3,auto tryResult3646 = (GetStructuredCloneReadInfoFromValueArray ( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect (!!(tryResult3646.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)" , tryResult3646.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17932, mozilla::dom::quota::Severity::Error); return tryResult3646 .propagateErr(); } auto cloneInfo = tryResult3646.unwrap(); | |||
17932 | /* aFileIdsIndex */ 2, *mOp->mFileManager))auto tryResult3646 = (GetStructuredCloneReadInfoFromValueArray ( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect (!!(tryResult3646.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)" , tryResult3646.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17932, mozilla::dom::quota::Severity::Error); return tryResult3646 .propagateErr(); } auto cloneInfo = tryResult3646.unwrap();; | |||
17933 | ||||
17934 | const IndexMetadata& metadata = mOp->mMetadata; | |||
17935 | const IndexOrObjectStoreId& objectStoreId = mOp->mObjectStoreId; | |||
17936 | ||||
17937 | // XXX does this really need a non-const cloneInfo? | |||
17938 | QM_TRY_INSPECT(const auto& updateInfos,auto tryResult3647 = (DeserializeIndexValueToUpdateInfos( metadata .id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale (), cloneInfo)); if ((__builtin_expect(!!(tryResult3647.isErr ()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)" , tryResult3647.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17941, mozilla::dom::quota::Severity::Error); return tryResult3647 .propagateErr(); } const auto& updateInfos = tryResult3647 .inspect(); | |||
17939 | DeserializeIndexValueToUpdateInfos(auto tryResult3647 = (DeserializeIndexValueToUpdateInfos( metadata .id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale (), cloneInfo)); if ((__builtin_expect(!!(tryResult3647.isErr ()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)" , tryResult3647.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17941, mozilla::dom::quota::Severity::Error); return tryResult3647 .propagateErr(); } const auto& updateInfos = tryResult3647 .inspect(); | |||
17940 | metadata.id(), metadata.keyPath(), metadata.multiEntry(),auto tryResult3647 = (DeserializeIndexValueToUpdateInfos( metadata .id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale (), cloneInfo)); if ((__builtin_expect(!!(tryResult3647.isErr ()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)" , tryResult3647.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17941, mozilla::dom::quota::Severity::Error); return tryResult3647 .propagateErr(); } const auto& updateInfos = tryResult3647 .inspect(); | |||
17941 | metadata.locale(), cloneInfo))auto tryResult3647 = (DeserializeIndexValueToUpdateInfos( metadata .id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale (), cloneInfo)); if ((__builtin_expect(!!(tryResult3647.isErr ()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)" , tryResult3647.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17941, mozilla::dom::quota::Severity::Error); return tryResult3647 .propagateErr(); } const auto& updateInfos = tryResult3647 .inspect();; | |||
17942 | ||||
17943 | if (updateInfos.IsEmpty()) { | |||
17944 | // XXX See if we can do this without copying... | |||
17945 | ||||
17946 | nsCOMPtr<nsIVariant> unmodifiedValue; | |||
17947 | ||||
17948 | // No changes needed, just return the original value. | |||
17949 | QM_TRY_INSPECT(const int32_t& valueType,auto tryResult3648 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult3648 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)" , tryResult3648.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17950, mozilla::dom::quota::Severity::Error); return tryResult3648 .propagateErr(); } const int32_t& valueType = tryResult3648 .inspect(); | |||
17950 | MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 1))auto tryResult3648 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult3648 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)" , tryResult3648.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17950, mozilla::dom::quota::Severity::Error); return tryResult3648 .propagateErr(); } const int32_t& valueType = tryResult3648 .inspect();; | |||
17951 | ||||
17952 | MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17953); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { *((volatile int*)__null) = 17953; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
17953 | valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17953); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { *((volatile int*)__null) = 17953; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17954 | ||||
17955 | if (valueType == mozIStorageValueArray::VALUE_TYPE_NULL) { | |||
17956 | unmodifiedValue = new storage::NullVariant(); | |||
17957 | unmodifiedValue.forget(_retval); | |||
17958 | return NS_OK; | |||
17959 | } | |||
17960 | ||||
17961 | MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)do { static_assert( mozilla::detail::AssertionConditionType< decltype(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { *((volatile int*)__null) = 17961; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
17962 | ||||
17963 | const uint8_t* blobData; | |||
17964 | uint32_t blobDataLength; | |||
17965 | QM_TRY({auto tryResult3649 = (ToResult(aValues->GetSharedBlob(1, & blobDataLength, &blobData))); static_assert(std::is_empty_v <typename decltype(tryResult3649)::ok_type>); if ((__builtin_expect (!!(tryResult3649.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aValues->GetSharedBlob(1, &blobDataLength, &blobData))" , tryResult3649.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17966, mozilla::dom::quota::Severity::Error); return tryResult3649 .propagateErr(); }} | |||
17966 | MOZ_TO_RESULT(aValues->GetSharedBlob(1, &blobDataLength, &blobData))){auto tryResult3649 = (ToResult(aValues->GetSharedBlob(1, & blobDataLength, &blobData))); static_assert(std::is_empty_v <typename decltype(tryResult3649)::ok_type>); if ((__builtin_expect (!!(tryResult3649.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aValues->GetSharedBlob(1, &blobDataLength, &blobData))" , tryResult3649.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17966, mozilla::dom::quota::Severity::Error); return tryResult3649 .propagateErr(); }}; | |||
17967 | ||||
17968 | const std::pair<uint8_t*, int> copiedBlobDataPair( | |||
17969 | static_cast<uint8_t*>(malloc(blobDataLength)), blobDataLength); | |||
17970 | ||||
17971 | if (!copiedBlobDataPair.first) { | |||
17972 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17972, "UnknownErr"); | |||
17973 | return NS_ERROR_OUT_OF_MEMORY; | |||
17974 | } | |||
17975 | ||||
17976 | memcpy(copiedBlobDataPair.first, blobData, blobDataLength); | |||
17977 | ||||
17978 | unmodifiedValue = new storage::AdoptedBlobVariant(copiedBlobDataPair); | |||
17979 | unmodifiedValue.forget(_retval); | |||
17980 | ||||
17981 | return NS_OK; | |||
17982 | } | |||
17983 | ||||
17984 | Key key; | |||
17985 | QM_TRY(MOZ_TO_RESULT(key.SetFromValueArray(aValues, 0))){auto tryResult3650 = (ToResult(key.SetFromValueArray(aValues , 0))); static_assert(std::is_empty_v<typename decltype(tryResult3650 )::ok_type>); if ((__builtin_expect(!!(tryResult3650.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(key.SetFromValueArray(aValues, 0))" , tryResult3650.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17985, mozilla::dom::quota::Severity::Error); return tryResult3650 .propagateErr(); }}; | |||
17986 | ||||
17987 | QM_TRY_UNWRAP(auto indexValues, ReadCompressedIndexDataValues(*aValues, 1))auto tryResult3651 = (ReadCompressedIndexDataValues(*aValues, 1)); if ((__builtin_expect(!!(tryResult3651.isErr()), 0))) { mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(*aValues, 1)" , tryResult3651.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17987, mozilla::dom::quota::Severity::Error); return tryResult3651 .propagateErr(); } auto indexValues = tryResult3651.unwrap();; | |||
17988 | ||||
17989 | const bool hadPreviousIndexValues = !indexValues.IsEmpty(); | |||
17990 | ||||
17991 | const uint32_t updateInfoCount = updateInfos.Length(); | |||
17992 | ||||
17993 | QM_TRY(OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount,{auto tryResult3652 = (OkIf(indexValues.SetCapacity(indexValues .Length() + updateInfoCount, fallible))); static_assert(std:: is_empty_v<typename decltype(tryResult3652)::ok_type>); if ((__builtin_expect(!!(tryResult3652.isErr()), 0))) { auto tryTempError = tryResult3652.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17995, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17995, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))" , tryTempError, NS_ERROR_OUT_OF_MEMORY); }} | |||
17994 | fallible)),{auto tryResult3652 = (OkIf(indexValues.SetCapacity(indexValues .Length() + updateInfoCount, fallible))); static_assert(std:: is_empty_v<typename decltype(tryResult3652)::ok_type>); if ((__builtin_expect(!!(tryResult3652.isErr()), 0))) { auto tryTempError = tryResult3652.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17995, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17995, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))" , tryTempError, NS_ERROR_OUT_OF_MEMORY); }} | |||
17995 | NS_ERROR_OUT_OF_MEMORY, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult3652 = (OkIf(indexValues.SetCapacity(indexValues .Length() + updateInfoCount, fallible))); static_assert(std:: is_empty_v<typename decltype(tryResult3652)::ok_type>); if ((__builtin_expect(!!(tryResult3652.isErr()), 0))) { auto tryTempError = tryResult3652.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17995, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 17995, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))" , tryTempError, NS_ERROR_OUT_OF_MEMORY); }}; | |||
17996 | ||||
17997 | // First construct the full list to update the index_data_values row. | |||
17998 | for (const IndexUpdateInfo& info : updateInfos) { | |||
17999 | MOZ_ALWAYS_TRUE(indexValues.InsertElementSorted(do { if ((__builtin_expect(!!(indexValues.InsertElementSorted ( IndexDataValue(metadata.id(), metadata.unique(), info.value (), info.localizedValue()), fallible)), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18002); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { *((volatile int*)__null) = 18002; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
18000 | IndexDataValue(metadata.id(), metadata.unique(), info.value(),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted ( IndexDataValue(metadata.id(), metadata.unique(), info.value (), info.localizedValue()), fallible)), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18002); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { *((volatile int*)__null) = 18002; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
18001 | info.localizedValue()),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted ( IndexDataValue(metadata.id(), metadata.unique(), info.value (), info.localizedValue()), fallible)), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18002); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { *((volatile int*)__null) = 18002; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
18002 | fallible))do { if ((__builtin_expect(!!(indexValues.InsertElementSorted ( IndexDataValue(metadata.id(), metadata.unique(), info.value (), info.localizedValue()), fallible)), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18002); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { *((volatile int*)__null) = 18002; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
18003 | } | |||
18004 | ||||
18005 | QM_TRY_UNWRAP((auto [indexValuesBlob, indexValuesBlobLength]),auto tryResult3653 = (MakeCompressedIndexDataValues(indexValues )); if ((__builtin_expect(!!(tryResult3653.isErr()), 0))) { mozilla ::dom::quota::HandleError("MakeCompressedIndexDataValues(indexValues)" , tryResult3653.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18006, mozilla::dom::quota::Severity::Error); return tryResult3653 .propagateErr(); } auto [indexValuesBlob, indexValuesBlobLength ] = tryResult3653.unwrap(); | |||
18006 | MakeCompressedIndexDataValues(indexValues))auto tryResult3653 = (MakeCompressedIndexDataValues(indexValues )); if ((__builtin_expect(!!(tryResult3653.isErr()), 0))) { mozilla ::dom::quota::HandleError("MakeCompressedIndexDataValues(indexValues)" , tryResult3653.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18006, mozilla::dom::quota::Severity::Error); return tryResult3653 .propagateErr(); } auto [indexValuesBlob, indexValuesBlobLength ] = tryResult3653.unwrap();; | |||
18007 | ||||
18008 | MOZ_ASSERT(!indexValuesBlobLength == !(indexValuesBlob.get()))do { static_assert( mozilla::detail::AssertionConditionType< decltype(!indexValuesBlobLength == !(indexValuesBlob.get()))> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!indexValuesBlobLength == !(indexValuesBlob.get()))) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!indexValuesBlobLength == !(indexValuesBlob.get())" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18008); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexValuesBlobLength == !(indexValuesBlob.get())" ")"); do { *((volatile int*)__null) = 18008; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18009 | ||||
18010 | nsCOMPtr<nsIVariant> value; | |||
18011 | ||||
18012 | if (!indexValuesBlob) { | |||
18013 | value = new storage::NullVariant(); | |||
18014 | ||||
18015 | value.forget(_retval); | |||
18016 | return NS_OK; | |||
18017 | } | |||
18018 | ||||
18019 | // Now insert the new table rows. We only need to construct a new list if | |||
18020 | // the full list is different. | |||
18021 | if (hadPreviousIndexValues) { | |||
18022 | indexValues.ClearAndRetainStorage(); | |||
18023 | ||||
18024 | MOZ_ASSERT(indexValues.Capacity() >= updateInfoCount)do { static_assert( mozilla::detail::AssertionConditionType< decltype(indexValues.Capacity() >= updateInfoCount)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(indexValues.Capacity() >= updateInfoCount))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexValues.Capacity() >= updateInfoCount" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18024); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexValues.Capacity() >= updateInfoCount" ")"); do { *((volatile int*)__null) = 18024; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18025 | ||||
18026 | for (const IndexUpdateInfo& info : updateInfos) { | |||
18027 | MOZ_ALWAYS_TRUE(indexValues.InsertElementSorted(do { if ((__builtin_expect(!!(indexValues.InsertElementSorted ( IndexDataValue(metadata.id(), metadata.unique(), info.value (), info.localizedValue()), fallible)), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18030); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { *((volatile int*)__null) = 18030; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
18028 | IndexDataValue(metadata.id(), metadata.unique(), info.value(),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted ( IndexDataValue(metadata.id(), metadata.unique(), info.value (), info.localizedValue()), fallible)), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18030); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { *((volatile int*)__null) = 18030; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
18029 | info.localizedValue()),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted ( IndexDataValue(metadata.id(), metadata.unique(), info.value (), info.localizedValue()), fallible)), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18030); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { *((volatile int*)__null) = 18030; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
18030 | fallible))do { if ((__builtin_expect(!!(indexValues.InsertElementSorted ( IndexDataValue(metadata.id(), metadata.unique(), info.value (), info.localizedValue()), fallible)), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18030); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { *((volatile int*)__null) = 18030; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
18031 | } | |||
18032 | } | |||
18033 | ||||
18034 | QM_TRY(MOZ_TO_RESULT({auto tryResult3654 = (ToResult(InsertIndexTableRows(mConnection , objectStoreId, key, indexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3654)::ok_type>); if ((__builtin_expect (!!(tryResult3654.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))" , tryResult3654.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18035, mozilla::dom::quota::Severity::Error); return tryResult3654 .propagateErr(); }} | |||
18035 | InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))){auto tryResult3654 = (ToResult(InsertIndexTableRows(mConnection , objectStoreId, key, indexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3654)::ok_type>); if ((__builtin_expect (!!(tryResult3654.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))" , tryResult3654.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18035, mozilla::dom::quota::Severity::Error); return tryResult3654 .propagateErr(); }}; | |||
18036 | ||||
18037 | value = new storage::AdoptedBlobVariant( | |||
18038 | std::pair(indexValuesBlob.release(), indexValuesBlobLength)); | |||
18039 | ||||
18040 | value.forget(_retval); | |||
18041 | return NS_OK; | |||
18042 | } | |||
18043 | ||||
18044 | DeleteIndexOp::DeleteIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | |||
18045 | const IndexOrObjectStoreId aObjectStoreId, | |||
18046 | const IndexOrObjectStoreId aIndexId, | |||
18047 | const bool aUnique, const bool aIsLastIndex) | |||
18048 | : VersionChangeTransactionOp(std::move(aTransaction)), | |||
18049 | mObjectStoreId(aObjectStoreId), | |||
18050 | mIndexId(aIndexId), | |||
18051 | mUnique(aUnique), | |||
18052 | mIsLastIndex(aIsLastIndex) { | |||
18053 | MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aObjectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18053); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"); do { *((volatile int*)__null) = 18053; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18054 | MOZ_ASSERT(aIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aIndexId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aIndexId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aIndexId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18054); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aIndexId" ")" ); do { *((volatile int*)__null) = 18054; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
18055 | } | |||
18056 | ||||
18057 | nsresult DeleteIndexOp::RemoveReferencesToIndex( | |||
18058 | DatabaseConnection* aConnection, const Key& aObjectStoreKey, | |||
18059 | nsTArray<IndexDataValue>& aIndexValues) const { | |||
18060 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18060); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { *((volatile int*)__null) = 18060; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18061 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18061); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 18061; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18062 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18062); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 18062; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18063 | MOZ_ASSERT(!aObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aObjectStoreKey.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aObjectStoreKey.IsUnset())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aObjectStoreKey.IsUnset()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18063); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()" ")"); do { *((volatile int*)__null) = 18063; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18064 | MOZ_ASSERT_IF(!mIsLastIndex, !aIndexValues.IsEmpty())do { if (!mIsLastIndex) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!aIndexValues.IsEmpty()) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!aIndexValues.IsEmpty()))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("!aIndexValues.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18064); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIndexValues.IsEmpty()" ")"); do { *((volatile int*)__null) = 18064; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
18065 | ||||
18066 | AUTO_PROFILER_LABEL("DeleteIndexOp::RemoveReferencesToIndex", DOM)mozilla::AutoProfilerLabel raiiObject18066( "DeleteIndexOp::RemoveReferencesToIndex" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
18067 | ||||
18068 | if (mIsLastIndex) { | |||
18069 | // There is no need to parse the previous entry in the index_data_values | |||
18070 | // column if this is the last index. Simply set it to NULL. | |||
18071 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3655 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult3655.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3655.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18077, mozilla::dom::quota::Severity::Error); return tryResult3655 .propagateErr(); } const auto& stmt = tryResult3655.inspect (); | |||
18072 | aConnection->BorrowCachedStatement(auto tryResult3655 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult3655.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3655.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18077, mozilla::dom::quota::Severity::Error); return tryResult3655 .propagateErr(); } const auto& stmt = tryResult3655.inspect (); | |||
18073 | "UPDATE object_data "auto tryResult3655 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult3655.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3655.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18077, mozilla::dom::quota::Severity::Error); return tryResult3655 .propagateErr(); } const auto& stmt = tryResult3655.inspect (); | |||
18074 | "SET index_data_values = NULL "auto tryResult3655 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult3655.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3655.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18077, mozilla::dom::quota::Severity::Error); return tryResult3655 .propagateErr(); } const auto& stmt = tryResult3655.inspect (); | |||
18075 | "WHERE object_store_id = :"_ns +auto tryResult3655 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult3655.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3655.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18077, mozilla::dom::quota::Severity::Error); return tryResult3655 .propagateErr(); } const auto& stmt = tryResult3655.inspect (); | |||
18076 | kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult3655 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult3655.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3655.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18077, mozilla::dom::quota::Severity::Error); return tryResult3655 .propagateErr(); } const auto& stmt = tryResult3655.inspect (); | |||
18077 | kStmtParamNameKey + ";"_ns))auto tryResult3655 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult3655.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)" , tryResult3655.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18077, mozilla::dom::quota::Severity::Error); return tryResult3655 .propagateErr(); } const auto& stmt = tryResult3655.inspect ();; | |||
18078 | ||||
18079 | QM_TRY(MOZ_TO_RESULT({auto tryResult3656 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3656)::ok_type>); if ((__builtin_expect (!!(tryResult3656.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult3656.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18080, mozilla::dom::quota::Severity::Error); return tryResult3656 .propagateErr(); }} | |||
18080 | stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult3656 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3656)::ok_type>); if ((__builtin_expect (!!(tryResult3656.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult3656.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18080, mozilla::dom::quota::Severity::Error); return tryResult3656 .propagateErr(); }}; | |||
18081 | ||||
18082 | QM_TRY(MOZ_TO_RESULT({auto tryResult3657 = (ToResult(aObjectStoreKey.BindToStatement (&*stmt, kStmtParamNameKey))); static_assert(std::is_empty_v <typename decltype(tryResult3657)::ok_type>); if ((__builtin_expect (!!(tryResult3657.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))" , tryResult3657.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18083, mozilla::dom::quota::Severity::Error); return tryResult3657 .propagateErr(); }} | |||
18083 | aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))){auto tryResult3657 = (ToResult(aObjectStoreKey.BindToStatement (&*stmt, kStmtParamNameKey))); static_assert(std::is_empty_v <typename decltype(tryResult3657)::ok_type>); if ((__builtin_expect (!!(tryResult3657.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))" , tryResult3657.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18083, mozilla::dom::quota::Severity::Error); return tryResult3657 .propagateErr(); }}; | |||
18084 | ||||
18085 | QM_TRY(MOZ_TO_RESULT(stmt->Execute())){auto tryResult3658 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3658)::ok_type >); if ((__builtin_expect(!!(tryResult3658.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult3658.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18085, mozilla::dom::quota::Severity::Error); return tryResult3658 .propagateErr(); }}; | |||
18086 | ||||
18087 | return NS_OK; | |||
18088 | } | |||
18089 | ||||
18090 | { | |||
18091 | IndexDataValue search; | |||
18092 | search.mIndexId = mIndexId; | |||
18093 | ||||
18094 | // Use raw pointers for search to avoid redundant index validity checks. | |||
18095 | // Maybe this should better be encapsulated in nsTArray. | |||
18096 | const auto* const begin = aIndexValues.Elements(); | |||
18097 | const auto* const end = aIndexValues.Elements() + aIndexValues.Length(); | |||
18098 | ||||
18099 | const auto indexIdComparator = [](const IndexDataValue& aA, | |||
18100 | const IndexDataValue& aB) { | |||
18101 | return aA.mIndexId < aB.mIndexId; | |||
18102 | }; | |||
18103 | ||||
18104 | MOZ_ASSERT(std::is_sorted(begin, end, indexIdComparator))do { static_assert( mozilla::detail::AssertionConditionType< decltype(std::is_sorted(begin, end, indexIdComparator))>:: isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(std::is_sorted(begin, end, indexIdComparator)))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("std::is_sorted(begin, end, indexIdComparator)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18104); AnnotateMozCrashReason("MOZ_ASSERT" "(" "std::is_sorted(begin, end, indexIdComparator)" ")"); do { *((volatile int*)__null) = 18104; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18105 | ||||
18106 | const auto [beginRange, endRange] = | |||
18107 | std::equal_range(begin, end, search, indexIdComparator); | |||
18108 | if (beginRange == end) { | |||
18109 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18109, "UnknownErr"); | |||
18110 | return NS_ERROR_FILE_CORRUPTED; | |||
18111 | } | |||
18112 | ||||
18113 | aIndexValues.RemoveElementsAt(beginRange - begin, endRange - beginRange); | |||
18114 | } | |||
18115 | ||||
18116 | QM_TRY(MOZ_TO_RESULT(UpdateIndexValues(aConnection, mObjectStoreId,{auto tryResult3659 = (ToResult(UpdateIndexValues(aConnection , mObjectStoreId, aObjectStoreKey, aIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3659)::ok_type >); if ((__builtin_expect(!!(tryResult3659.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateIndexValues(aConnection, mObjectStoreId, aObjectStoreKey, aIndexValues))" , tryResult3659.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18117, mozilla::dom::quota::Severity::Error); return tryResult3659 .propagateErr(); }} | |||
18117 | aObjectStoreKey, aIndexValues))){auto tryResult3659 = (ToResult(UpdateIndexValues(aConnection , mObjectStoreId, aObjectStoreKey, aIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3659)::ok_type >); if ((__builtin_expect(!!(tryResult3659.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateIndexValues(aConnection, mObjectStoreId, aObjectStoreKey, aIndexValues))" , tryResult3659.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18117, mozilla::dom::quota::Severity::Error); return tryResult3659 .propagateErr(); }}; | |||
18118 | ||||
18119 | return NS_OK; | |||
18120 | } | |||
18121 | ||||
18122 | nsresult DeleteIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) { | |||
18123 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18123); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 18123; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18124 | aConnection->AssertIsOnConnectionThread(); | |||
18125 | ||||
18126 | #ifdef DEBUG1 | |||
18127 | { | |||
18128 | // Make sure |mIsLastIndex| is telling the truth. | |||
18129 | // The parameter names are not used, parameters are bound by index only | |||
18130 | // locally in the same function. | |||
18131 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3660 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult3660.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3660.unwrapErr (); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18136, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18136); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18136; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult3660.inspect(); | |||
18132 | aConnection->BorrowCachedStatement(auto tryResult3660 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult3660.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3660.unwrapErr (); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18136, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18136); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18136; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult3660.inspect(); | |||
18133 | "SELECT id "auto tryResult3660 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult3660.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3660.unwrapErr (); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18136, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18136); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18136; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult3660.inspect(); | |||
18134 | "FROM object_store_index "auto tryResult3660 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult3660.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3660.unwrapErr (); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18136, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18136); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18136; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult3660.inspect(); | |||
18135 | "WHERE object_store_id = :object_store_id;"_ns),auto tryResult3660 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult3660.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3660.unwrapErr (); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18136, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18136); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18136; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult3660.inspect(); | |||
18136 | QM_ASSERT_UNREACHABLE)auto tryResult3660 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult3660.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3660.unwrapErr (); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18136, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18136); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18136; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult3660.inspect();; | |||
18137 | ||||
18138 | MOZ_ALWAYS_SUCCEEDS(stmt->BindInt64ByIndex(0, mObjectStoreId))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (stmt->BindInt64ByIndex(0, mObjectStoreId))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(stmt->BindInt64ByIndex(0, mObjectStoreId))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18138); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(stmt->BindInt64ByIndex(0, mObjectStoreId))" ")"); do { *((volatile int*)__null) = 18138; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
18139 | ||||
18140 | bool foundThisIndex = false; | |||
18141 | bool foundOtherIndex = false; | |||
18142 | ||||
18143 | while (true) { | |||
18144 | bool hasResult; | |||
18145 | MOZ_ALWAYS_SUCCEEDS(stmt->ExecuteStep(&hasResult))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (stmt->ExecuteStep(&hasResult))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18145); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))" ")" ); do { *((volatile int*)__null) = 18145; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | |||
18146 | ||||
18147 | if (!hasResult) { | |||
18148 | break; | |||
18149 | } | |||
18150 | ||||
18151 | int64_t id; | |||
18152 | MOZ_ALWAYS_SUCCEEDS(stmt->GetInt64(0, &id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (stmt->GetInt64(0, &id))), 1)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(stmt->GetInt64(0, &id))" ")" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18152); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(stmt->GetInt64(0, &id))" ")"); do { *((volatile int*)__null) = 18152; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } } while (false ); | |||
18153 | ||||
18154 | if (id == mIndexId) { | |||
18155 | foundThisIndex = true; | |||
18156 | } else { | |||
18157 | foundOtherIndex = true; | |||
18158 | } | |||
18159 | } | |||
18160 | ||||
18161 | MOZ_ASSERT_IF(mIsLastIndex, foundThisIndex && !foundOtherIndex)do { if (mIsLastIndex) { do { static_assert( mozilla::detail:: AssertionConditionType<decltype(foundThisIndex && ! foundOtherIndex)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(foundThisIndex && !foundOtherIndex ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "foundThisIndex && !foundOtherIndex", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18161); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisIndex && !foundOtherIndex" ")"); do { *((volatile int*)__null) = 18161; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
18162 | MOZ_ASSERT_IF(!mIsLastIndex, foundThisIndex && foundOtherIndex)do { if (!mIsLastIndex) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(foundThisIndex && foundOtherIndex)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(foundThisIndex && foundOtherIndex ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "foundThisIndex && foundOtherIndex", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18162); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisIndex && foundOtherIndex" ")"); do { *((volatile int*)__null) = 18162; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
18163 | } | |||
18164 | #endif | |||
18165 | ||||
18166 | AUTO_PROFILER_LABEL("DeleteIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18166( "DeleteIndexOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
18167 | ||||
18168 | DatabaseConnection::AutoSavepoint autoSave; | |||
18169 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult3661 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3661)::ok_type>); if ((__builtin_expect(!!(tryResult3661 .isErr()), 0))) { auto tryTempError = tryResult3661.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18174, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
18170 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult3661 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3661)::ok_type>); if ((__builtin_expect(!!(tryResult3661 .isErr()), 0))) { auto tryTempError = tryResult3661.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18174, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
18171 | ,{auto tryResult3661 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3661)::ok_type>); if ((__builtin_expect(!!(tryResult3661 .isErr()), 0))) { auto tryTempError = tryResult3661.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18174, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
18172 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult3661 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3661)::ok_type>); if ((__builtin_expect(!!(tryResult3661 .isErr()), 0))) { auto tryTempError = tryResult3661.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18174, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
18173 | #endif{auto tryResult3661 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3661)::ok_type>); if ((__builtin_expect(!!(tryResult3661 .isErr()), 0))) { auto tryTempError = tryResult3661.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18174, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
18174 | ){auto tryResult3661 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3661)::ok_type>); if ((__builtin_expect(!!(tryResult3661 .isErr()), 0))) { auto tryTempError = tryResult3661.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18174, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | |||
18175 | ||||
18176 | // mozStorage warns that these statements trigger a sort operation but we | |||
18177 | // don't care because this is a very rare call and we expect it to be slow. | |||
18178 | // The cost of having an index on this field is too high. | |||
18179 | QM_TRY_INSPECT(auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18180 | const auto& selectStmt,auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18181 | aConnection->BorrowCachedStatement(auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18182 | mUniqueauto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18183 | ? (mIsLastIndexauto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18184 | ? "/* do not warn (bug someone else) */ "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18185 | "SELECT value, object_data_key "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18186 | "FROM unique_index_data "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18187 | "WHERE index_id = :"_ns +auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18188 | kStmtParamNameIndexId +auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18189 | " ORDER BY object_data_key ASC;"_nsauto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18190 | : "/* do not warn (bug out) */ "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18191 | "SELECT unique_index_data.value, "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18192 | "unique_index_data.object_data_key, "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18193 | "object_data.index_data_values "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18194 | "FROM unique_index_data "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18195 | "JOIN object_data "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18196 | "ON unique_index_data.object_data_key = object_data.key "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18197 | "WHERE unique_index_data.index_id = :"_ns +auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18198 | kStmtParamNameIndexId +auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18199 | " AND object_data.object_store_id = :"_ns +auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18200 | kStmtParamNameObjectStoreId +auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18201 | " ORDER BY unique_index_data.object_data_key ASC;"_ns)auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18202 | : (mIsLastIndexauto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18203 | ? "/* do not warn (bug me not) */ "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18204 | "SELECT value, object_data_key "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18205 | "FROM index_data "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18206 | "WHERE index_id = :"_ns +auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18207 | kStmtParamNameIndexId +auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18208 | " AND object_store_id = :"_ns +auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18209 | kStmtParamNameObjectStoreId +auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18210 | " ORDER BY object_data_key ASC;"_nsauto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18211 | : "/* do not warn (bug off) */ "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18212 | "SELECT index_data.value, "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18213 | "index_data.object_data_key, "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18214 | "object_data.index_data_values "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18215 | "FROM index_data "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18216 | "JOIN object_data "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18217 | "ON index_data.object_data_key = object_data.key "auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18218 | "WHERE index_data.index_id = :"_ns +auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18219 | kStmtParamNameIndexId +auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18220 | " AND object_data.object_store_id = :"_ns +auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18221 | kStmtParamNameObjectStoreId +auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect(); | |||
18222 | " ORDER BY index_data.object_data_key ASC;"_ns)))auto tryResult3662 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect (!!(tryResult3662.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))" , tryResult3662.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18222, mozilla::dom::quota::Severity::Error); return tryResult3662 .propagateErr(); } const auto& selectStmt = tryResult3662 .inspect();; | |||
18223 | ||||
18224 | QM_TRY(MOZ_TO_RESULT({auto tryResult3663 = (ToResult(selectStmt->BindInt64ByName (kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v <typename decltype(tryResult3663)::ok_type>); if ((__builtin_expect (!!(tryResult3663.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))" , tryResult3663.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18225, mozilla::dom::quota::Severity::Error); return tryResult3663 .propagateErr(); }} | |||
18225 | selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))){auto tryResult3663 = (ToResult(selectStmt->BindInt64ByName (kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v <typename decltype(tryResult3663)::ok_type>); if ((__builtin_expect (!!(tryResult3663.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))" , tryResult3663.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18225, mozilla::dom::quota::Severity::Error); return tryResult3663 .propagateErr(); }}; | |||
18226 | ||||
18227 | if (!mUnique || !mIsLastIndex) { | |||
18228 | QM_TRY(MOZ_TO_RESULT(selectStmt->BindInt64ByName({auto tryResult3664 = (ToResult(selectStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, mObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3664)::ok_type >); if ((__builtin_expect(!!(tryResult3664.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName( kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult3664.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18229, mozilla::dom::quota::Severity::Error); return tryResult3664 .propagateErr(); }} | |||
18229 | kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult3664 = (ToResult(selectStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, mObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult3664)::ok_type >); if ((__builtin_expect(!!(tryResult3664.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName( kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult3664.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18229, mozilla::dom::quota::Severity::Error); return tryResult3664 .propagateErr(); }}; | |||
18230 | } | |||
18231 | ||||
18232 | Key lastObjectStoreKey; | |||
18233 | IndexDataValuesAutoArray lastIndexValues; | |||
18234 | ||||
18235 | QM_TRY(CollectWhileHasResult({auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18236 | *selectStmt,{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18237 | [this, &aConnection, &lastObjectStoreKey, &lastIndexValues,{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18238 | deleteIndexRowStmt ={auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18239 | DatabaseConnection::LazyStatement{{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18240 | *aConnection,{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18241 | mUnique{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18242 | ? "DELETE FROM unique_index_data "{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18243 | "WHERE index_id = :"_ns +{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18244 | kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18245 | kStmtParamNameValue + ";"_ns{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18246 | : "DELETE FROM index_data "{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18247 | "WHERE index_id = :"_ns +{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18248 | kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18249 | kStmtParamNameValue + " AND object_data_key = :"_ns +{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18250 | kStmtParamNameObjectDataKey + ";"_ns}]({auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18251 | auto& selectStmt) mutable -> Result<Ok, nsresult> {{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18252 | // We always need the index key to delete the index row.{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18253 | Key indexKey;{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18254 | QM_TRY(MOZ_TO_RESULT(indexKey.SetFromStatement(&selectStmt, 0)));{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18255 | ||||
18256 | QM_TRY(OkIf(!indexKey.IsUnset()), Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18257 | IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18258 | ||||
18259 | // Don't call |lastObjectStoreKey.BindToStatement()| directly because we{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18260 | // don't want to copy the same key multiple times.{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18261 | const uint8_t* objectStoreKeyData;{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18262 | uint32_t objectStoreKeyDataLength;{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18263 | QM_TRY(MOZ_TO_RESULT(selectStmt.GetSharedBlob({auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18264 | 1, &objectStoreKeyDataLength, &objectStoreKeyData)));{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18265 | ||||
18266 | QM_TRY(OkIf(objectStoreKeyDataLength), Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18267 | IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18268 | ||||
18269 | const nsDependentCString currentObjectStoreKeyBuffer({auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18270 | reinterpret_cast<const char*>(objectStoreKeyData),{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18271 | objectStoreKeyDataLength);{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18272 | if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) {{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18273 | // We just walked to the next object store key.{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18274 | if (!lastObjectStoreKey.IsUnset()) {{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18275 | // Before we move on to the next key we need to update the previous{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18276 | // key's index_data_values column.{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18277 | QM_TRY(MOZ_TO_RESULT(RemoveReferencesToIndex({auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18278 | aConnection, lastObjectStoreKey, lastIndexValues)));{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18279 | }{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18280 | ||||
18281 | // Save the object store key.{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18282 | lastObjectStoreKey = Key(currentObjectStoreKeyBuffer);{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18283 | ||||
18284 | // And the |index_data_values| row if this isn't the only index.{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18285 | if (!mIsLastIndex) {{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18286 | lastIndexValues.ClearAndRetainStorage();{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18287 | QM_TRY(MOZ_TO_RESULT({auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18288 | ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues)));{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18289 | ||||
18290 | QM_TRY(OkIf(!lastIndexValues.IsEmpty()),{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18291 | Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18292 | IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18293 | }{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18294 | }{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18295 | ||||
18296 | // Now delete the index row.{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18297 | {{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18298 | QM_TRY_INSPECT(const auto& borrowedDeleteIndexRowStmt,{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18299 | deleteIndexRowStmt.Borrow());{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18300 | ||||
18301 | QM_TRY(MOZ_TO_RESULT(borrowedDeleteIndexRowStmt->BindInt64ByName({auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18302 | kStmtParamNameIndexId, mIndexId)));{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18303 | ||||
18304 | QM_TRY(MOZ_TO_RESULT(indexKey.BindToStatement({auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18305 | &*borrowedDeleteIndexRowStmt, kStmtParamNameValue)));{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18306 | ||||
18307 | if (!mUnique) {{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18308 | QM_TRY(MOZ_TO_RESULT(lastObjectStoreKey.BindToStatement({auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18309 | &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey)));{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18310 | }{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18311 | ||||
18312 | QM_TRY(MOZ_TO_RESULT(borrowedDeleteIndexRowStmt->Execute()));{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18313 | }{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18314 | ||||
18315 | return Ok{};{auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }} | |||
18316 | })){auto tryResult3677 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult3665 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult3665)::ok_type >); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult3665.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18254, mozilla::dom::quota::Severity::Error); return tryResult3665 .propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult3666 )::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr ()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18257, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult3667)::ok_type >); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult3667.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18264, mozilla::dom::quota::Severity::Error); return tryResult3667 .propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult3668 )::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr ()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18267, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult3669)::ok_type >); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3669.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18278, mozilla::dom::quota::Severity::Error); return tryResult3669 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect (!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult3670.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18288, mozilla::dom::quota::Severity::Error); return tryResult3670 .propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671 .isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18292, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult3672.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18299, mozilla::dom::quota::Severity::Error); return tryResult3672 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult3673.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18302, mozilla::dom::quota::Severity::Error); return tryResult3673 .propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult3674 )::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult3674.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18305, mozilla::dom::quota::Severity::Error); return tryResult3674 .propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect (!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult3675.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18309, mozilla::dom::quota::Severity::Error); return tryResult3675 .propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult3676.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18312, mozilla::dom::quota::Severity::Error); return tryResult3676 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3677)::ok_type>); if ((__builtin_expect (!!(tryResult3677.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult3665 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3665)::ok_type>); if ((__builtin_expect(!!(tryResult3665.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult3665.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18254, mozilla::dom::quota::Severity::Error); return tryResult3665.propagateErr(); }}; {auto tryResult3666 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult3666)::ok_type>); if ((__builtin_expect(!!(tryResult3666.isErr()), 0))) { auto tryTempError = tryResult3666.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18257, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult3667 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult3667)::ok_type>); if ((__builtin_expect(!!(tryResult3667.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult3667.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); return tryResult3667.propagateErr(); }}; {auto tryResult3668 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult3668)::ok_type>); if ((__builtin_expect(!!(tryResult3668.isErr()), 0))) { auto tryTempError = tryResult3668.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18267, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult3669 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3669)::ok_type>); if ((__builtin_expect(!!(tryResult3669.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult3669.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18278, mozilla::dom::quota::Severity::Error); return tryResult3669.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult3670 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult3670)::ok_type>); if ((__builtin_expect(!!(tryResult3670.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult3670.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18288, mozilla::dom::quota::Severity::Error); return tryResult3670.propagateErr(); }}; {auto tryResult3671 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult3671)::ok_type>); if ((__builtin_expect(!!(tryResult3671.isErr()), 0))) { auto tryTempError = tryResult3671.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18292, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult3672 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult3672.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult3672.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); return tryResult3672.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult3672.inspect();; {auto tryResult3673 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3673)::ok_type>); if ((__builtin_expect(!!(tryResult3673.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult3673.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18302, mozilla::dom::quota::Severity::Error); return tryResult3673.propagateErr(); }}; {auto tryResult3674 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult3674)::ok_type>); if ((__builtin_expect(!!(tryResult3674.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult3674.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18305, mozilla::dom::quota::Severity::Error); return tryResult3674.propagateErr(); }}; if (!mUnique) { {auto tryResult3675 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult3675)::ok_type>); if ((__builtin_expect(!!(tryResult3675.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult3675.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult3675.propagateErr(); }}; } {auto tryResult3676 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult3676)::ok_type>); if ((__builtin_expect(!!(tryResult3676.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult3676.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult3676.propagateErr(); }}; } return Ok{}; })" , tryResult3677.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18316, mozilla::dom::quota::Severity::Error); return tryResult3677 .propagateErr(); }}; | |||
18317 | ||||
18318 | // Take care of the last key. | |||
18319 | if (!lastObjectStoreKey.IsUnset()) { | |||
18320 | MOZ_ASSERT_IF(!mIsLastIndex, !lastIndexValues.IsEmpty())do { if (!mIsLastIndex) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(!lastIndexValues.IsEmpty ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!lastIndexValues.IsEmpty()))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("!lastIndexValues.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!lastIndexValues.IsEmpty()" ")"); do { *((volatile int*)__null) = 18320; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
18321 | ||||
18322 | QM_TRY(MOZ_TO_RESULT(RemoveReferencesToIndex({auto tryResult3678 = (ToResult(RemoveReferencesToIndex( aConnection , lastObjectStoreKey, lastIndexValues))); static_assert(std:: is_empty_v<typename decltype(tryResult3678)::ok_type>); if ((__builtin_expect(!!(tryResult3678.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3678.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18323, mozilla::dom::quota::Severity::Error); return tryResult3678 .propagateErr(); }} | |||
18323 | aConnection, lastObjectStoreKey, lastIndexValues))){auto tryResult3678 = (ToResult(RemoveReferencesToIndex( aConnection , lastObjectStoreKey, lastIndexValues))); static_assert(std:: is_empty_v<typename decltype(tryResult3678)::ok_type>); if ((__builtin_expect(!!(tryResult3678.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult3678.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18323, mozilla::dom::quota::Severity::Error); return tryResult3678 .propagateErr(); }}; | |||
18324 | } | |||
18325 | ||||
18326 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult3680 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult3679 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3679)::ok_type> ); if ((__builtin_expect(!!(tryResult3679.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult3679.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18331, mozilla::dom::quota::Severity::Error); return tryResult3679 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3680)::ok_type>); if ((__builtin_expect (!!(tryResult3680.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult3679 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3679)::ok_type>); if ((__builtin_expect(!!(tryResult3679.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult3679.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18331, mozilla::dom::quota::Severity::Error); return tryResult3679.propagateErr(); }}; return Ok{}; }))" , tryResult3680.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18334, mozilla::dom::quota::Severity::Error); return tryResult3680 .propagateErr(); }} | |||
18327 | "DELETE FROM object_store_index "{auto tryResult3680 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult3679 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3679)::ok_type> ); if ((__builtin_expect(!!(tryResult3679.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult3679.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18331, mozilla::dom::quota::Severity::Error); return tryResult3679 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3680)::ok_type>); if ((__builtin_expect (!!(tryResult3680.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult3679 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3679)::ok_type>); if ((__builtin_expect(!!(tryResult3679.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult3679.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18331, mozilla::dom::quota::Severity::Error); return tryResult3679.propagateErr(); }}; return Ok{}; }))" , tryResult3680.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18334, mozilla::dom::quota::Severity::Error); return tryResult3680 .propagateErr(); }} | |||
18328 | "WHERE id = :index_id;"_ns,{auto tryResult3680 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult3679 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3679)::ok_type> ); if ((__builtin_expect(!!(tryResult3679.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult3679.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18331, mozilla::dom::quota::Severity::Error); return tryResult3679 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3680)::ok_type>); if ((__builtin_expect (!!(tryResult3680.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult3679 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3679)::ok_type>); if ((__builtin_expect(!!(tryResult3679.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult3679.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18331, mozilla::dom::quota::Severity::Error); return tryResult3679.propagateErr(); }}; return Ok{}; }))" , tryResult3680.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18334, mozilla::dom::quota::Severity::Error); return tryResult3680 .propagateErr(); }} | |||
18329 | [indexId ={auto tryResult3680 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult3679 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3679)::ok_type> ); if ((__builtin_expect(!!(tryResult3679.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult3679.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18331, mozilla::dom::quota::Severity::Error); return tryResult3679 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3680)::ok_type>); if ((__builtin_expect (!!(tryResult3680.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult3679 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3679)::ok_type>); if ((__builtin_expect(!!(tryResult3679.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult3679.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18331, mozilla::dom::quota::Severity::Error); return tryResult3679.propagateErr(); }}; return Ok{}; }))" , tryResult3680.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18334, mozilla::dom::quota::Severity::Error); return tryResult3680 .propagateErr(); }} | |||
18330 | mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> {{auto tryResult3680 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult3679 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3679)::ok_type> ); if ((__builtin_expect(!!(tryResult3679.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult3679.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18331, mozilla::dom::quota::Severity::Error); return tryResult3679 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3680)::ok_type>); if ((__builtin_expect (!!(tryResult3680.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult3679 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3679)::ok_type>); if ((__builtin_expect(!!(tryResult3679.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult3679.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18331, mozilla::dom::quota::Severity::Error); return tryResult3679.propagateErr(); }}; return Ok{}; }))" , tryResult3680.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18334, mozilla::dom::quota::Severity::Error); return tryResult3680 .propagateErr(); }} | |||
18331 | QM_TRY(MOZ_TO_RESULT(deleteStmt.BindInt64ByIndex(0, indexId)));{auto tryResult3680 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult3679 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3679)::ok_type> ); if ((__builtin_expect(!!(tryResult3679.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult3679.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18331, mozilla::dom::quota::Severity::Error); return tryResult3679 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3680)::ok_type>); if ((__builtin_expect (!!(tryResult3680.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult3679 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3679)::ok_type>); if ((__builtin_expect(!!(tryResult3679.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult3679.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18331, mozilla::dom::quota::Severity::Error); return tryResult3679.propagateErr(); }}; return Ok{}; }))" , tryResult3680.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18334, mozilla::dom::quota::Severity::Error); return tryResult3680 .propagateErr(); }} | |||
18332 | ||||
18333 | return Ok{};{auto tryResult3680 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult3679 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3679)::ok_type> ); if ((__builtin_expect(!!(tryResult3679.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult3679.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18331, mozilla::dom::quota::Severity::Error); return tryResult3679 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3680)::ok_type>); if ((__builtin_expect (!!(tryResult3680.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult3679 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3679)::ok_type>); if ((__builtin_expect(!!(tryResult3679.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult3679.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18331, mozilla::dom::quota::Severity::Error); return tryResult3679.propagateErr(); }}; return Ok{}; }))" , tryResult3680.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18334, mozilla::dom::quota::Severity::Error); return tryResult3680 .propagateErr(); }} | |||
18334 | }))){auto tryResult3680 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult3679 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult3679)::ok_type> ); if ((__builtin_expect(!!(tryResult3679.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult3679.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18331, mozilla::dom::quota::Severity::Error); return tryResult3679 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3680)::ok_type>); if ((__builtin_expect (!!(tryResult3680.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult3679 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult3679)::ok_type>); if ((__builtin_expect(!!(tryResult3679.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult3679.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18331, mozilla::dom::quota::Severity::Error); return tryResult3679.propagateErr(); }}; return Ok{}; }))" , tryResult3680.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18334, mozilla::dom::quota::Severity::Error); return tryResult3680 .propagateErr(); }}; | |||
18335 | ||||
18336 | #ifdef DEBUG1 | |||
18337 | { | |||
18338 | int32_t deletedRowCount; | |||
18339 | MOZ_ALWAYS_SUCCEEDS(aConnection->MutableStorageConnection().GetAffectedRows(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetAffectedRows( & deletedRowCount))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18340); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")"); do { *((volatile int*)__null) = 18340; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
18340 | &deletedRowCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aConnection->MutableStorageConnection().GetAffectedRows( & deletedRowCount))), 1)))), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18340); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")"); do { *((volatile int*)__null) = 18340; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
18341 | MOZ_ASSERT(deletedRowCount == 1)do { static_assert( mozilla::detail::AssertionConditionType< decltype(deletedRowCount == 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(deletedRowCount == 1))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("deletedRowCount == 1" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18341); AnnotateMozCrashReason("MOZ_ASSERT" "(" "deletedRowCount == 1" ")"); do { *((volatile int*)__null) = 18341; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18342 | } | |||
18343 | #endif | |||
18344 | ||||
18345 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult3681 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult3681)::ok_type >); if ((__builtin_expect(!!(tryResult3681.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult3681.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18345, mozilla::dom::quota::Severity::Error); return tryResult3681 .propagateErr(); }}; | |||
18346 | ||||
18347 | return NS_OK; | |||
18348 | } | |||
18349 | ||||
18350 | nsresult RenameIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) { | |||
18351 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18351); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 18351; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18352 | aConnection->AssertIsOnConnectionThread(); | |||
18353 | ||||
18354 | AUTO_PROFILER_LABEL("RenameIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18354( "RenameIndexOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
18355 | ||||
18356 | #ifdef DEBUG1 | |||
18357 | { | |||
18358 | // Make sure that we're not renaming an index with the same name as another | |||
18359 | // that already exists. This should be impossible because we should have | |||
18360 | // thrown an error long before now... | |||
18361 | // The parameter names are not used, parameters are bound by index only | |||
18362 | // locally in the same function. | |||
18363 | QM_TRY_INSPECT(const bool& hasResult,auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18364 | aConnectionauto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18365 | ->BorrowAndExecuteSingleStepStatement(auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18366 | "SELECT name "auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18367 | "FROM object_store_index "auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18368 | "WHERE object_store_id = :object_store_id "auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18369 | "AND name = :name "auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18370 | "AND id != :id;"_ns,auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18371 | [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18372 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18373 | 0, self.mObjectStoreId)));auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18374 | QM_TRY(MOZ_TO_RESULT(auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18375 | stmt.BindStringByIndex(1, self.mNewName)));auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18376 | QM_TRY(MOZ_TO_RESULT(auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18377 | stmt.BindInt64ByIndex(2, self.mIndexId)));auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18378 | ||||
18379 | return Ok{};auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18380 | })auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18381 | .map(IsSome),auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect(); | |||
18382 | QM_ASSERT_UNREACHABLE)auto tryResult3685 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id " "AND name = :name " "AND id != :id;"_ns, [&self = *this] (auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult3682 )::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult3682.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18373, mozilla::dom::quota::Severity::Error); return tryResult3682 .propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect (!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult3683 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18375, mozilla::dom::quota::Severity::Error); return tryResult3683 .propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect (!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult3684 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18377, mozilla::dom::quota::Severity::Error); return tryResult3684 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult3685.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3685.unwrapErr(); mozilla::dom::quota ::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult3682 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3682)::ok_type>); if ((__builtin_expect(!!(tryResult3682.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult3682.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18373, mozilla::dom::quota::Severity::Error); return tryResult3682.propagateErr(); }}; {auto tryResult3683 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3683)::ok_type>); if ((__builtin_expect(!!(tryResult3683.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult3683.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18375, mozilla::dom::quota::Severity::Error); return tryResult3683.propagateErr(); }}; {auto tryResult3684 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3684)::ok_type>); if ((__builtin_expect(!!(tryResult3684.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult3684.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18377, mozilla::dom::quota::Severity::Error); return tryResult3684.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18382); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18382; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult3685.inspect();; | |||
18383 | ||||
18384 | MOZ_ASSERT(!hasResult)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!hasResult)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!hasResult))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!hasResult", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18384); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult" ")"); do { *((volatile int*)__null) = 18384; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18385 | } | |||
18386 | #else | |||
18387 | Unused << mObjectStoreId; | |||
18388 | #endif | |||
18389 | ||||
18390 | DatabaseConnection::AutoSavepoint autoSave; | |||
18391 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult3686 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3686)::ok_type>); if ((__builtin_expect(!!(tryResult3686 .isErr()), 0))) { auto tryTempError = tryResult3686.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18396, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
18392 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult3686 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3686)::ok_type>); if ((__builtin_expect(!!(tryResult3686 .isErr()), 0))) { auto tryTempError = tryResult3686.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18396, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
18393 | ,{auto tryResult3686 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3686)::ok_type>); if ((__builtin_expect(!!(tryResult3686 .isErr()), 0))) { auto tryTempError = tryResult3686.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18396, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
18394 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult3686 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3686)::ok_type>); if ((__builtin_expect(!!(tryResult3686 .isErr()), 0))) { auto tryTempError = tryResult3686.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18396, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
18395 | #endif{auto tryResult3686 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3686)::ok_type>); if ((__builtin_expect(!!(tryResult3686 .isErr()), 0))) { auto tryTempError = tryResult3686.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18396, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
18396 | ){auto tryResult3686 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3686)::ok_type>); if ((__builtin_expect(!!(tryResult3686 .isErr()), 0))) { auto tryTempError = tryResult3686.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18396, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | |||
18397 | ||||
18398 | // The parameter names are not used, parameters are bound by index only | |||
18399 | // locally in the same function. | |||
18400 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult3689 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect (!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3687 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18405, mozilla::dom::quota::Severity::Error); return tryResult3687 .propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect (!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult3688 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18407, mozilla::dom::quota::Severity::Error); return tryResult3688 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3689)::ok_type>); if ((__builtin_expect (!!(tryResult3689.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect(!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3687.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18405, mozilla::dom::quota::Severity::Error); return tryResult3687.propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect(!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult3688.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18407, mozilla::dom::quota::Severity::Error); return tryResult3688.propagateErr(); }}; return Ok{}; }))" , tryResult3689.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18410, mozilla::dom::quota::Severity::Error); return tryResult3689 .propagateErr(); }} | |||
18401 | "UPDATE object_store_index "{auto tryResult3689 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect (!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3687 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18405, mozilla::dom::quota::Severity::Error); return tryResult3687 .propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect (!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult3688 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18407, mozilla::dom::quota::Severity::Error); return tryResult3688 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3689)::ok_type>); if ((__builtin_expect (!!(tryResult3689.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect(!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3687.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18405, mozilla::dom::quota::Severity::Error); return tryResult3687.propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect(!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult3688.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18407, mozilla::dom::quota::Severity::Error); return tryResult3688.propagateErr(); }}; return Ok{}; }))" , tryResult3689.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18410, mozilla::dom::quota::Severity::Error); return tryResult3689 .propagateErr(); }} | |||
18402 | "SET name = :name "{auto tryResult3689 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect (!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3687 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18405, mozilla::dom::quota::Severity::Error); return tryResult3687 .propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect (!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult3688 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18407, mozilla::dom::quota::Severity::Error); return tryResult3688 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3689)::ok_type>); if ((__builtin_expect (!!(tryResult3689.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect(!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3687.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18405, mozilla::dom::quota::Severity::Error); return tryResult3687.propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect(!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult3688.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18407, mozilla::dom::quota::Severity::Error); return tryResult3688.propagateErr(); }}; return Ok{}; }))" , tryResult3689.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18410, mozilla::dom::quota::Severity::Error); return tryResult3689 .propagateErr(); }} | |||
18403 | "WHERE id = :id;"_ns,{auto tryResult3689 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect (!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3687 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18405, mozilla::dom::quota::Severity::Error); return tryResult3687 .propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect (!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult3688 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18407, mozilla::dom::quota::Severity::Error); return tryResult3688 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3689)::ok_type>); if ((__builtin_expect (!!(tryResult3689.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect(!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3687.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18405, mozilla::dom::quota::Severity::Error); return tryResult3687.propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect(!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult3688.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18407, mozilla::dom::quota::Severity::Error); return tryResult3688.propagateErr(); }}; return Ok{}; }))" , tryResult3689.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18410, mozilla::dom::quota::Severity::Error); return tryResult3689 .propagateErr(); }} | |||
18404 | [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult3689 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect (!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3687 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18405, mozilla::dom::quota::Severity::Error); return tryResult3687 .propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect (!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult3688 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18407, mozilla::dom::quota::Severity::Error); return tryResult3688 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3689)::ok_type>); if ((__builtin_expect (!!(tryResult3689.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect(!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3687.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18405, mozilla::dom::quota::Severity::Error); return tryResult3687.propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect(!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult3688.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18407, mozilla::dom::quota::Severity::Error); return tryResult3688.propagateErr(); }}; return Ok{}; }))" , tryResult3689.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18410, mozilla::dom::quota::Severity::Error); return tryResult3689 .propagateErr(); }} | |||
18405 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));{auto tryResult3689 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect (!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3687 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18405, mozilla::dom::quota::Severity::Error); return tryResult3687 .propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect (!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult3688 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18407, mozilla::dom::quota::Severity::Error); return tryResult3688 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3689)::ok_type>); if ((__builtin_expect (!!(tryResult3689.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect(!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3687.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18405, mozilla::dom::quota::Severity::Error); return tryResult3687.propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect(!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult3688.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18407, mozilla::dom::quota::Severity::Error); return tryResult3688.propagateErr(); }}; return Ok{}; }))" , tryResult3689.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18410, mozilla::dom::quota::Severity::Error); return tryResult3689 .propagateErr(); }} | |||
18406 | ||||
18407 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mIndexId)));{auto tryResult3689 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect (!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3687 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18405, mozilla::dom::quota::Severity::Error); return tryResult3687 .propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect (!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult3688 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18407, mozilla::dom::quota::Severity::Error); return tryResult3688 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3689)::ok_type>); if ((__builtin_expect (!!(tryResult3689.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect(!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3687.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18405, mozilla::dom::quota::Severity::Error); return tryResult3687.propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect(!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult3688.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18407, mozilla::dom::quota::Severity::Error); return tryResult3688.propagateErr(); }}; return Ok{}; }))" , tryResult3689.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18410, mozilla::dom::quota::Severity::Error); return tryResult3689 .propagateErr(); }} | |||
18408 | ||||
18409 | return Ok{};{auto tryResult3689 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect (!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3687 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18405, mozilla::dom::quota::Severity::Error); return tryResult3687 .propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect (!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult3688 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18407, mozilla::dom::quota::Severity::Error); return tryResult3688 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3689)::ok_type>); if ((__builtin_expect (!!(tryResult3689.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect(!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3687.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18405, mozilla::dom::quota::Severity::Error); return tryResult3687.propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect(!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult3688.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18407, mozilla::dom::quota::Severity::Error); return tryResult3688.propagateErr(); }}; return Ok{}; }))" , tryResult3689.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18410, mozilla::dom::quota::Severity::Error); return tryResult3689 .propagateErr(); }} | |||
18410 | }))){auto tryResult3689 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect (!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult3687 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18405, mozilla::dom::quota::Severity::Error); return tryResult3687 .propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect (!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult3688 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18407, mozilla::dom::quota::Severity::Error); return tryResult3688 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3689)::ok_type>); if ((__builtin_expect (!!(tryResult3689.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult3687 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult3687)::ok_type>); if ((__builtin_expect(!!(tryResult3687.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult3687.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18405, mozilla::dom::quota::Severity::Error); return tryResult3687.propagateErr(); }}; {auto tryResult3688 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3688)::ok_type>); if ((__builtin_expect(!!(tryResult3688.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult3688.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18407, mozilla::dom::quota::Severity::Error); return tryResult3688.propagateErr(); }}; return Ok{}; }))" , tryResult3689.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18410, mozilla::dom::quota::Severity::Error); return tryResult3689 .propagateErr(); }}; | |||
18411 | ||||
18412 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult3690 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult3690)::ok_type >); if ((__builtin_expect(!!(tryResult3690.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult3690.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18412, mozilla::dom::quota::Severity::Error); return tryResult3690 .propagateErr(); }}; | |||
18413 | ||||
18414 | return NS_OK; | |||
18415 | } | |||
18416 | ||||
18417 | Result<bool, nsresult> NormalTransactionOp::ObjectStoreHasIndexes( | |||
18418 | DatabaseConnection& aConnection, const IndexOrObjectStoreId aObjectStoreId, | |||
18419 | const bool aMayHaveIndexes) { | |||
18420 | aConnection.AssertIsOnConnectionThread(); | |||
18421 | MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aObjectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"); do { *((volatile int*)__null) = 18421; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18422 | ||||
18423 | if (Transaction().GetMode() == IDBTransaction::Mode::VersionChange && | |||
18424 | aMayHaveIndexes) { | |||
18425 | // If this is a version change transaction then mObjectStoreMayHaveIndexes | |||
18426 | // could be wrong (e.g. if a unique index failed to be created due to a | |||
18427 | // constraint error). We have to check on this thread by asking the database | |||
18428 | // directly. | |||
18429 | QM_TRY_RETURN(DatabaseOperationBase::ObjectStoreHasIndexes(aConnection,{auto tryResult3691 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult3691 .isErr()), 0))) { mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryResult3691.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18430, mozilla::dom::quota::Severity::Error); } return tryResult3691 ;} | |||
18430 | aObjectStoreId)){auto tryResult3691 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult3691 .isErr()), 0))) { mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryResult3691.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18430, mozilla::dom::quota::Severity::Error); } return tryResult3691 ;}; | |||
18431 | } | |||
18432 | ||||
18433 | #ifdef DEBUG1 | |||
18434 | QM_TRY_INSPECT(auto tryResult3692 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult3692 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3692.unwrapErr(); mozilla::dom::quota::HandleError ("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18437); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18437; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult3692.inspect(); | |||
18435 | const bool& hasIndexes,auto tryResult3692 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult3692 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3692.unwrapErr(); mozilla::dom::quota::HandleError ("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18437); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18437; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult3692.inspect(); | |||
18436 | DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId),auto tryResult3692 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult3692 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3692.unwrapErr(); mozilla::dom::quota::HandleError ("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18437); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18437; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult3692.inspect(); | |||
18437 | QM_ASSERT_UNREACHABLE)auto tryResult3692 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult3692 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3692.unwrapErr(); mozilla::dom::quota::HandleError ("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18437, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18437); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18437; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult3692.inspect();; | |||
18438 | MOZ_ASSERT(aMayHaveIndexes == hasIndexes)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMayHaveIndexes == hasIndexes)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMayHaveIndexes == hasIndexes ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aMayHaveIndexes == hasIndexes", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18438); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMayHaveIndexes == hasIndexes" ")"); do { *((volatile int*)__null) = 18438; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18439 | #endif | |||
18440 | ||||
18441 | return aMayHaveIndexes; | |||
18442 | } | |||
18443 | ||||
18444 | Result<PreprocessParams, nsresult> NormalTransactionOp::GetPreprocessParams() { | |||
18445 | return PreprocessParams{}; | |||
18446 | } | |||
18447 | ||||
18448 | nsresult NormalTransactionOp::SendPreprocessInfo() { | |||
18449 | AssertIsOnOwningThread(); | |||
18450 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18450); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { *((volatile int*)__null) = 18450; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18451 | ||||
18452 | QM_TRY_INSPECT(const auto& params, GetPreprocessParams())auto tryResult3693 = (GetPreprocessParams()); if ((__builtin_expect (!!(tryResult3693.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetPreprocessParams()", tryResult3693.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18452, mozilla::dom::quota::Severity::Error); return tryResult3693 .propagateErr(); } const auto& params = tryResult3693.inspect ();; | |||
18453 | ||||
18454 | MOZ_ASSERT(params.type() != PreprocessParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(params.type() != PreprocessParams::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(params.type() != PreprocessParams::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("params.type() != PreprocessParams::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18454); AnnotateMozCrashReason("MOZ_ASSERT" "(" "params.type() != PreprocessParams::T__None" ")"); do { *((volatile int*)__null) = 18454; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18455 | ||||
18456 | if (NS_WARN_IF(!PBackgroundIDBRequestParent::SendPreprocess(params))NS_warn_if_impl(!PBackgroundIDBRequestParent::SendPreprocess( params), "!PBackgroundIDBRequestParent::SendPreprocess(params)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18456)) { | |||
18457 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18457, "UnknownErr"); | |||
18458 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
18459 | } | |||
18460 | ||||
18461 | return NS_OK; | |||
18462 | } | |||
18463 | ||||
18464 | nsresult NormalTransactionOp::SendSuccessResult() { | |||
18465 | AssertIsOnOwningThread(); | |||
18466 | ||||
18467 | if (!IsActorDestroyed()) { | |||
18468 | static const size_t kMaxIDBMsgOverhead = 1024 * 1024 * 10; // 10MB | |||
18469 | const uint32_t maximalSizeFromPref = | |||
18470 | IndexedDatabaseManager::MaxSerializedMsgSize(); | |||
18471 | MOZ_ASSERT(maximalSizeFromPref > kMaxIDBMsgOverhead)do { static_assert( mozilla::detail::AssertionConditionType< decltype(maximalSizeFromPref > kMaxIDBMsgOverhead)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(maximalSizeFromPref > kMaxIDBMsgOverhead))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("maximalSizeFromPref > kMaxIDBMsgOverhead" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18471); AnnotateMozCrashReason("MOZ_ASSERT" "(" "maximalSizeFromPref > kMaxIDBMsgOverhead" ")"); do { *((volatile int*)__null) = 18471; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18472 | const size_t kMaxMessageSize = maximalSizeFromPref - kMaxIDBMsgOverhead; | |||
18473 | ||||
18474 | RequestResponse response; | |||
18475 | size_t responseSize = kMaxMessageSize; | |||
18476 | GetResponse(response, &responseSize); | |||
18477 | ||||
18478 | if (responseSize >= kMaxMessageSize) { | |||
18479 | nsPrintfCString warning( | |||
18480 | "The serialized value is too large" | |||
18481 | " (size=%zu bytes, max=%zu bytes).", | |||
18482 | responseSize, kMaxMessageSize); | |||
18483 | NS_WARNING(warning.get())NS_DebugBreak(NS_DEBUG_WARNING, warning.get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18483); | |||
18484 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
18485 | } | |||
18486 | ||||
18487 | MOZ_ASSERT(response.type() != RequestResponse::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(response.type() != RequestResponse::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(response.type() != RequestResponse::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("response.type() != RequestResponse::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18487); AnnotateMozCrashReason("MOZ_ASSERT" "(" "response.type() != RequestResponse::T__None" ")"); do { *((volatile int*)__null) = 18487; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18488 | ||||
18489 | if (response.type() == RequestResponse::Tnsresult) { | |||
18490 | MOZ_ASSERT(NS_FAILED(response.get_nsresult()))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(response. get_nsresult())), 0))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( NS_FAILED_impl(response.get_nsresult())), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(NS_FAILED_impl(response.get_nsresult())), 0)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18490); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(response.get_nsresult())), 0)))" ")"); do { *((volatile int*)__null) = 18490; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18491 | ||||
18492 | return response.get_nsresult(); | |||
18493 | } | |||
18494 | ||||
18495 | if (NS_WARN_IF(NS_warn_if_impl(!PBackgroundIDBRequestParent::Send__delete__( this, response), "!PBackgroundIDBRequestParent::Send__delete__(this, response)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18496) | |||
18496 | !PBackgroundIDBRequestParent::Send__delete__(this, response))NS_warn_if_impl(!PBackgroundIDBRequestParent::Send__delete__( this, response), "!PBackgroundIDBRequestParent::Send__delete__(this, response)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18496)) { | |||
18497 | IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18497, "UnknownErr"); | |||
18498 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | |||
18499 | } | |||
18500 | } | |||
18501 | ||||
18502 | #ifdef DEBUG1 | |||
18503 | mResponseSent = true; | |||
18504 | #endif | |||
18505 | ||||
18506 | return NS_OK; | |||
18507 | } | |||
18508 | ||||
18509 | bool NormalTransactionOp::SendFailureResult(nsresult aResultCode) { | |||
18510 | AssertIsOnOwningThread(); | |||
18511 | MOZ_ASSERT(NS_FAILED(aResultCode))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode )), 0))))>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl (aResultCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18511); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))" ")"); do { *((volatile int*)__null) = 18511; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18512 | ||||
18513 | bool result = false; | |||
18514 | ||||
18515 | if (!IsActorDestroyed()) { | |||
18516 | result = PBackgroundIDBRequestParent::Send__delete__( | |||
18517 | this, ClampResultCode(aResultCode)); | |||
18518 | } | |||
18519 | ||||
18520 | #ifdef DEBUG1 | |||
18521 | mResponseSent = true; | |||
18522 | #endif | |||
18523 | ||||
18524 | return result; | |||
18525 | } | |||
18526 | ||||
18527 | void NormalTransactionOp::Cleanup() { | |||
18528 | AssertIsOnOwningThread(); | |||
18529 | MOZ_ASSERT_IF(!IsActorDestroyed(), mResponseSent)do { if (!IsActorDestroyed()) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mResponseSent)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mResponseSent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mResponseSent", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponseSent" ")"); do { *((volatile int*)__null) = 18529; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
18530 | ||||
18531 | TransactionDatabaseOperationBase::Cleanup(); | |||
18532 | } | |||
18533 | ||||
18534 | void NormalTransactionOp::ActorDestroy(ActorDestroyReason aWhy) { | |||
18535 | AssertIsOnOwningThread(); | |||
18536 | ||||
18537 | NoteActorDestroyed(); | |||
18538 | ||||
18539 | // Assume ActorDestroy can happen at any time, so we can't probe the current | |||
18540 | // state since mInternalState can be modified on any thread (only one thread | |||
18541 | // at a time based on the state machine). | |||
18542 | // However we can use mWaitingForContinue which is only touched on the owning | |||
18543 | // thread. If mWaitingForContinue is true, we can also modify mInternalState | |||
18544 | // since we are guaranteed that there are no pending runnables which would | |||
18545 | // probe mInternalState to decide what code needs to run (there shouldn't be | |||
18546 | // any running runnables on other threads either). | |||
18547 | ||||
18548 | if (IsWaitingForContinue()) { | |||
18549 | NoteContinueReceived(); | |||
18550 | } | |||
18551 | ||||
18552 | // We don't have to handle the case when mWaitingForContinue is not true since | |||
18553 | // it means that either nothing has been initialized yet, so nothing to | |||
18554 | // cleanup or there are pending runnables that will detect that the actor has | |||
18555 | // been destroyed and cleanup accordingly. | |||
18556 | } | |||
18557 | ||||
18558 | mozilla::ipc::IPCResult NormalTransactionOp::RecvContinue( | |||
18559 | const PreprocessResponse& aResponse) { | |||
18560 | AssertIsOnOwningThread(); | |||
18561 | ||||
18562 | switch (aResponse.type()) { | |||
18563 | case PreprocessResponse::Tnsresult: | |||
18564 | SetFailureCode(aResponse.get_nsresult()); | |||
18565 | break; | |||
18566 | ||||
18567 | case PreprocessResponse::TObjectStoreGetPreprocessResponse: | |||
18568 | case PreprocessResponse::TObjectStoreGetAllPreprocessResponse: | |||
18569 | break; | |||
18570 | ||||
18571 | default: | |||
18572 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18572); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18572; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
18573 | } | |||
18574 | ||||
18575 | NoteContinueReceived(); | |||
18576 | ||||
18577 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
18578 | } | |||
18579 | ||||
18580 | ObjectStoreAddOrPutRequestOp::ObjectStoreAddOrPutRequestOp( | |||
18581 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | |||
18582 | RequestParams&& aParams) | |||
18583 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | |||
18584 | mParams( | |||
18585 | std::move(aParams.type() == RequestParams::TObjectStoreAddParams | |||
18586 | ? aParams.get_ObjectStoreAddParams().commonParams() | |||
18587 | : aParams.get_ObjectStorePutParams().commonParams())), | |||
18588 | mOriginMetadata(Transaction().GetDatabase().OriginMetadata()), | |||
18589 | mPersistenceType(Transaction().GetDatabase().Type()), | |||
18590 | mOverwrite(aParams.type() == RequestParams::TObjectStorePutParams), | |||
18591 | mObjectStoreMayHaveIndexes(false) { | |||
18592 | MOZ_ASSERT(aParams.type() == RequestParams::TObjectStoreAddParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18593); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams" ")"); do { *((volatile int*)__null) = 18593; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
18593 | aParams.type() == RequestParams::TObjectStorePutParams)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18593); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams" ")"); do { *((volatile int*)__null) = 18593; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18594 | ||||
18595 | mMetadata = | |||
18596 | Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId()); | |||
18597 | MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18597); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"); do { *((volatile int*)__null) = 18597; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18598 | ||||
18599 | mObjectStoreMayHaveIndexes = mMetadata->HasLiveIndexes(); | |||
18600 | ||||
18601 | mDataOverThreshold = | |||
18602 | snappy::MaxCompressedLength(mParams.cloneInfo().data().data.Size()) > | |||
18603 | IndexedDatabaseManager::DataThreshold(); | |||
18604 | } | |||
18605 | ||||
18606 | nsresult ObjectStoreAddOrPutRequestOp::RemoveOldIndexDataValues( | |||
18607 | DatabaseConnection* aConnection) { | |||
18608 | AssertIsOnConnectionThread(); | |||
18609 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18609); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 18609; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18610 | MOZ_ASSERT(mOverwrite)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOverwrite)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOverwrite))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOverwrite", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18610); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOverwrite" ")"); do { *((volatile int*)__null) = 18610; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18611 | MOZ_ASSERT(!mResponse.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mResponse.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mResponse.IsUnset()))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mResponse.IsUnset()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18611); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponse.IsUnset()" ")"); do { *((volatile int*)__null) = 18611; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18612 | ||||
18613 | #ifdef DEBUG1 | |||
18614 | { | |||
18615 | QM_TRY_INSPECT(const bool& hasIndexes,auto tryResult3694 = (DatabaseOperationBase::ObjectStoreHasIndexes ( *aConnection, mParams.objectStoreId())); if ((__builtin_expect (!!(tryResult3694.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3694.unwrapErr(); mozilla::dom::quota ::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18618, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18618); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18618; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult3694.inspect(); | |||
18616 | DatabaseOperationBase::ObjectStoreHasIndexes(auto tryResult3694 = (DatabaseOperationBase::ObjectStoreHasIndexes ( *aConnection, mParams.objectStoreId())); if ((__builtin_expect (!!(tryResult3694.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3694.unwrapErr(); mozilla::dom::quota ::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18618, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18618); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18618; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult3694.inspect(); | |||
18617 | *aConnection, mParams.objectStoreId()),auto tryResult3694 = (DatabaseOperationBase::ObjectStoreHasIndexes ( *aConnection, mParams.objectStoreId())); if ((__builtin_expect (!!(tryResult3694.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3694.unwrapErr(); mozilla::dom::quota ::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18618, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18618); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18618; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult3694.inspect(); | |||
18618 | QM_ASSERT_UNREACHABLE)auto tryResult3694 = (DatabaseOperationBase::ObjectStoreHasIndexes ( *aConnection, mParams.objectStoreId())); if ((__builtin_expect (!!(tryResult3694.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3694.unwrapErr(); mozilla::dom::quota ::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18618, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18618); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { *((volatile int*)__null) = 18618; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult3694.inspect();; | |||
18619 | ||||
18620 | MOZ_ASSERT(hasIndexes,do { static_assert( mozilla::detail::AssertionConditionType< decltype(hasIndexes)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(hasIndexes))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("hasIndexes" " (" "Don't use this slow method if there are no indexes!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18621); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") (" "Don't use this slow method if there are no indexes!" ")" ); do { *((volatile int*)__null) = 18621; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | |||
18621 | "Don't use this slow method if there are no indexes!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(hasIndexes)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(hasIndexes))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("hasIndexes" " (" "Don't use this slow method if there are no indexes!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18621); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") (" "Don't use this slow method if there are no indexes!" ")" ); do { *((volatile int*)__null) = 18621; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
18622 | } | |||
18623 | #endif | |||
18624 | ||||
18625 | QM_TRY_INSPECT(auto tryResult3697 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&self = *this](auto& stmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3695 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect (!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult3695.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18635, mozilla::dom::quota::Severity::Error); return tryResult3695 .propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3696)::ok_type >); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult3696.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18638, mozilla::dom::quota::Severity::Error); return tryResult3696 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult3697.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3695 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect(!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult3695.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18635, mozilla::dom::quota::Severity::Error); return tryResult3695.propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3696)::ok_type>); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult3696.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18638, mozilla::dom::quota::Severity::Error); return tryResult3696.propagateErr(); }}; return Ok{}; })" , tryResult3697.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); return tryResult3697 .propagateErr(); } const auto& indexValuesStmt = tryResult3697 .inspect(); | |||
18626 | const auto& indexValuesStmt,auto tryResult3697 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&self = *this](auto& stmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3695 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect (!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult3695.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18635, mozilla::dom::quota::Severity::Error); return tryResult3695 .propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3696)::ok_type >); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult3696.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18638, mozilla::dom::quota::Severity::Error); return tryResult3696 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult3697.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3695 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect(!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult3695.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18635, mozilla::dom::quota::Severity::Error); return tryResult3695.propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3696)::ok_type>); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult3696.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18638, mozilla::dom::quota::Severity::Error); return tryResult3696.propagateErr(); }}; return Ok{}; })" , tryResult3697.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); return tryResult3697 .propagateErr(); } const auto& indexValuesStmt = tryResult3697 .inspect(); | |||
18627 | aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult3697 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&self = *this](auto& stmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3695 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect (!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult3695.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18635, mozilla::dom::quota::Severity::Error); return tryResult3695 .propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3696)::ok_type >); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult3696.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18638, mozilla::dom::quota::Severity::Error); return tryResult3696 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult3697.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3695 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect(!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult3695.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18635, mozilla::dom::quota::Severity::Error); return tryResult3695.propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3696)::ok_type>); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult3696.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18638, mozilla::dom::quota::Severity::Error); return tryResult3696.propagateErr(); }}; return Ok{}; })" , tryResult3697.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); return tryResult3697 .propagateErr(); } const auto& indexValuesStmt = tryResult3697 .inspect(); | |||
18628 | "SELECT index_data_values "auto tryResult3697 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&self = *this](auto& stmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3695 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect (!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult3695.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18635, mozilla::dom::quota::Severity::Error); return tryResult3695 .propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3696)::ok_type >); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult3696.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18638, mozilla::dom::quota::Severity::Error); return tryResult3696 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult3697.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3695 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect(!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult3695.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18635, mozilla::dom::quota::Severity::Error); return tryResult3695.propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3696)::ok_type>); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult3696.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18638, mozilla::dom::quota::Severity::Error); return tryResult3696.propagateErr(); }}; return Ok{}; })" , tryResult3697.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); return tryResult3697 .propagateErr(); } const auto& indexValuesStmt = tryResult3697 .inspect(); | |||
18629 | "FROM object_data "auto tryResult3697 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&self = *this](auto& stmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3695 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect (!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult3695.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18635, mozilla::dom::quota::Severity::Error); return tryResult3695 .propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3696)::ok_type >); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult3696.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18638, mozilla::dom::quota::Severity::Error); return tryResult3696 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult3697.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3695 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect(!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult3695.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18635, mozilla::dom::quota::Severity::Error); return tryResult3695.propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3696)::ok_type>); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult3696.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18638, mozilla::dom::quota::Severity::Error); return tryResult3696.propagateErr(); }}; return Ok{}; })" , tryResult3697.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); return tryResult3697 .propagateErr(); } const auto& indexValuesStmt = tryResult3697 .inspect(); | |||
18630 | "WHERE object_store_id = :"_ns +auto tryResult3697 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&self = *this](auto& stmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3695 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect (!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult3695.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18635, mozilla::dom::quota::Severity::Error); return tryResult3695 .propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3696)::ok_type >); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult3696.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18638, mozilla::dom::quota::Severity::Error); return tryResult3696 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult3697.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3695 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect(!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult3695.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18635, mozilla::dom::quota::Severity::Error); return tryResult3695.propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3696)::ok_type>); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult3696.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18638, mozilla::dom::quota::Severity::Error); return tryResult3696.propagateErr(); }}; return Ok{}; })" , tryResult3697.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); return tryResult3697 .propagateErr(); } const auto& indexValuesStmt = tryResult3697 .inspect(); | |||
18631 | kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult3697 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&self = *this](auto& stmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3695 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect (!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult3695.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18635, mozilla::dom::quota::Severity::Error); return tryResult3695 .propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3696)::ok_type >); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult3696.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18638, mozilla::dom::quota::Severity::Error); return tryResult3696 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult3697.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3695 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect(!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult3695.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18635, mozilla::dom::quota::Severity::Error); return tryResult3695.propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3696)::ok_type>); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult3696.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18638, mozilla::dom::quota::Severity::Error); return tryResult3696.propagateErr(); }}; return Ok{}; })" , tryResult3697.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); return tryResult3697 .propagateErr(); } const auto& indexValuesStmt = tryResult3697 .inspect(); | |||
18632 | kStmtParamNameKey + ";"_ns,auto tryResult3697 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&self = *this](auto& stmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3695 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect (!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult3695.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18635, mozilla::dom::quota::Severity::Error); return tryResult3695 .propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3696)::ok_type >); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult3696.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18638, mozilla::dom::quota::Severity::Error); return tryResult3696 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult3697.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3695 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect(!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult3695.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18635, mozilla::dom::quota::Severity::Error); return tryResult3695.propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3696)::ok_type>); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult3696.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18638, mozilla::dom::quota::Severity::Error); return tryResult3696.propagateErr(); }}; return Ok{}; })" , tryResult3697.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); return tryResult3697 .propagateErr(); } const auto& indexValuesStmt = tryResult3697 .inspect(); | |||
18633 | [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult3697 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&self = *this](auto& stmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3695 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect (!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult3695.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18635, mozilla::dom::quota::Severity::Error); return tryResult3695 .propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3696)::ok_type >); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult3696.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18638, mozilla::dom::quota::Severity::Error); return tryResult3696 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult3697.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3695 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect(!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult3695.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18635, mozilla::dom::quota::Severity::Error); return tryResult3695.propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3696)::ok_type>); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult3696.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18638, mozilla::dom::quota::Severity::Error); return tryResult3696.propagateErr(); }}; return Ok{}; })" , tryResult3697.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); return tryResult3697 .propagateErr(); } const auto& indexValuesStmt = tryResult3697 .inspect(); | |||
18634 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult3697 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&self = *this](auto& stmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3695 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect (!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult3695.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18635, mozilla::dom::quota::Severity::Error); return tryResult3695 .propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3696)::ok_type >); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult3696.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18638, mozilla::dom::quota::Severity::Error); return tryResult3696 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult3697.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3695 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect(!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult3695.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18635, mozilla::dom::quota::Severity::Error); return tryResult3695.propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3696)::ok_type>); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult3696.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18638, mozilla::dom::quota::Severity::Error); return tryResult3696.propagateErr(); }}; return Ok{}; })" , tryResult3697.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); return tryResult3697 .propagateErr(); } const auto& indexValuesStmt = tryResult3697 .inspect(); | |||
18635 | kStmtParamNameObjectStoreId, self.mParams.objectStoreId())));auto tryResult3697 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&self = *this](auto& stmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3695 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect (!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult3695.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18635, mozilla::dom::quota::Severity::Error); return tryResult3695 .propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3696)::ok_type >); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult3696.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18638, mozilla::dom::quota::Severity::Error); return tryResult3696 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult3697.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3695 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect(!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult3695.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18635, mozilla::dom::quota::Severity::Error); return tryResult3695.propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3696)::ok_type>); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult3696.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18638, mozilla::dom::quota::Severity::Error); return tryResult3696.propagateErr(); }}; return Ok{}; })" , tryResult3697.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); return tryResult3697 .propagateErr(); } const auto& indexValuesStmt = tryResult3697 .inspect(); | |||
18636 | ||||
18637 | QM_TRY(MOZ_TO_RESULT(auto tryResult3697 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&self = *this](auto& stmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3695 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect (!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult3695.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18635, mozilla::dom::quota::Severity::Error); return tryResult3695 .propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3696)::ok_type >); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult3696.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18638, mozilla::dom::quota::Severity::Error); return tryResult3696 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult3697.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3695 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect(!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult3695.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18635, mozilla::dom::quota::Severity::Error); return tryResult3695.propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3696)::ok_type>); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult3696.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18638, mozilla::dom::quota::Severity::Error); return tryResult3696.propagateErr(); }}; return Ok{}; })" , tryResult3697.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); return tryResult3697 .propagateErr(); } const auto& indexValuesStmt = tryResult3697 .inspect(); | |||
18638 | self.mResponse.BindToStatement(&stmt, kStmtParamNameKey)));auto tryResult3697 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&self = *this](auto& stmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3695 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect (!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult3695.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18635, mozilla::dom::quota::Severity::Error); return tryResult3695 .propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3696)::ok_type >); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult3696.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18638, mozilla::dom::quota::Severity::Error); return tryResult3696 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult3697.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3695 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect(!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult3695.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18635, mozilla::dom::quota::Severity::Error); return tryResult3695.propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3696)::ok_type>); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult3696.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18638, mozilla::dom::quota::Severity::Error); return tryResult3696.propagateErr(); }}; return Ok{}; })" , tryResult3697.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); return tryResult3697 .propagateErr(); } const auto& indexValuesStmt = tryResult3697 .inspect(); | |||
18639 | ||||
18640 | return Ok{};auto tryResult3697 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&self = *this](auto& stmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3695 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect (!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult3695.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18635, mozilla::dom::quota::Severity::Error); return tryResult3695 .propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3696)::ok_type >); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult3696.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18638, mozilla::dom::quota::Severity::Error); return tryResult3696 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult3697.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3695 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect(!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult3695.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18635, mozilla::dom::quota::Severity::Error); return tryResult3695.propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3696)::ok_type>); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult3696.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18638, mozilla::dom::quota::Severity::Error); return tryResult3696.propagateErr(); }}; return Ok{}; })" , tryResult3697.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); return tryResult3697 .propagateErr(); } const auto& indexValuesStmt = tryResult3697 .inspect(); | |||
18641 | }))auto tryResult3697 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&self = *this](auto& stmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult3695 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect (!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult3695.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18635, mozilla::dom::quota::Severity::Error); return tryResult3695 .propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult3696)::ok_type >); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult3696.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18638, mozilla::dom::quota::Severity::Error); return tryResult3696 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult3697.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3695 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3695)::ok_type>); if ((__builtin_expect(!!(tryResult3695.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult3695.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18635, mozilla::dom::quota::Severity::Error); return tryResult3695.propagateErr(); }}; {auto tryResult3696 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult3696)::ok_type>); if ((__builtin_expect(!!(tryResult3696.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult3696.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18638, mozilla::dom::quota::Severity::Error); return tryResult3696.propagateErr(); }}; return Ok{}; })" , tryResult3697.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18641, mozilla::dom::quota::Severity::Error); return tryResult3697 .propagateErr(); } const auto& indexValuesStmt = tryResult3697 .inspect();; | |||
18642 | ||||
18643 | if (indexValuesStmt) { | |||
18644 | QM_TRY_INSPECT(const auto& existingIndexValues,auto tryResult3698 = (ReadCompressedIndexDataValues(**indexValuesStmt , 0)); if ((__builtin_expect(!!(tryResult3698.isErr()), 0))) { mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(**indexValuesStmt, 0)" , tryResult3698.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18645, mozilla::dom::quota::Severity::Error); return tryResult3698 .propagateErr(); } const auto& existingIndexValues = tryResult3698 .inspect(); | |||
18645 | ReadCompressedIndexDataValues(**indexValuesStmt, 0))auto tryResult3698 = (ReadCompressedIndexDataValues(**indexValuesStmt , 0)); if ((__builtin_expect(!!(tryResult3698.isErr()), 0))) { mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(**indexValuesStmt, 0)" , tryResult3698.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18645, mozilla::dom::quota::Severity::Error); return tryResult3698 .propagateErr(); } const auto& existingIndexValues = tryResult3698 .inspect();; | |||
18646 | ||||
18647 | QM_TRY(MOZ_TO_RESULT({auto tryResult3699 = (ToResult(DeleteIndexDataTableRows(aConnection , mResponse, existingIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3699)::ok_type>); if ((__builtin_expect (!!(tryResult3699.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))" , tryResult3699.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18648, mozilla::dom::quota::Severity::Error); return tryResult3699 .propagateErr(); }} | |||
18648 | DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))){auto tryResult3699 = (ToResult(DeleteIndexDataTableRows(aConnection , mResponse, existingIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult3699)::ok_type>); if ((__builtin_expect (!!(tryResult3699.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))" , tryResult3699.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18648, mozilla::dom::quota::Severity::Error); return tryResult3699 .propagateErr(); }}; | |||
18649 | } | |||
18650 | ||||
18651 | return NS_OK; | |||
18652 | } | |||
18653 | ||||
18654 | bool ObjectStoreAddOrPutRequestOp::Init(TransactionBase& aTransaction) { | |||
18655 | AssertIsOnOwningThread(); | |||
18656 | ||||
18657 | const nsTArray<IndexUpdateInfo>& indexUpdateInfos = | |||
18658 | mParams.indexUpdateInfos(); | |||
18659 | ||||
18660 | if (!indexUpdateInfos.IsEmpty()) { | |||
18661 | mUniqueIndexTable.emplace(); | |||
18662 | ||||
18663 | for (const auto& updateInfo : indexUpdateInfos) { | |||
18664 | auto indexMetadata = mMetadata->mIndexes.Lookup(updateInfo.indexId()); | |||
18665 | MOZ_ALWAYS_TRUE(indexMetadata)do { if ((__builtin_expect(!!(indexMetadata), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" "indexMetadata" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18665); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "indexMetadata" ")"); do { *((volatile int*)__null) = 18665 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
18666 | ||||
18667 | MOZ_ASSERT(!(*indexMetadata)->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!(*indexMetadata)->mDeleted)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!(*indexMetadata)->mDeleted ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!(*indexMetadata)->mDeleted", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18667); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(*indexMetadata)->mDeleted" ")"); do { *((volatile int*)__null) = 18667; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18668 | ||||
18669 | const IndexOrObjectStoreId& indexId = | |||
18670 | (*indexMetadata)->mCommonMetadata.id(); | |||
18671 | const bool& unique = (*indexMetadata)->mCommonMetadata.unique(); | |||
18672 | ||||
18673 | MOZ_ASSERT(indexId == updateInfo.indexId())do { static_assert( mozilla::detail::AssertionConditionType< decltype(indexId == updateInfo.indexId())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(indexId == updateInfo.indexId ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("indexId == updateInfo.indexId()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexId == updateInfo.indexId()" ")"); do { *((volatile int*)__null) = 18673; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18674 | MOZ_ASSERT_IF(!(*indexMetadata)->mCommonMetadata.multiEntry(),do { if (!(*indexMetadata)->mCommonMetadata.multiEntry()) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mUniqueIndexTable.ref().Contains(indexId))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mUniqueIndexTable.ref().Contains(indexId)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mUniqueIndexTable.ref().Contains(indexId)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18675); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUniqueIndexTable.ref().Contains(indexId)" ")"); do { *((volatile int*)__null) = 18675; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
18675 | !mUniqueIndexTable.ref().Contains(indexId))do { if (!(*indexMetadata)->mCommonMetadata.multiEntry()) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mUniqueIndexTable.ref().Contains(indexId))>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mUniqueIndexTable.ref().Contains(indexId)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mUniqueIndexTable.ref().Contains(indexId)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18675); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUniqueIndexTable.ref().Contains(indexId)" ")"); do { *((volatile int*)__null) = 18675; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
18676 | ||||
18677 | if (NS_WARN_IF(!mUniqueIndexTable.ref().InsertOrUpdate(indexId, unique,NS_warn_if_impl(!mUniqueIndexTable.ref().InsertOrUpdate(indexId , unique, fallible), "!mUniqueIndexTable.ref().InsertOrUpdate(indexId, unique, fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18678) | |||
18678 | fallible))NS_warn_if_impl(!mUniqueIndexTable.ref().InsertOrUpdate(indexId , unique, fallible), "!mUniqueIndexTable.ref().InsertOrUpdate(indexId, unique, fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18678)) { | |||
18679 | return false; | |||
18680 | } | |||
18681 | } | |||
18682 | } else if (mOverwrite) { | |||
18683 | mUniqueIndexTable.emplace(); | |||
18684 | } | |||
18685 | ||||
18686 | if (mUniqueIndexTable.isSome()) { | |||
18687 | mUniqueIndexTable.ref().MarkImmutable(); | |||
18688 | } | |||
18689 | ||||
18690 | QM_TRY_UNWRAP(auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18691 | mStoredFileInfos,auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18692 | TransformIntoNewArray(auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18693 | mParams.fileAddInfos(),auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18694 | [](const auto& fileAddInfo) {auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18695 | MOZ_ASSERT(fileAddInfo.type() == StructuredCloneFileBase::eBlob ||auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18696 | fileAddInfo.type() ==auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18697 | StructuredCloneFileBase::eMutableFile);auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18698 | ||||
18699 | switch (fileAddInfo.type()) {auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18700 | case StructuredCloneFileBase::eBlob: {auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18701 | PBackgroundIDBDatabaseFileParent* file =auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18702 | fileAddInfo.file().AsParent();auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18703 | MOZ_ASSERT(file);auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18704 | ||||
18705 | auto* const fileActor = static_cast<DatabaseFile*>(file);auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18706 | MOZ_ASSERT(fileActor);auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18707 | ||||
18708 | return StoredFileInfo::CreateForBlob(auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18709 | fileActor->GetFileInfoPtr(), fileActor);auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18710 | }auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18711 | ||||
18712 | default:auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18713 | MOZ_CRASH("Should never get here!");auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18714 | }auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18715 | },auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18716 | fallible),auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap (); | |||
18717 | false)auto tryResult3700 = (TransformIntoNewArray( mParams.fileAddInfos (), [](const auto& fileAddInfo) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(fileAddInfo.type () == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase ::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { *((volatile int*)__null) = 18697; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file(). AsParent(); do { static_assert( mozilla::detail::AssertionConditionType <decltype(file)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { *((volatile int*)__null) = 18703; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(fileActor )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("fileActor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { *((volatile int*)__null) = 18706; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr( ), fileActor); } default: do { do { } while (false); MOZ_ReportCrash ("" "Should never get here!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18713); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 18713; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult3700.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3700.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18717, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18697); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18697; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18703); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18703; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18706); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18706; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18713); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18713; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult3700.unwrap ();; | |||
18718 | ||||
18719 | if (mDataOverThreshold) { | |||
18720 | auto fileInfo = | |||
18721 | aTransaction.GetDatabase().GetFileManager().CreateFileInfo(); | |||
18722 | if (NS_WARN_IF(!fileInfo)NS_warn_if_impl(!fileInfo, "!fileInfo", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18722)) { | |||
18723 | return false; | |||
18724 | } | |||
18725 | ||||
18726 | mStoredFileInfos.EmplaceBack(StoredFileInfo::CreateForStructuredClone( | |||
18727 | std::move(fileInfo), | |||
18728 | MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data))); | |||
18729 | } | |||
18730 | ||||
18731 | return true; | |||
18732 | } | |||
18733 | ||||
18734 | nsresult ObjectStoreAddOrPutRequestOp::DoDatabaseWork( | |||
18735 | DatabaseConnection* aConnection) { | |||
18736 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18736); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 18736; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18737 | aConnection->AssertIsOnConnectionThread(); | |||
18738 | MOZ_ASSERT(aConnection->HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection->HasStorageConnection())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(aConnection->HasStorageConnection()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection->HasStorageConnection()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18738); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection->HasStorageConnection()" ")"); do { *((volatile int*)__null) = 18738; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18739 | ||||
18740 | AUTO_PROFILER_LABEL("ObjectStoreAddOrPutRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18740( "ObjectStoreAddOrPutRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
18741 | ||||
18742 | DatabaseConnection::AutoSavepoint autoSave; | |||
18743 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult3701 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3701)::ok_type>); if ((__builtin_expect(!!(tryResult3701 .isErr()), 0))) { auto tryTempError = tryResult3701.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18748, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
18744 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult3701 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3701)::ok_type>); if ((__builtin_expect(!!(tryResult3701 .isErr()), 0))) { auto tryTempError = tryResult3701.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18748, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
18745 | ,{auto tryResult3701 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3701)::ok_type>); if ((__builtin_expect(!!(tryResult3701 .isErr()), 0))) { auto tryTempError = tryResult3701.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18748, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
18746 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult3701 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3701)::ok_type>); if ((__builtin_expect(!!(tryResult3701 .isErr()), 0))) { auto tryTempError = tryResult3701.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18748, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
18747 | #endif{auto tryResult3701 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3701)::ok_type>); if ((__builtin_expect(!!(tryResult3701 .isErr()), 0))) { auto tryTempError = tryResult3701.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18748, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
18748 | ){auto tryResult3701 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3701)::ok_type>); if ((__builtin_expect(!!(tryResult3701 .isErr()), 0))) { auto tryTempError = tryResult3701.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18748, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | |||
18749 | ||||
18750 | QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult3702 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult3702.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult3702.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18752, mozilla::dom::quota::Severity::Error); return tryResult3702 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult3702 .inspect(); | |||
18751 | ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult3702 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult3702.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult3702.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18752, mozilla::dom::quota::Severity::Error); return tryResult3702 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult3702 .inspect(); | |||
18752 | mObjectStoreMayHaveIndexes))auto tryResult3702 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult3702.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult3702.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18752, mozilla::dom::quota::Severity::Error); return tryResult3702 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult3702 .inspect();; | |||
18753 | ||||
18754 | // This will be the final key we use. | |||
18755 | Key& key = mResponse; | |||
18756 | key = mParams.key(); | |||
18757 | ||||
18758 | const bool keyUnset = key.IsUnset(); | |||
18759 | const IndexOrObjectStoreId osid = mParams.objectStoreId(); | |||
18760 | ||||
18761 | // First delete old index_data_values if we're overwriting something and we | |||
18762 | // have indexes. | |||
18763 | if (mOverwrite && !keyUnset && objectStoreHasIndexes) { | |||
18764 | QM_TRY(MOZ_TO_RESULT(RemoveOldIndexDataValues(aConnection))){auto tryResult3703 = (ToResult(RemoveOldIndexDataValues(aConnection ))); static_assert(std::is_empty_v<typename decltype(tryResult3703 )::ok_type>); if ((__builtin_expect(!!(tryResult3703.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveOldIndexDataValues(aConnection))" , tryResult3703.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18764, mozilla::dom::quota::Severity::Error); return tryResult3703 .propagateErr(); }}; | |||
18765 | } | |||
18766 | ||||
18767 | int64_t autoIncrementNum = 0; | |||
18768 | ||||
18769 | { | |||
18770 | // The "|| keyUnset" here is mostly a debugging tool. If a key isn't | |||
18771 | // specified we should never have a collision and so it shouldn't matter | |||
18772 | // if we allow overwrite or not. By not allowing overwrite we raise | |||
18773 | // detectable errors rather than corrupting data. | |||
18774 | const auto optReplaceDirective = | |||
18775 | (!mOverwrite || keyUnset) ? ""_ns : "OR REPLACE "_ns; | |||
18776 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3704 = (aConnection->BorrowCachedStatement( "INSERT "_ns + optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) " "VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey + ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData + ");"_ns)); if ((__builtin_expect(!!(tryResult3704.isErr()) , 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)" , tryResult3704.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18784, mozilla::dom::quota::Severity::Error); return tryResult3704 .propagateErr(); } const auto& stmt = tryResult3704.inspect (); | |||
18777 | aConnection->BorrowCachedStatement(auto tryResult3704 = (aConnection->BorrowCachedStatement( "INSERT "_ns + optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) " "VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey + ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData + ");"_ns)); if ((__builtin_expect(!!(tryResult3704.isErr()) , 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)" , tryResult3704.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18784, mozilla::dom::quota::Severity::Error); return tryResult3704 .propagateErr(); } const auto& stmt = tryResult3704.inspect (); | |||
18778 | "INSERT "_ns + optReplaceDirective +auto tryResult3704 = (aConnection->BorrowCachedStatement( "INSERT "_ns + optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) " "VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey + ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData + ");"_ns)); if ((__builtin_expect(!!(tryResult3704.isErr()) , 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)" , tryResult3704.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18784, mozilla::dom::quota::Severity::Error); return tryResult3704 .propagateErr(); } const auto& stmt = tryResult3704.inspect (); | |||
18779 | "INTO object_data "auto tryResult3704 = (aConnection->BorrowCachedStatement( "INSERT "_ns + optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) " "VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey + ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData + ");"_ns)); if ((__builtin_expect(!!(tryResult3704.isErr()) , 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)" , tryResult3704.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18784, mozilla::dom::quota::Severity::Error); return tryResult3704 .propagateErr(); } const auto& stmt = tryResult3704.inspect (); | |||
18780 | "(object_store_id, key, file_ids, data) "auto tryResult3704 = (aConnection->BorrowCachedStatement( "INSERT "_ns + optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) " "VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey + ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData + ");"_ns)); if ((__builtin_expect(!!(tryResult3704.isErr()) , 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)" , tryResult3704.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18784, mozilla::dom::quota::Severity::Error); return tryResult3704 .propagateErr(); } const auto& stmt = tryResult3704.inspect (); | |||
18781 | "VALUES (:"_ns +auto tryResult3704 = (aConnection->BorrowCachedStatement( "INSERT "_ns + optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) " "VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey + ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData + ");"_ns)); if ((__builtin_expect(!!(tryResult3704.isErr()) , 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)" , tryResult3704.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18784, mozilla::dom::quota::Severity::Error); return tryResult3704 .propagateErr(); } const auto& stmt = tryResult3704.inspect (); | |||
18782 | kStmtParamNameObjectStoreId + ", :"_ns +auto tryResult3704 = (aConnection->BorrowCachedStatement( "INSERT "_ns + optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) " "VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey + ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData + ");"_ns)); if ((__builtin_expect(!!(tryResult3704.isErr()) , 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)" , tryResult3704.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18784, mozilla::dom::quota::Severity::Error); return tryResult3704 .propagateErr(); } const auto& stmt = tryResult3704.inspect (); | |||
18783 | kStmtParamNameKey + ", :"_ns + kStmtParamNameFileIds +auto tryResult3704 = (aConnection->BorrowCachedStatement( "INSERT "_ns + optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) " "VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey + ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData + ");"_ns)); if ((__builtin_expect(!!(tryResult3704.isErr()) , 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)" , tryResult3704.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18784, mozilla::dom::quota::Severity::Error); return tryResult3704 .propagateErr(); } const auto& stmt = tryResult3704.inspect (); | |||
18784 | ", :"_ns + kStmtParamNameData + ");"_ns))auto tryResult3704 = (aConnection->BorrowCachedStatement( "INSERT "_ns + optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) " "VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey + ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData + ");"_ns)); if ((__builtin_expect(!!(tryResult3704.isErr()) , 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)" , tryResult3704.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18784, mozilla::dom::quota::Severity::Error); return tryResult3704 .propagateErr(); } const auto& stmt = tryResult3704.inspect ();; | |||
18785 | ||||
18786 | QM_TRY(MOZ_TO_RESULT({auto tryResult3705 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , osid))); static_assert(std::is_empty_v<typename decltype (tryResult3705)::ok_type>); if ((__builtin_expect(!!(tryResult3705 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))" , tryResult3705.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18787, mozilla::dom::quota::Severity::Error); return tryResult3705 .propagateErr(); }} | |||
18787 | stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))){auto tryResult3705 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , osid))); static_assert(std::is_empty_v<typename decltype (tryResult3705)::ok_type>); if ((__builtin_expect(!!(tryResult3705 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))" , tryResult3705.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18787, mozilla::dom::quota::Severity::Error); return tryResult3705 .propagateErr(); }}; | |||
18788 | ||||
18789 | const SerializedStructuredCloneWriteInfo& cloneInfo = mParams.cloneInfo(); | |||
18790 | const JSStructuredCloneData& cloneData = cloneInfo.data().data; | |||
18791 | const size_t cloneDataSize = cloneData.Size(); | |||
18792 | ||||
18793 | MOZ_ASSERT(!keyUnset || mMetadata->mCommonMetadata.autoIncrement(),do { static_assert( mozilla::detail::AssertionConditionType< decltype(!keyUnset || mMetadata->mCommonMetadata.autoIncrement ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!keyUnset || mMetadata->mCommonMetadata.autoIncrement ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!keyUnset || mMetadata->mCommonMetadata.autoIncrement()" " (" "Should have key unless autoIncrement" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18794); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset || mMetadata->mCommonMetadata.autoIncrement()" ") (" "Should have key unless autoIncrement" ")"); do { *((volatile int*)__null) = 18794; __attribute__((nomerge)) ::abort(); } while (false); } } while (false) | |||
18794 | "Should have key unless autoIncrement")do { static_assert( mozilla::detail::AssertionConditionType< decltype(!keyUnset || mMetadata->mCommonMetadata.autoIncrement ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!keyUnset || mMetadata->mCommonMetadata.autoIncrement ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!keyUnset || mMetadata->mCommonMetadata.autoIncrement()" " (" "Should have key unless autoIncrement" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18794); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset || mMetadata->mCommonMetadata.autoIncrement()" ") (" "Should have key unless autoIncrement" ")"); do { *((volatile int*)__null) = 18794; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); | |||
18795 | ||||
18796 | if (mMetadata->mCommonMetadata.autoIncrement()) { | |||
18797 | if (keyUnset) { | |||
18798 | { | |||
18799 | const auto&& lockedAutoIncrementIds = | |||
18800 | mMetadata->mAutoIncrementIds.Lock(); | |||
18801 | ||||
18802 | autoIncrementNum = lockedAutoIncrementIds->next; | |||
18803 | } | |||
18804 | ||||
18805 | MOZ_ASSERT(autoIncrementNum > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(autoIncrementNum > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(autoIncrementNum > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("autoIncrementNum > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18805); AnnotateMozCrashReason("MOZ_ASSERT" "(" "autoIncrementNum > 0" ")"); do { *((volatile int*)__null) = 18805; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18806 | ||||
18807 | if (autoIncrementNum > (1LL << 53)) { | |||
18808 | return NS_ERROR_DOM_INDEXEDDB_CONSTRAINT_ERR; | |||
18809 | } | |||
18810 | ||||
18811 | QM_TRY(key.SetFromInteger(autoIncrementNum)){auto tryResult3706 = (key.SetFromInteger(autoIncrementNum)); static_assert(std::is_empty_v<typename decltype(tryResult3706 )::ok_type>); if ((__builtin_expect(!!(tryResult3706.isErr ()), 0))) { mozilla::dom::quota::HandleError("key.SetFromInteger(autoIncrementNum)" , tryResult3706.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18811, mozilla::dom::quota::Severity::Error); return tryResult3706 .propagateErr(); }}; | |||
18812 | ||||
18813 | // Update index keys if primary key is preserved in child. | |||
18814 | for (auto& updateInfo : mParams.indexUpdateInfos()) { | |||
18815 | updateInfo.value().MaybeUpdateAutoIncrementKey(autoIncrementNum); | |||
18816 | } | |||
18817 | } else if (key.IsFloat()) { | |||
18818 | double numericKey = key.ToFloat(); | |||
18819 | numericKey = std::min(numericKey, double(1LL << 53)); | |||
18820 | numericKey = floor(numericKey); | |||
18821 | ||||
18822 | const auto&& lockedAutoIncrementIds = | |||
18823 | mMetadata->mAutoIncrementIds.Lock(); | |||
18824 | if (numericKey >= lockedAutoIncrementIds->next) { | |||
18825 | autoIncrementNum = numericKey; | |||
18826 | } | |||
18827 | } | |||
18828 | ||||
18829 | if (keyUnset && mMetadata->mCommonMetadata.keyPath().IsValid()) { | |||
18830 | const SerializedStructuredCloneWriteInfo& cloneInfo = | |||
18831 | mParams.cloneInfo(); | |||
18832 | MOZ_ASSERT(cloneInfo.offsetToKeyProp())do { static_assert( mozilla::detail::AssertionConditionType< decltype(cloneInfo.offsetToKeyProp())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(cloneInfo.offsetToKeyProp()) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("cloneInfo.offsetToKeyProp()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18832); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp()" ")"); do { *((volatile int*)__null) = 18832; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18833 | MOZ_ASSERT(cloneDataSize > sizeof(uint64_t))do { static_assert( mozilla::detail::AssertionConditionType< decltype(cloneDataSize > sizeof(uint64_t))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(cloneDataSize > sizeof(uint64_t )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("cloneDataSize > sizeof(uint64_t)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18833); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneDataSize > sizeof(uint64_t)" ")"); do { *((volatile int*)__null) = 18833; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18834 | MOZ_ASSERT(cloneInfo.offsetToKeyProp() <=do { static_assert( mozilla::detail::AssertionConditionType< decltype(cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof (uint64_t)))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18835); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))" ")"); do { *((volatile int*)__null) = 18835; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
18835 | (cloneDataSize - sizeof(uint64_t)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof (uint64_t)))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18835); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))" ")"); do { *((volatile int*)__null) = 18835; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18836 | ||||
18837 | // Special case where someone put an object into an autoIncrement'ing | |||
18838 | // objectStore with no key in its keyPath set. We needed to figure out | |||
18839 | // which row id we would get above before we could set that properly. | |||
18840 | uint64_t keyPropValue = | |||
18841 | ReinterpretDoubleAsUInt64(static_cast<double>(autoIncrementNum)); | |||
18842 | ||||
18843 | static const size_t keyPropSize = sizeof(uint64_t); | |||
18844 | ||||
18845 | char keyPropBuffer[keyPropSize]; | |||
18846 | LittleEndian::writeUint64(keyPropBuffer, keyPropValue); | |||
18847 | ||||
18848 | auto iter = cloneData.Start(); | |||
18849 | MOZ_ALWAYS_TRUE(cloneData.Advance(iter, cloneInfo.offsetToKeyProp()))do { if ((__builtin_expect(!!(cloneData.Advance(iter, cloneInfo .offsetToKeyProp())), 1))) { } else { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(false)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cloneData.Advance(iter, cloneInfo.offsetToKeyProp())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18849); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "cloneData.Advance(iter, cloneInfo.offsetToKeyProp())" ")"); do { *((volatile int*)__null) = 18849; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
18850 | MOZ_ALWAYS_TRUE(do { if ((__builtin_expect(!!(cloneData.UpdateBytes(iter, keyPropBuffer , keyPropSize)), 1))) { } else { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(false)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18851); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)" ")"); do { *((volatile int*)__null) = 18851; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
18851 | cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize))do { if ((__builtin_expect(!!(cloneData.UpdateBytes(iter, keyPropBuffer , keyPropSize)), 1))) { } else { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(false)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18851); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)" ")"); do { *((volatile int*)__null) = 18851; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
18852 | } | |||
18853 | } | |||
18854 | ||||
18855 | key.BindToStatement(&*stmt, kStmtParamNameKey); | |||
18856 | ||||
18857 | if (mDataOverThreshold) { | |||
18858 | // The data we store in the SQLite database is a (signed) 64-bit integer. | |||
18859 | // The flags are left-shifted 32 bits so the max value is 0xFFFFFFFF. | |||
18860 | // The file_ids index occupies the lower 32 bits and its max is | |||
18861 | // 0xFFFFFFFF. | |||
18862 | static const uint32_t kCompressedFlag = (1 << 0); | |||
18863 | ||||
18864 | uint32_t flags = 0; | |||
18865 | flags |= kCompressedFlag; | |||
18866 | ||||
18867 | const uint32_t index = mStoredFileInfos.Length() - 1; | |||
18868 | ||||
18869 | const int64_t data = (uint64_t(flags) << 32) | index; | |||
18870 | ||||
18871 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameData, data))){auto tryResult3707 = (ToResult(stmt->BindInt64ByName(kStmtParamNameData , data))); static_assert(std::is_empty_v<typename decltype (tryResult3707)::ok_type>); if ((__builtin_expect(!!(tryResult3707 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameData, data))" , tryResult3707.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18871, mozilla::dom::quota::Severity::Error); return tryResult3707 .propagateErr(); }}; | |||
18872 | } else { | |||
18873 | AutoTArray<char, 4096> flatCloneData; // 4096 from JSStructuredCloneData | |||
18874 | QM_TRY(OkIf(flatCloneData.SetLength(cloneDataSize, fallible)),{auto tryResult3708 = (OkIf(flatCloneData.SetLength(cloneDataSize , fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3708)::ok_type>); if ((__builtin_expect(!!(tryResult3708 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3708.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(flatCloneData.SetLength(cloneDataSize, fallible))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18875, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(flatCloneData.SetLength(cloneDataSize, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }} | |||
18875 | Err(NS_ERROR_OUT_OF_MEMORY)){auto tryResult3708 = (OkIf(flatCloneData.SetLength(cloneDataSize , fallible))); static_assert(std::is_empty_v<typename decltype (tryResult3708)::ok_type>); if ((__builtin_expect(!!(tryResult3708 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3708.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(flatCloneData.SetLength(cloneDataSize, fallible))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18875, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(flatCloneData.SetLength(cloneDataSize, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; | |||
18876 | ||||
18877 | { | |||
18878 | auto iter = cloneData.Start(); | |||
18879 | MOZ_ALWAYS_TRUE(do { if ((__builtin_expect(!!(cloneData.ReadBytes(iter, flatCloneData .Elements(), cloneDataSize)), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18880); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)" ")"); do { *((volatile int*)__null) = 18880; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
18880 | cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize))do { if ((__builtin_expect(!!(cloneData.ReadBytes(iter, flatCloneData .Elements(), cloneDataSize)), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18880); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)" ")"); do { *((volatile int*)__null) = 18880; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
18881 | } | |||
18882 | ||||
18883 | // Compress the bytes before adding into the database. | |||
18884 | const char* const uncompressed = flatCloneData.Elements(); | |||
18885 | const size_t uncompressedLength = cloneDataSize; | |||
18886 | ||||
18887 | size_t compressedLength = snappy::MaxCompressedLength(uncompressedLength); | |||
18888 | ||||
18889 | UniqueFreePtr<char> compressed( | |||
18890 | static_cast<char*>(malloc(compressedLength))); | |||
18891 | if (NS_WARN_IF(!compressed)NS_warn_if_impl(!compressed, "!compressed", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18891)) { | |||
18892 | return NS_ERROR_OUT_OF_MEMORY; | |||
18893 | } | |||
18894 | ||||
18895 | snappy::RawCompress(uncompressed, uncompressedLength, compressed.get(), | |||
18896 | &compressedLength); | |||
18897 | ||||
18898 | uint8_t* const dataBuffer = | |||
18899 | reinterpret_cast<uint8_t*>(compressed.release()); | |||
18900 | const size_t dataBufferLength = compressedLength; | |||
18901 | ||||
18902 | QM_TRY(MOZ_TO_RESULT(stmt->BindAdoptedBlobByName({auto tryResult3709 = (ToResult(stmt->BindAdoptedBlobByName ( kStmtParamNameData, dataBuffer, dataBufferLength))); static_assert (std::is_empty_v<typename decltype(tryResult3709)::ok_type >); if ((__builtin_expect(!!(tryResult3709.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindAdoptedBlobByName( kStmtParamNameData, dataBuffer, dataBufferLength))" , tryResult3709.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18903, mozilla::dom::quota::Severity::Error); return tryResult3709 .propagateErr(); }} | |||
18903 | kStmtParamNameData, dataBuffer, dataBufferLength))){auto tryResult3709 = (ToResult(stmt->BindAdoptedBlobByName ( kStmtParamNameData, dataBuffer, dataBufferLength))); static_assert (std::is_empty_v<typename decltype(tryResult3709)::ok_type >); if ((__builtin_expect(!!(tryResult3709.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindAdoptedBlobByName( kStmtParamNameData, dataBuffer, dataBufferLength))" , tryResult3709.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18903, mozilla::dom::quota::Severity::Error); return tryResult3709 .propagateErr(); }}; | |||
18904 | } | |||
18905 | ||||
18906 | if (!mStoredFileInfos.IsEmpty()) { | |||
18907 | // Moved outside the loop to allow it to be cached when demanded by the | |||
18908 | // first write. (We may have mStoredFileInfos without any required | |||
18909 | // writes.) | |||
18910 | Maybe<FileHelper> fileHelper; | |||
18911 | nsAutoString fileIds; | |||
18912 | ||||
18913 | for (auto& storedFileInfo : mStoredFileInfos) { | |||
18914 | MOZ_ASSERT(storedFileInfo.IsValid())do { static_assert( mozilla::detail::AssertionConditionType< decltype(storedFileInfo.IsValid())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(storedFileInfo.IsValid()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("storedFileInfo.IsValid()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18914); AnnotateMozCrashReason("MOZ_ASSERT" "(" "storedFileInfo.IsValid()" ")"); do { *((volatile int*)__null) = 18914; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18915 | ||||
18916 | QM_TRY_INSPECT(const auto& inputStream,auto tryResult3710 = (storedFileInfo.GetInputStream()); if (( __builtin_expect(!!(tryResult3710.isErr()), 0))) { mozilla::dom ::quota::HandleError("storedFileInfo.GetInputStream()", tryResult3710 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18917, mozilla::dom::quota::Severity::Error); return tryResult3710 .propagateErr(); } const auto& inputStream = tryResult3710 .inspect(); | |||
18917 | storedFileInfo.GetInputStream())auto tryResult3710 = (storedFileInfo.GetInputStream()); if (( __builtin_expect(!!(tryResult3710.isErr()), 0))) { mozilla::dom ::quota::HandleError("storedFileInfo.GetInputStream()", tryResult3710 .inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18917, mozilla::dom::quota::Severity::Error); return tryResult3710 .propagateErr(); } const auto& inputStream = tryResult3710 .inspect();; | |||
18918 | ||||
18919 | if (inputStream) { | |||
18920 | if (fileHelper.isNothing()) { | |||
18921 | fileHelper.emplace(Transaction().GetDatabase().GetFileManagerPtr()); | |||
18922 | QM_TRY(MOZ_TO_RESULT(fileHelper->Init()),{auto tryResult3711 = (ToResult(fileHelper->Init())); static_assert (std::is_empty_v<typename decltype(tryResult3711)::ok_type >); if ((__builtin_expect(!!(tryResult3711.isErr()), 0))) { auto tryTempError = tryResult3711.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(fileHelper->Init())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18924, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18924, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->Init())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
18923 | NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult3711 = (ToResult(fileHelper->Init())); static_assert (std::is_empty_v<typename decltype(tryResult3711)::ok_type >); if ((__builtin_expect(!!(tryResult3711.isErr()), 0))) { auto tryTempError = tryResult3711.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(fileHelper->Init())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18924, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18924, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->Init())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
18924 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult3711 = (ToResult(fileHelper->Init())); static_assert (std::is_empty_v<typename decltype(tryResult3711)::ok_type >); if ((__builtin_expect(!!(tryResult3711.isErr()), 0))) { auto tryTempError = tryResult3711.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(fileHelper->Init())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18924, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18924, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->Init())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | |||
18925 | } | |||
18926 | ||||
18927 | const DatabaseFileInfo& fileInfo = storedFileInfo.GetFileInfo(); | |||
18928 | const DatabaseFileManager& fileManager = fileInfo.Manager(); | |||
18929 | ||||
18930 | const auto file = fileHelper->GetFile(fileInfo); | |||
18931 | QM_TRY(OkIf(file), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult3712 = (OkIf(file)); static_assert(std::is_empty_v <typename decltype(tryResult3712)::ok_type>); if ((__builtin_expect (!!(tryResult3712.isErr()), 0))) { auto tryTempError = tryResult3712 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(file)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18932, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18932, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError , NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
18932 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult3712 = (OkIf(file)); static_assert(std::is_empty_v <typename decltype(tryResult3712)::ok_type>); if ((__builtin_expect (!!(tryResult3712.isErr()), 0))) { auto tryTempError = tryResult3712 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(file)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18932, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18932, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError , NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | |||
18933 | ||||
18934 | const auto journalFile = fileHelper->GetJournalFile(fileInfo); | |||
18935 | QM_TRY(OkIf(journalFile), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult3713 = (OkIf(journalFile)); static_assert(std:: is_empty_v<typename decltype(tryResult3713)::ok_type>); if ((__builtin_expect(!!(tryResult3713.isErr()), 0))) { auto tryTempError = tryResult3713.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(journalFile)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18936, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18936, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)", tryTempError , NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
18936 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult3713 = (OkIf(journalFile)); static_assert(std:: is_empty_v<typename decltype(tryResult3713)::ok_type>); if ((__builtin_expect(!!(tryResult3713.isErr()), 0))) { auto tryTempError = tryResult3713.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(journalFile)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18936, mozilla::dom::quota::Severity::Error); [](const auto &) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18936, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)", tryTempError , NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | |||
18937 | ||||
18938 | nsCString fileKeyId; | |||
18939 | fileKeyId.AppendInt(fileInfo.Id()); | |||
18940 | ||||
18941 | const auto maybeKey = | |||
18942 | fileManager.IsInPrivateBrowsingMode() | |||
18943 | ? fileManager.MutableCipherKeyManagerRef().Get(fileKeyId) | |||
18944 | : Nothing(); | |||
18945 | ||||
18946 | QM_TRY(MOZ_TO_RESULT(fileHelper->CreateFileFromStream({auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18947 | *file, *journalFile, *inputStream,{auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18948 | storedFileInfo.ShouldCompress(), maybeKey)){auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18949 | .mapErr([](const nsresult rv) {{auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18950 | if (NS_ERROR_GET_MODULE(rv) !={auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18951 | NS_ERROR_MODULE_DOM_INDEXEDDB) {{auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18952 | IDB_REPORT_INTERNAL_ERR();{auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18953 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;{auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18954 | }{auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18955 | return rv;{auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18956 | }),{auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18957 | QM_PROPAGATE,{auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18958 | ([&fileManager, &file = *file,{auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18959 | &journalFile = *journalFile](const auto) {{auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18960 | // Try to remove the file if the copy failed.{auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18961 | QM_TRY(MOZ_TO_RESULT({auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18962 | fileManager.SyncDeleteFile(file, journalFile)),{auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18963 | QM_VOID);{auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | |||
18964 | })){auto tryResult3715 = (ToResult(fileHelper->CreateFileFromStream ( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress (), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE (rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18952, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult3715)::ok_type>); if ((__builtin_expect (!!(tryResult3715.isErr()), 0))) { auto tryTempError = tryResult3715 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18964, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult3714 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3714)::ok_type>); if ((__builtin_expect (!!(tryResult3714.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3714.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; }}; })(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18952, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }}; | |||
18965 | ||||
18966 | storedFileInfo.NotifyWriteSucceeded(); | |||
18967 | } | |||
18968 | ||||
18969 | if (!fileIds.IsEmpty()) { | |||
18970 | fileIds.Append(' '); | |||
18971 | } | |||
18972 | storedFileInfo.Serialize(fileIds); | |||
18973 | } | |||
18974 | ||||
18975 | QM_TRY(MOZ_TO_RESULT({auto tryResult3716 = (ToResult(stmt->BindStringByName(kStmtParamNameFileIds , fileIds))); static_assert(std::is_empty_v<typename decltype (tryResult3716)::ok_type>); if ((__builtin_expect(!!(tryResult3716 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByName(kStmtParamNameFileIds, fileIds))" , tryResult3716.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18976, mozilla::dom::quota::Severity::Error); return tryResult3716 .propagateErr(); }} | |||
18976 | stmt->BindStringByName(kStmtParamNameFileIds, fileIds))){auto tryResult3716 = (ToResult(stmt->BindStringByName(kStmtParamNameFileIds , fileIds))); static_assert(std::is_empty_v<typename decltype (tryResult3716)::ok_type>); if ((__builtin_expect(!!(tryResult3716 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByName(kStmtParamNameFileIds, fileIds))" , tryResult3716.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18976, mozilla::dom::quota::Severity::Error); return tryResult3716 .propagateErr(); }}; | |||
18977 | } else { | |||
18978 | QM_TRY(MOZ_TO_RESULT(stmt->BindNullByName(kStmtParamNameFileIds))){auto tryResult3717 = (ToResult(stmt->BindNullByName(kStmtParamNameFileIds ))); static_assert(std::is_empty_v<typename decltype(tryResult3717 )::ok_type>); if ((__builtin_expect(!!(tryResult3717.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindNullByName(kStmtParamNameFileIds))" , tryResult3717.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18978, mozilla::dom::quota::Severity::Error); return tryResult3717 .propagateErr(); }}; | |||
18979 | } | |||
18980 | ||||
18981 | QM_TRY(MOZ_TO_RESULT(stmt->Execute()), QM_PROPAGATE,{auto tryResult3718 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3718)::ok_type >); if ((__builtin_expect(!!(tryResult3718.isErr()), 0))) { auto tryTempError = tryResult3718.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18986, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly {keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!keyUnset)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { *((volatile int*)__null) = 18984; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(stmt->Execute())" , tryTempError, Err(tryTempError)); }} | |||
18982 | [keyUnset = DebugOnly{keyUnset}](const nsresult rv) {{auto tryResult3718 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3718)::ok_type >); if ((__builtin_expect(!!(tryResult3718.isErr()), 0))) { auto tryTempError = tryResult3718.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18986, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly {keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!keyUnset)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { *((volatile int*)__null) = 18984; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(stmt->Execute())" , tryTempError, Err(tryTempError)); }} | |||
18983 | if (rv == NS_ERROR_STORAGE_CONSTRAINT) {{auto tryResult3718 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3718)::ok_type >); if ((__builtin_expect(!!(tryResult3718.isErr()), 0))) { auto tryTempError = tryResult3718.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18986, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly {keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!keyUnset)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { *((volatile int*)__null) = 18984; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(stmt->Execute())" , tryTempError, Err(tryTempError)); }} | |||
18984 | MOZ_ASSERT(!keyUnset, "Generated key had a collision!");{auto tryResult3718 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3718)::ok_type >); if ((__builtin_expect(!!(tryResult3718.isErr()), 0))) { auto tryTempError = tryResult3718.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18986, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly {keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!keyUnset)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { *((volatile int*)__null) = 18984; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(stmt->Execute())" , tryTempError, Err(tryTempError)); }} | |||
18985 | }{auto tryResult3718 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3718)::ok_type >); if ((__builtin_expect(!!(tryResult3718.isErr()), 0))) { auto tryTempError = tryResult3718.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18986, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly {keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!keyUnset)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { *((volatile int*)__null) = 18984; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(stmt->Execute())" , tryTempError, Err(tryTempError)); }} | |||
18986 | }){auto tryResult3718 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult3718)::ok_type >); if ((__builtin_expect(!!(tryResult3718.isErr()), 0))) { auto tryTempError = tryResult3718.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18986, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly {keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(!keyUnset)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { *((volatile int*)__null) = 18984; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(stmt->Execute())" , tryTempError, Err(tryTempError)); }}; | |||
18987 | } | |||
18988 | ||||
18989 | // Update our indexes if needed. | |||
18990 | if (!mParams.indexUpdateInfos().IsEmpty()) { | |||
18991 | MOZ_ASSERT(mUniqueIndexTable.isSome())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mUniqueIndexTable.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mUniqueIndexTable.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mUniqueIndexTable.isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18991); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUniqueIndexTable.isSome()" ")"); do { *((volatile int*)__null) = 18991; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
18992 | ||||
18993 | // Write the index_data_values column. | |||
18994 | QM_TRY_INSPECT(const auto& indexValues,auto tryResult3719 = (IndexDataValuesFromUpdateInfos(mParams. indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect (!!(tryResult3719.isErr()), 0))) { mozilla::dom::quota::HandleError ("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())" , tryResult3719.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18996, mozilla::dom::quota::Severity::Error); return tryResult3719 .propagateErr(); } const auto& indexValues = tryResult3719 .inspect(); | |||
18995 | IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(),auto tryResult3719 = (IndexDataValuesFromUpdateInfos(mParams. indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect (!!(tryResult3719.isErr()), 0))) { mozilla::dom::quota::HandleError ("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())" , tryResult3719.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18996, mozilla::dom::quota::Severity::Error); return tryResult3719 .propagateErr(); } const auto& indexValues = tryResult3719 .inspect(); | |||
18996 | mUniqueIndexTable.ref()))auto tryResult3719 = (IndexDataValuesFromUpdateInfos(mParams. indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect (!!(tryResult3719.isErr()), 0))) { mozilla::dom::quota::HandleError ("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())" , tryResult3719.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18996, mozilla::dom::quota::Severity::Error); return tryResult3719 .propagateErr(); } const auto& indexValues = tryResult3719 .inspect();; | |||
18997 | ||||
18998 | QM_TRY({auto tryResult3720 = (ToResult(UpdateIndexValues(aConnection , osid, key, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3720)::ok_type>); if ((__builtin_expect (!!(tryResult3720.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(UpdateIndexValues(aConnection, osid, key, indexValues))" , tryResult3720.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18999, mozilla::dom::quota::Severity::Error); return tryResult3720 .propagateErr(); }} | |||
18999 | MOZ_TO_RESULT(UpdateIndexValues(aConnection, osid, key, indexValues))){auto tryResult3720 = (ToResult(UpdateIndexValues(aConnection , osid, key, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3720)::ok_type>); if ((__builtin_expect (!!(tryResult3720.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(UpdateIndexValues(aConnection, osid, key, indexValues))" , tryResult3720.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 18999, mozilla::dom::quota::Severity::Error); return tryResult3720 .propagateErr(); }}; | |||
19000 | ||||
19001 | QM_TRY(MOZ_TO_RESULT({auto tryResult3721 = (ToResult(InsertIndexTableRows(aConnection , osid, key, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3721)::ok_type>); if ((__builtin_expect (!!(tryResult3721.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(InsertIndexTableRows(aConnection, osid, key, indexValues))" , tryResult3721.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19002, mozilla::dom::quota::Severity::Error); return tryResult3721 .propagateErr(); }} | |||
19002 | InsertIndexTableRows(aConnection, osid, key, indexValues))){auto tryResult3721 = (ToResult(InsertIndexTableRows(aConnection , osid, key, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult3721)::ok_type>); if ((__builtin_expect (!!(tryResult3721.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(InsertIndexTableRows(aConnection, osid, key, indexValues))" , tryResult3721.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19002, mozilla::dom::quota::Severity::Error); return tryResult3721 .propagateErr(); }}; | |||
19003 | } | |||
19004 | ||||
19005 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult3722 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult3722)::ok_type >); if ((__builtin_expect(!!(tryResult3722.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult3722.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19005, mozilla::dom::quota::Severity::Error); return tryResult3722 .propagateErr(); }}; | |||
19006 | ||||
19007 | if (autoIncrementNum) { | |||
19008 | { | |||
19009 | auto&& lockedAutoIncrementIds = mMetadata->mAutoIncrementIds.Lock(); | |||
19010 | ||||
19011 | lockedAutoIncrementIds->next = autoIncrementNum + 1; | |||
19012 | } | |||
19013 | ||||
19014 | Transaction().NoteModifiedAutoIncrementObjectStore(mMetadata); | |||
19015 | } | |||
19016 | ||||
19017 | return NS_OK; | |||
19018 | } | |||
19019 | ||||
19020 | void ObjectStoreAddOrPutRequestOp::GetResponse(RequestResponse& aResponse, | |||
19021 | size_t* aResponseSize) { | |||
19022 | AssertIsOnOwningThread(); | |||
19023 | ||||
19024 | if (mOverwrite) { | |||
19025 | aResponse = ObjectStorePutResponse(mResponse); | |||
19026 | *aResponseSize = mResponse.GetBuffer().Length(); | |||
19027 | } else { | |||
19028 | aResponse = ObjectStoreAddResponse(mResponse); | |||
19029 | *aResponseSize = mResponse.GetBuffer().Length(); | |||
19030 | } | |||
19031 | } | |||
19032 | ||||
19033 | void ObjectStoreAddOrPutRequestOp::Cleanup() { | |||
19034 | AssertIsOnOwningThread(); | |||
19035 | ||||
19036 | mStoredFileInfos.Clear(); | |||
19037 | ||||
19038 | NormalTransactionOp::Cleanup(); | |||
19039 | } | |||
19040 | ||||
19041 | NS_IMPL_ISUPPORTS(ObjectStoreAddOrPutRequestOp::SCInputStream, nsIInputStream)MozExternalRefCountType ObjectStoreAddOrPutRequestOp::SCInputStream ::AddRef(void) { static_assert(!std::is_destructible_v<ObjectStoreAddOrPutRequestOp ::SCInputStream>, "Reference-counted class " "ObjectStoreAddOrPutRequestOp::SCInputStream" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 19041; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("ObjectStoreAddOrPutRequestOp::SCInputStream" != nullptr)>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!("ObjectStoreAddOrPutRequestOp::SCInputStream" != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr" " (" "Must specify a name" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr" ") (" "Must specify a name" ")"); do { *((volatile int*)__null ) = 19041; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("ObjectStoreAddOrPutRequestOp::SCInputStream" " not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef ((this), (count), ("ObjectStoreAddOrPutRequestOp::SCInputStream" ), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType ObjectStoreAddOrPutRequestOp::SCInputStream::Release(void) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 19041 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("ObjectStoreAddOrPutRequestOp::SCInputStream" != nullptr)>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!("ObjectStoreAddOrPutRequestOp::SCInputStream" != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr" " (" "Must specify a name" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr" ") (" "Must specify a name" ")"); do { *((volatile int*)__null ) = 19041; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("ObjectStoreAddOrPutRequestOp::SCInputStream" " not thread-safe"); const char* const nametmp = "ObjectStoreAddOrPutRequestOp::SCInputStream" ; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), ( nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return 0; } return count; } nsresult ObjectStoreAddOrPutRequestOp:: SCInputStream::QueryInterface(const nsIID& aIID, void** aInstancePtr ) { do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION , "QueryInterface requires a non-NULL destination!", "aInstancePtr" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19041); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE" ); static const QITableEntry table[] = { {&mozilla::detail ::kImplementedIID<ObjectStoreAddOrPutRequestOp::SCInputStream , nsIInputStream>, int32_t( reinterpret_cast<char*>( static_cast<nsIInputStream*>((ObjectStoreAddOrPutRequestOp ::SCInputStream*)0x1000)) - reinterpret_cast<char*>((ObjectStoreAddOrPutRequestOp ::SCInputStream*)0x1000))}, {&mozilla::detail::kImplementedIID <ObjectStoreAddOrPutRequestOp::SCInputStream, nsISupports> , int32_t(reinterpret_cast<char*>(static_cast<nsISupports *>( static_cast<nsIInputStream*>((ObjectStoreAddOrPutRequestOp ::SCInputStream*)0x1000))) - reinterpret_cast<char*>((ObjectStoreAddOrPutRequestOp ::SCInputStream*)0x1000))}, { nullptr, 0 } } ; static_assert( (sizeof(table) / sizeof(table[0])) > 1, "need at least 1 interface" ); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID , aInstancePtr, table); return rv; } | |||
19042 | ||||
19043 | NS_IMETHODIMPnsresult | |||
19044 | ObjectStoreAddOrPutRequestOp::SCInputStream::Close() { return NS_OK; } | |||
19045 | ||||
19046 | NS_IMETHODIMPnsresult | |||
19047 | ObjectStoreAddOrPutRequestOp::SCInputStream::Available(uint64_t* _retval) { | |||
19048 | return NS_ERROR_NOT_IMPLEMENTED; | |||
19049 | } | |||
19050 | ||||
19051 | NS_IMETHODIMPnsresult | |||
19052 | ObjectStoreAddOrPutRequestOp::SCInputStream::StreamStatus() { return NS_OK; } | |||
19053 | ||||
19054 | NS_IMETHODIMPnsresult | |||
19055 | ObjectStoreAddOrPutRequestOp::SCInputStream::Read(char* aBuf, uint32_t aCount, | |||
19056 | uint32_t* _retval) { | |||
19057 | return ReadSegments(NS_CopySegmentToBuffer, aBuf, aCount, _retval); | |||
19058 | } | |||
19059 | ||||
19060 | NS_IMETHODIMPnsresult | |||
19061 | ObjectStoreAddOrPutRequestOp::SCInputStream::ReadSegments( | |||
19062 | nsWriteSegmentFun aWriter, void* aClosure, uint32_t aCount, | |||
19063 | uint32_t* _retval) { | |||
19064 | *_retval = 0; | |||
19065 | ||||
19066 | while (aCount) { | |||
19067 | uint32_t count = std::min(uint32_t(mIter.RemainingInSegment()), aCount); | |||
19068 | if (!count) { | |||
19069 | // We've run out of data in the last segment. | |||
19070 | break; | |||
19071 | } | |||
19072 | ||||
19073 | uint32_t written; | |||
19074 | nsresult rv = | |||
19075 | aWriter(this, aClosure, mIter.Data(), *_retval, count, &written); | |||
19076 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19076)) { | |||
19077 | // InputStreams do not propagate errors to caller. | |||
19078 | return NS_OK; | |||
19079 | } | |||
19080 | ||||
19081 | // Writer should write what we asked it to write. | |||
19082 | MOZ_ASSERT(written == count)do { static_assert( mozilla::detail::AssertionConditionType< decltype(written == count)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(written == count))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("written == count" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19082); AnnotateMozCrashReason("MOZ_ASSERT" "(" "written == count" ")"); do { *((volatile int*)__null) = 19082; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19083 | ||||
19084 | *_retval += count; | |||
19085 | aCount -= count; | |||
19086 | ||||
19087 | if (NS_WARN_IF(!mData.Advance(mIter, count))NS_warn_if_impl(!mData.Advance(mIter, count), "!mData.Advance(mIter, count)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19087)) { | |||
19088 | // InputStreams do not propagate errors to caller. | |||
19089 | return NS_OK; | |||
19090 | } | |||
19091 | } | |||
19092 | ||||
19093 | return NS_OK; | |||
19094 | } | |||
19095 | ||||
19096 | NS_IMETHODIMPnsresult | |||
19097 | ObjectStoreAddOrPutRequestOp::SCInputStream::IsNonBlocking(bool* _retval) { | |||
19098 | *_retval = false; | |||
19099 | return NS_OK; | |||
19100 | } | |||
19101 | ||||
19102 | ObjectStoreGetRequestOp::ObjectStoreGetRequestOp( | |||
19103 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | |||
19104 | const RequestParams& aParams, bool aGetAll) | |||
19105 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | |||
19106 | mObjectStoreId(aGetAll | |||
19107 | ? aParams.get_ObjectStoreGetAllParams().objectStoreId() | |||
19108 | : aParams.get_ObjectStoreGetParams().objectStoreId()), | |||
19109 | mDatabase(Transaction().GetDatabasePtr()), | |||
19110 | mOptionalKeyRange( | |||
19111 | aGetAll ? aParams.get_ObjectStoreGetAllParams().optionalKeyRange() | |||
19112 | : Some(aParams.get_ObjectStoreGetParams().keyRange())), | |||
19113 | mBackgroundParent(Transaction().GetBackgroundParent()), | |||
19114 | mPreprocessInfoCount(0), | |||
19115 | mLimit(aGetAll ? aParams.get_ObjectStoreGetAllParams().limit() : 1), | |||
19116 | mGetAll(aGetAll) { | |||
19117 | MOZ_ASSERT(aParams.type() == RequestParams::TObjectStoreGetParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19118); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams" ")"); do { *((volatile int*)__null) = 19118; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
19118 | aParams.type() == RequestParams::TObjectStoreGetAllParams)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19118); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams" ")"); do { *((volatile int*)__null) = 19118; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19119 | MOZ_ASSERT(mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mObjectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19119); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")"); do { *((volatile int*)__null) = 19119; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19120 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19120); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { *((volatile int*)__null) = 19120; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19121 | MOZ_ASSERT_IF(!aGetAll, mOptionalKeyRange.isSome())do { if (!aGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19121); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { *((volatile int*)__null) = 19121; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19122 | MOZ_ASSERT(mBackgroundParent)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mBackgroundParent)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mBackgroundParent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mBackgroundParent" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19122); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent" ")"); do { *((volatile int*)__null) = 19122; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19123 | } | |||
19124 | ||||
19125 | template <typename T> | |||
19126 | Result<T, nsresult> ObjectStoreGetRequestOp::ConvertResponse( | |||
19127 | StructuredCloneReadInfoParent&& aInfo) { | |||
19128 | T result; | |||
19129 | ||||
19130 | static_assert(std::is_same_v<T, SerializedStructuredCloneReadInfo> || | |||
19131 | std::is_same_v<T, PreprocessInfo>); | |||
19132 | ||||
19133 | if constexpr (std::is_same_v<T, SerializedStructuredCloneReadInfo>) { | |||
19134 | result.data().data = aInfo.ReleaseData(); | |||
19135 | result.hasPreprocessInfo() = aInfo.HasPreprocessInfo(); | |||
19136 | } | |||
19137 | ||||
19138 | QM_TRY_UNWRAP(result.files(), SerializeStructuredCloneFiles(auto tryResult3723 = (SerializeStructuredCloneFiles( mDatabase , aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if ((__builtin_expect(!!(tryResult3723.isErr()), 0))) { mozilla ::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)" , tryResult3723.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19140, mozilla::dom::quota::Severity::Error); return tryResult3723 .propagateErr(); } result.files() = tryResult3723.unwrap(); | |||
19139 | mDatabase, aInfo.Files(),auto tryResult3723 = (SerializeStructuredCloneFiles( mDatabase , aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if ((__builtin_expect(!!(tryResult3723.isErr()), 0))) { mozilla ::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)" , tryResult3723.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19140, mozilla::dom::quota::Severity::Error); return tryResult3723 .propagateErr(); } result.files() = tryResult3723.unwrap(); | |||
19140 | std::is_same_v<T, PreprocessInfo>))auto tryResult3723 = (SerializeStructuredCloneFiles( mDatabase , aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if ((__builtin_expect(!!(tryResult3723.isErr()), 0))) { mozilla ::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)" , tryResult3723.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19140, mozilla::dom::quota::Severity::Error); return tryResult3723 .propagateErr(); } result.files() = tryResult3723.unwrap();; | |||
19141 | ||||
19142 | return result; | |||
19143 | } | |||
19144 | ||||
19145 | nsresult ObjectStoreGetRequestOp::DoDatabaseWork( | |||
19146 | DatabaseConnection* aConnection) { | |||
19147 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19147); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 19147; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19148 | aConnection->AssertIsOnConnectionThread(); | |||
19149 | MOZ_ASSERT_IF(!mGetAll, mOptionalKeyRange.isSome())do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19149); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { *((volatile int*)__null) = 19149; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19150 | MOZ_ASSERT_IF(!mGetAll, mLimit == 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mLimit == 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLimit == 1))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mLimit == 1", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19150); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1" ")"); do { *((volatile int*)__null) = 19150; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19151 | ||||
19152 | AUTO_PROFILER_LABEL("ObjectStoreGetRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19152( "ObjectStoreGetRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
19153 | ||||
19154 | const nsCString query = | |||
19155 | "SELECT file_ids, data " | |||
19156 | "FROM object_data " | |||
19157 | "WHERE object_store_id = :"_ns + | |||
19158 | kStmtParamNameObjectStoreId + | |||
19159 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) + | |||
19160 | " ORDER BY key ASC"_ns + | |||
19161 | (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()); | |||
19162 | ||||
19163 | QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult3724 = (aConnection->BorrowCachedStatement(query )); if ((__builtin_expect(!!(tryResult3724.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)" , tryResult3724.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19163, mozilla::dom::quota::Severity::Error); return tryResult3724 .propagateErr(); } const auto& stmt = tryResult3724.inspect ();; | |||
19164 | ||||
19165 | QM_TRY(MOZ_TO_RESULT({auto tryResult3725 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3725)::ok_type>); if ((__builtin_expect (!!(tryResult3725.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult3725.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19166, mozilla::dom::quota::Severity::Error); return tryResult3725 .propagateErr(); }} | |||
19166 | stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult3725 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3725)::ok_type>); if ((__builtin_expect (!!(tryResult3725.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult3725.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19166, mozilla::dom::quota::Severity::Error); return tryResult3725 .propagateErr(); }}; | |||
19167 | ||||
19168 | if (mOptionalKeyRange.isSome()) { | |||
19169 | QM_TRY(MOZ_TO_RESULT({auto tryResult3726 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3726)::ok_type>); if ((__builtin_expect (!!(tryResult3726.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult3726.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19170, mozilla::dom::quota::Severity::Error); return tryResult3726 .propagateErr(); }} | |||
19170 | BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult3726 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3726)::ok_type>); if ((__builtin_expect (!!(tryResult3726.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult3726.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19170, mozilla::dom::quota::Severity::Error); return tryResult3726 .propagateErr(); }}; | |||
19171 | } | |||
19172 | ||||
19173 | QM_TRY(CollectWhileHasResult({auto tryResult3729 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3727.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19177, mozilla::dom::quota::Severity::Error); return tryResult3727 .propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect (!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3729 )::ok_type>); if ((__builtin_expect(!!(tryResult3729.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3727.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19177, mozilla::dom::quota::Severity::Error); return tryResult3727.propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect(!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3729.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19187, mozilla::dom::quota::Severity::Error); return tryResult3729 .propagateErr(); }} | |||
19174 | *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult3729 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3727.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19177, mozilla::dom::quota::Severity::Error); return tryResult3727 .propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect (!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3729 )::ok_type>); if ((__builtin_expect(!!(tryResult3729.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3727.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19177, mozilla::dom::quota::Severity::Error); return tryResult3727.propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect(!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3729.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19187, mozilla::dom::quota::Severity::Error); return tryResult3729 .propagateErr(); }} | |||
19175 | QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult3729 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3727.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19177, mozilla::dom::quota::Severity::Error); return tryResult3727 .propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect (!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3729 )::ok_type>); if ((__builtin_expect(!!(tryResult3729.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3727.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19177, mozilla::dom::quota::Severity::Error); return tryResult3727.propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect(!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3729.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19187, mozilla::dom::quota::Severity::Error); return tryResult3729 .propagateErr(); }} | |||
19176 | GetStructuredCloneReadInfoFromStatement({auto tryResult3729 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3727.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19177, mozilla::dom::quota::Severity::Error); return tryResult3727 .propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect (!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3729 )::ok_type>); if ((__builtin_expect(!!(tryResult3729.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3727.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19177, mozilla::dom::quota::Severity::Error); return tryResult3727.propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect(!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3729.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19187, mozilla::dom::quota::Severity::Error); return tryResult3729 .propagateErr(); }} | |||
19177 | &stmt, 1, 0, mDatabase->GetFileManager()));{auto tryResult3729 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3727.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19177, mozilla::dom::quota::Severity::Error); return tryResult3727 .propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect (!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3729 )::ok_type>); if ((__builtin_expect(!!(tryResult3729.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3727.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19177, mozilla::dom::quota::Severity::Error); return tryResult3727.propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect(!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3729.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19187, mozilla::dom::quota::Severity::Error); return tryResult3729 .propagateErr(); }} | |||
19178 | ||||
19179 | if (cloneInfo.HasPreprocessInfo()) {{auto tryResult3729 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3727.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19177, mozilla::dom::quota::Severity::Error); return tryResult3727 .propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect (!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3729 )::ok_type>); if ((__builtin_expect(!!(tryResult3729.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3727.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19177, mozilla::dom::quota::Severity::Error); return tryResult3727.propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect(!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3729.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19187, mozilla::dom::quota::Severity::Error); return tryResult3729 .propagateErr(); }} | |||
19180 | mPreprocessInfoCount++;{auto tryResult3729 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3727.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19177, mozilla::dom::quota::Severity::Error); return tryResult3727 .propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect (!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3729 )::ok_type>); if ((__builtin_expect(!!(tryResult3729.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3727.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19177, mozilla::dom::quota::Severity::Error); return tryResult3727.propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect(!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3729.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19187, mozilla::dom::quota::Severity::Error); return tryResult3729 .propagateErr(); }} | |||
19181 | }{auto tryResult3729 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3727.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19177, mozilla::dom::quota::Severity::Error); return tryResult3727 .propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect (!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3729 )::ok_type>); if ((__builtin_expect(!!(tryResult3729.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3727.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19177, mozilla::dom::quota::Severity::Error); return tryResult3727.propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect(!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3729.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19187, mozilla::dom::quota::Severity::Error); return tryResult3729 .propagateErr(); }} | |||
19182 | ||||
19183 | QM_TRY(OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult3729 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3727.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19177, mozilla::dom::quota::Severity::Error); return tryResult3727 .propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect (!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3729 )::ok_type>); if ((__builtin_expect(!!(tryResult3729.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3727.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19177, mozilla::dom::quota::Severity::Error); return tryResult3727.propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect(!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3729.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19187, mozilla::dom::quota::Severity::Error); return tryResult3729 .propagateErr(); }} | |||
19184 | Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult3729 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3727.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19177, mozilla::dom::quota::Severity::Error); return tryResult3727 .propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect (!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3729 )::ok_type>); if ((__builtin_expect(!!(tryResult3729.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3727.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19177, mozilla::dom::quota::Severity::Error); return tryResult3727.propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect(!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3729.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19187, mozilla::dom::quota::Severity::Error); return tryResult3729 .propagateErr(); }} | |||
19185 | ||||
19186 | return Ok{};{auto tryResult3729 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3727.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19177, mozilla::dom::quota::Severity::Error); return tryResult3727 .propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect (!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3729 )::ok_type>); if ((__builtin_expect(!!(tryResult3729.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3727.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19177, mozilla::dom::quota::Severity::Error); return tryResult3727.propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect(!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3729.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19187, mozilla::dom::quota::Severity::Error); return tryResult3729 .propagateErr(); }} | |||
19187 | })){auto tryResult3729 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3727.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19177, mozilla::dom::quota::Severity::Error); return tryResult3727 .propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect (!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3729 )::ok_type>); if ((__builtin_expect(!!(tryResult3729.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3727 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3727.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3727.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19177, mozilla::dom::quota::Severity::Error); return tryResult3727.propagateErr(); } auto cloneInfo = tryResult3727.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult3728 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3728)::ok_type>); if ((__builtin_expect(!!(tryResult3728.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3728.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3729.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19187, mozilla::dom::quota::Severity::Error); return tryResult3729 .propagateErr(); }}; | |||
19188 | ||||
19189 | MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19189); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { *((volatile int*)__null) = 19189; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19190 | ||||
19191 | return NS_OK; | |||
19192 | } | |||
19193 | ||||
19194 | bool ObjectStoreGetRequestOp::HasPreprocessInfo() { | |||
19195 | return mPreprocessInfoCount > 0; | |||
19196 | } | |||
19197 | ||||
19198 | Result<PreprocessParams, nsresult> | |||
19199 | ObjectStoreGetRequestOp::GetPreprocessParams() { | |||
19200 | AssertIsOnOwningThread(); | |||
19201 | MOZ_ASSERT(!mResponse.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mResponse.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mResponse.IsEmpty()))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("!mResponse.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19201); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponse.IsEmpty()" ")"); do { *((volatile int*)__null) = 19201; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19202 | ||||
19203 | if (mGetAll) { | |||
19204 | auto params = ObjectStoreGetAllPreprocessParams(); | |||
19205 | ||||
19206 | auto& preprocessInfos = params.preprocessInfos(); | |||
19207 | if (NS_WARN_IF(NS_warn_if_impl(!preprocessInfos.SetCapacity(mPreprocessInfoCount , fallible), "!preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19208) | |||
19208 | !preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible))NS_warn_if_impl(!preprocessInfos.SetCapacity(mPreprocessInfoCount , fallible), "!preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19208)) { | |||
19209 | return Err(NS_ERROR_OUT_OF_MEMORY); | |||
19210 | } | |||
19211 | ||||
19212 | QM_TRY(TransformIfAbortOnErr({auto tryResult3730 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return self.ConvertResponse<PreprocessInfo >(std::move(info)); })); static_assert(std::is_empty_v< typename decltype(tryResult3730)::ok_type>); if ((__builtin_expect (!!(tryResult3730.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return self.ConvertResponse<PreprocessInfo>(std::move(info)); })" , tryResult3730.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19219, mozilla::dom::quota::Severity::Error); return tryResult3730 .propagateErr(); }} | |||
19213 | std::make_move_iterator(mResponse.begin()),{auto tryResult3730 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return self.ConvertResponse<PreprocessInfo >(std::move(info)); })); static_assert(std::is_empty_v< typename decltype(tryResult3730)::ok_type>); if ((__builtin_expect (!!(tryResult3730.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return self.ConvertResponse<PreprocessInfo>(std::move(info)); })" , tryResult3730.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19219, mozilla::dom::quota::Severity::Error); return tryResult3730 .propagateErr(); }} | |||
19214 | std::make_move_iterator(mResponse.end()),{auto tryResult3730 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return self.ConvertResponse<PreprocessInfo >(std::move(info)); })); static_assert(std::is_empty_v< typename decltype(tryResult3730)::ok_type>); if ((__builtin_expect (!!(tryResult3730.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return self.ConvertResponse<PreprocessInfo>(std::move(info)); })" , tryResult3730.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19219, mozilla::dom::quota::Severity::Error); return tryResult3730 .propagateErr(); }} | |||
19215 | MakeBackInserter(preprocessInfos),{auto tryResult3730 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return self.ConvertResponse<PreprocessInfo >(std::move(info)); })); static_assert(std::is_empty_v< typename decltype(tryResult3730)::ok_type>); if ((__builtin_expect (!!(tryResult3730.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return self.ConvertResponse<PreprocessInfo>(std::move(info)); })" , tryResult3730.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19219, mozilla::dom::quota::Severity::Error); return tryResult3730 .propagateErr(); }} | |||
19216 | [](const auto& info) { return info.HasPreprocessInfo(); },{auto tryResult3730 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return self.ConvertResponse<PreprocessInfo >(std::move(info)); })); static_assert(std::is_empty_v< typename decltype(tryResult3730)::ok_type>); if ((__builtin_expect (!!(tryResult3730.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return self.ConvertResponse<PreprocessInfo>(std::move(info)); })" , tryResult3730.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19219, mozilla::dom::quota::Severity::Error); return tryResult3730 .propagateErr(); }} | |||
19217 | [&self = *this](StructuredCloneReadInfoParent&& info) {{auto tryResult3730 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return self.ConvertResponse<PreprocessInfo >(std::move(info)); })); static_assert(std::is_empty_v< typename decltype(tryResult3730)::ok_type>); if ((__builtin_expect (!!(tryResult3730.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return self.ConvertResponse<PreprocessInfo>(std::move(info)); })" , tryResult3730.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19219, mozilla::dom::quota::Severity::Error); return tryResult3730 .propagateErr(); }} | |||
19218 | return self.ConvertResponse<PreprocessInfo>(std::move(info));{auto tryResult3730 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return self.ConvertResponse<PreprocessInfo >(std::move(info)); })); static_assert(std::is_empty_v< typename decltype(tryResult3730)::ok_type>); if ((__builtin_expect (!!(tryResult3730.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return self.ConvertResponse<PreprocessInfo>(std::move(info)); })" , tryResult3730.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19219, mozilla::dom::quota::Severity::Error); return tryResult3730 .propagateErr(); }} | |||
19219 | })){auto tryResult3730 = (TransformIfAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent && info) { return self.ConvertResponse<PreprocessInfo >(std::move(info)); })); static_assert(std::is_empty_v< typename decltype(tryResult3730)::ok_type>); if ((__builtin_expect (!!(tryResult3730.isErr()), 0))) { mozilla::dom::quota::HandleError ("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return self.ConvertResponse<PreprocessInfo>(std::move(info)); })" , tryResult3730.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19219, mozilla::dom::quota::Severity::Error); return tryResult3730 .propagateErr(); }}; | |||
19220 | ||||
19221 | return PreprocessParams{std::move(params)}; | |||
19222 | } | |||
19223 | ||||
19224 | auto params = ObjectStoreGetPreprocessParams(); | |||
19225 | ||||
19226 | QM_TRY_UNWRAP(params.preprocessInfo(),auto tryResult3731 = (ConvertResponse<PreprocessInfo>(std ::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult3731 .isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(std::move(mResponse[0]))" , tryResult3731.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19227, mozilla::dom::quota::Severity::Error); return tryResult3731 .propagateErr(); } params.preprocessInfo() = tryResult3731.unwrap (); | |||
19227 | ConvertResponse<PreprocessInfo>(std::move(mResponse[0])))auto tryResult3731 = (ConvertResponse<PreprocessInfo>(std ::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult3731 .isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(std::move(mResponse[0]))" , tryResult3731.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19227, mozilla::dom::quota::Severity::Error); return tryResult3731 .propagateErr(); } params.preprocessInfo() = tryResult3731.unwrap ();; | |||
19228 | ||||
19229 | return PreprocessParams{std::move(params)}; | |||
19230 | } | |||
19231 | ||||
19232 | void ObjectStoreGetRequestOp::GetResponse(RequestResponse& aResponse, | |||
19233 | size_t* aResponseSize) { | |||
19234 | MOZ_ASSERT_IF(mLimit, mResponse.Length() <= mLimit)do { if (mLimit) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mResponse.Length() <= mLimit)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= mLimit ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mResponse.Length() <= mLimit", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19234); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= mLimit" ")"); do { *((volatile int*)__null) = 19234; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19235 | ||||
19236 | if (mGetAll) { | |||
19237 | aResponse = ObjectStoreGetAllResponse(); | |||
19238 | *aResponseSize = 0; | |||
19239 | ||||
19240 | if (!mResponse.IsEmpty()) { | |||
19241 | QM_TRY_UNWRAP(auto tryResult3732 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( std::move(info)); } , fallible)); if ((__builtin_expect(!!(tryResult3732.isErr()) , 0))) { auto tryTempError = tryResult3732.unwrapErr(); mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19252, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult3732.unwrap(); | |||
19242 | aResponse.get_ObjectStoreGetAllResponse().cloneInfos(),auto tryResult3732 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( std::move(info)); } , fallible)); if ((__builtin_expect(!!(tryResult3732.isErr()) , 0))) { auto tryTempError = tryResult3732.unwrapErr(); mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19252, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult3732.unwrap(); | |||
19243 | TransformIntoNewArrayAbortOnErr(auto tryResult3732 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( std::move(info)); } , fallible)); if ((__builtin_expect(!!(tryResult3732.isErr()) , 0))) { auto tryTempError = tryResult3732.unwrapErr(); mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19252, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult3732.unwrap(); | |||
19244 | std::make_move_iterator(mResponse.begin()),auto tryResult3732 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( std::move(info)); } , fallible)); if ((__builtin_expect(!!(tryResult3732.isErr()) , 0))) { auto tryTempError = tryResult3732.unwrapErr(); mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19252, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult3732.unwrap(); | |||
19245 | std::make_move_iterator(mResponse.end()),auto tryResult3732 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( std::move(info)); } , fallible)); if ((__builtin_expect(!!(tryResult3732.isErr()) , 0))) { auto tryTempError = tryResult3732.unwrapErr(); mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19252, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult3732.unwrap(); | |||
19246 | [this, &aResponseSize](StructuredCloneReadInfoParent&& info) {auto tryResult3732 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( std::move(info)); } , fallible)); if ((__builtin_expect(!!(tryResult3732.isErr()) , 0))) { auto tryTempError = tryResult3732.unwrapErr(); mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19252, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult3732.unwrap(); | |||
19247 | *aResponseSize += info.Size();auto tryResult3732 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( std::move(info)); } , fallible)); if ((__builtin_expect(!!(tryResult3732.isErr()) , 0))) { auto tryTempError = tryResult3732.unwrapErr(); mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19252, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult3732.unwrap(); | |||
19248 | return ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult3732 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( std::move(info)); } , fallible)); if ((__builtin_expect(!!(tryResult3732.isErr()) , 0))) { auto tryTempError = tryResult3732.unwrapErr(); mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19252, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult3732.unwrap(); | |||
19249 | std::move(info));auto tryResult3732 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( std::move(info)); } , fallible)); if ((__builtin_expect(!!(tryResult3732.isErr()) , 0))) { auto tryTempError = tryResult3732.unwrapErr(); mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19252, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult3732.unwrap(); | |||
19250 | },auto tryResult3732 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( std::move(info)); } , fallible)); if ((__builtin_expect(!!(tryResult3732.isErr()) , 0))) { auto tryTempError = tryResult3732.unwrapErr(); mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19252, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult3732.unwrap(); | |||
19251 | fallible),auto tryResult3732 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( std::move(info)); } , fallible)); if ((__builtin_expect(!!(tryResult3732.isErr()) , 0))) { auto tryTempError = tryResult3732.unwrapErr(); mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19252, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult3732.unwrap(); | |||
19252 | QM_VOID, [&aResponse](const nsresult result) { aResponse = result; })auto tryResult3732 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse <SerializedStructuredCloneReadInfo>( std::move(info)); } , fallible)); if ((__builtin_expect(!!(tryResult3732.isErr()) , 0))) { auto tryTempError = tryResult3732.unwrapErr(); mozilla ::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19252, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_ObjectStoreGetAllResponse ().cloneInfos() = tryResult3732.unwrap();; | |||
19253 | } | |||
19254 | ||||
19255 | return; | |||
19256 | } | |||
19257 | ||||
19258 | aResponse = ObjectStoreGetResponse(); | |||
19259 | *aResponseSize = 0; | |||
19260 | ||||
19261 | if (!mResponse.IsEmpty()) { | |||
19262 | SerializedStructuredCloneReadInfo& serializedInfo = | |||
19263 | aResponse.get_ObjectStoreGetResponse().cloneInfo(); | |||
19264 | ||||
19265 | *aResponseSize += mResponse[0].Size(); | |||
19266 | QM_TRY_UNWRAP(serializedInfo,auto tryResult3733 = (ConvertResponse<SerializedStructuredCloneReadInfo >( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult3733 .isErr()), 0))) { auto tryTempError = tryResult3733.unwrapErr (); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19270, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } serializedInfo = tryResult3733.unwrap (); | |||
19267 | ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult3733 = (ConvertResponse<SerializedStructuredCloneReadInfo >( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult3733 .isErr()), 0))) { auto tryTempError = tryResult3733.unwrapErr (); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19270, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } serializedInfo = tryResult3733.unwrap (); | |||
19268 | std::move(mResponse[0])),auto tryResult3733 = (ConvertResponse<SerializedStructuredCloneReadInfo >( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult3733 .isErr()), 0))) { auto tryTempError = tryResult3733.unwrapErr (); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19270, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } serializedInfo = tryResult3733.unwrap (); | |||
19269 | QM_VOID,auto tryResult3733 = (ConvertResponse<SerializedStructuredCloneReadInfo >( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult3733 .isErr()), 0))) { auto tryTempError = tryResult3733.unwrapErr (); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19270, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } serializedInfo = tryResult3733.unwrap (); | |||
19270 | [&aResponse](const nsresult result) { aResponse = result; })auto tryResult3733 = (ConvertResponse<SerializedStructuredCloneReadInfo >( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult3733 .isErr()), 0))) { auto tryTempError = tryResult3733.unwrapErr (); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19270, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } serializedInfo = tryResult3733.unwrap ();; | |||
19271 | } | |||
19272 | } | |||
19273 | ||||
19274 | ObjectStoreGetKeyRequestOp::ObjectStoreGetKeyRequestOp( | |||
19275 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | |||
19276 | const RequestParams& aParams, bool aGetAll) | |||
19277 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | |||
19278 | mObjectStoreId( | |||
19279 | aGetAll ? aParams.get_ObjectStoreGetAllKeysParams().objectStoreId() | |||
19280 | : aParams.get_ObjectStoreGetKeyParams().objectStoreId()), | |||
19281 | mOptionalKeyRange( | |||
19282 | aGetAll ? aParams.get_ObjectStoreGetAllKeysParams().optionalKeyRange() | |||
19283 | : Some(aParams.get_ObjectStoreGetKeyParams().keyRange())), | |||
19284 | mLimit(aGetAll ? aParams.get_ObjectStoreGetAllKeysParams().limit() : 1), | |||
19285 | mGetAll(aGetAll) { | |||
19286 | MOZ_ASSERT(aParams.type() == RequestParams::TObjectStoreGetKeyParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19287); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams" ")"); do { *((volatile int*)__null) = 19287; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
19287 | aParams.type() == RequestParams::TObjectStoreGetAllKeysParams)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19287); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams" ")"); do { *((volatile int*)__null) = 19287; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19288 | MOZ_ASSERT(mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mObjectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mObjectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19288); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")"); do { *((volatile int*)__null) = 19288; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19289 | MOZ_ASSERT_IF(!aGetAll, mOptionalKeyRange.isSome())do { if (!aGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19289); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { *((volatile int*)__null) = 19289; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19290 | } | |||
19291 | ||||
19292 | nsresult ObjectStoreGetKeyRequestOp::DoDatabaseWork( | |||
19293 | DatabaseConnection* aConnection) { | |||
19294 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19294); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 19294; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19295 | aConnection->AssertIsOnConnectionThread(); | |||
19296 | ||||
19297 | AUTO_PROFILER_LABEL("ObjectStoreGetKeyRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19297( "ObjectStoreGetKeyRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
19298 | ||||
19299 | const nsCString query = | |||
19300 | "SELECT key " | |||
19301 | "FROM object_data " | |||
19302 | "WHERE object_store_id = :"_ns + | |||
19303 | kStmtParamNameObjectStoreId + | |||
19304 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) + | |||
19305 | " ORDER BY key ASC"_ns + | |||
19306 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | |||
19307 | ||||
19308 | QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult3734 = (aConnection->BorrowCachedStatement(query )); if ((__builtin_expect(!!(tryResult3734.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)" , tryResult3734.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19308, mozilla::dom::quota::Severity::Error); return tryResult3734 .propagateErr(); } const auto& stmt = tryResult3734.inspect ();; | |||
19309 | ||||
19310 | nsresult rv = | |||
19311 | stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId); | |||
19312 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19312)) { | |||
19313 | return rv; | |||
19314 | } | |||
19315 | ||||
19316 | if (mOptionalKeyRange.isSome()) { | |||
19317 | rv = BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt); | |||
19318 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19318)) { | |||
19319 | return rv; | |||
19320 | } | |||
19321 | } | |||
19322 | ||||
19323 | QM_TRY(CollectWhileHasResult({auto tryResult3737 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3735 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult3735)::ok_type>); if ((__builtin_expect(!!(tryResult3735 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3735.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19326, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError , Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3736 = (ToResult (key->SetFromStatement(&stmt, 0))); static_assert(std:: is_empty_v<typename decltype(tryResult3736)::ok_type>); if ((__builtin_expect(!!(tryResult3736.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult3736.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19327, mozilla::dom::quota::Severity::Error); return tryResult3736 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3737)::ok_type>); if ((__builtin_expect (!!(tryResult3737.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3735 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult3735)::ok_type>); if ((__builtin_expect(!!(tryResult3735.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3735.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19326, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3736 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3736)::ok_type>); if ((__builtin_expect(!!(tryResult3736.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult3736.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19327, mozilla::dom::quota::Severity::Error); return tryResult3736.propagateErr(); }}; return Ok{}; })" , tryResult3737.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19330, mozilla::dom::quota::Severity::Error); return tryResult3737 .propagateErr(); }} | |||
19324 | *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult3737 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3735 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult3735)::ok_type>); if ((__builtin_expect(!!(tryResult3735 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3735.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19326, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError , Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3736 = (ToResult (key->SetFromStatement(&stmt, 0))); static_assert(std:: is_empty_v<typename decltype(tryResult3736)::ok_type>); if ((__builtin_expect(!!(tryResult3736.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult3736.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19327, mozilla::dom::quota::Severity::Error); return tryResult3736 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3737)::ok_type>); if ((__builtin_expect (!!(tryResult3737.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3735 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult3735)::ok_type>); if ((__builtin_expect(!!(tryResult3735.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3735.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19326, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3736 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3736)::ok_type>); if ((__builtin_expect(!!(tryResult3736.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult3736.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19327, mozilla::dom::quota::Severity::Error); return tryResult3736.propagateErr(); }}; return Ok{}; })" , tryResult3737.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19330, mozilla::dom::quota::Severity::Error); return tryResult3737 .propagateErr(); }} | |||
19325 | Key* const key = mResponse.AppendElement(fallible);{auto tryResult3737 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3735 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult3735)::ok_type>); if ((__builtin_expect(!!(tryResult3735 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3735.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19326, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError , Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3736 = (ToResult (key->SetFromStatement(&stmt, 0))); static_assert(std:: is_empty_v<typename decltype(tryResult3736)::ok_type>); if ((__builtin_expect(!!(tryResult3736.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult3736.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19327, mozilla::dom::quota::Severity::Error); return tryResult3736 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3737)::ok_type>); if ((__builtin_expect (!!(tryResult3737.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3735 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult3735)::ok_type>); if ((__builtin_expect(!!(tryResult3735.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3735.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19326, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3736 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3736)::ok_type>); if ((__builtin_expect(!!(tryResult3736.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult3736.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19327, mozilla::dom::quota::Severity::Error); return tryResult3736.propagateErr(); }}; return Ok{}; })" , tryResult3737.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19330, mozilla::dom::quota::Severity::Error); return tryResult3737 .propagateErr(); }} | |||
19326 | QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult3737 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3735 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult3735)::ok_type>); if ((__builtin_expect(!!(tryResult3735 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3735.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19326, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError , Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3736 = (ToResult (key->SetFromStatement(&stmt, 0))); static_assert(std:: is_empty_v<typename decltype(tryResult3736)::ok_type>); if ((__builtin_expect(!!(tryResult3736.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult3736.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19327, mozilla::dom::quota::Severity::Error); return tryResult3736 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3737)::ok_type>); if ((__builtin_expect (!!(tryResult3737.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3735 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult3735)::ok_type>); if ((__builtin_expect(!!(tryResult3735.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3735.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19326, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3736 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3736)::ok_type>); if ((__builtin_expect(!!(tryResult3736.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult3736.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19327, mozilla::dom::quota::Severity::Error); return tryResult3736.propagateErr(); }}; return Ok{}; })" , tryResult3737.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19330, mozilla::dom::quota::Severity::Error); return tryResult3737 .propagateErr(); }} | |||
19327 | QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult3737 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3735 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult3735)::ok_type>); if ((__builtin_expect(!!(tryResult3735 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3735.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19326, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError , Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3736 = (ToResult (key->SetFromStatement(&stmt, 0))); static_assert(std:: is_empty_v<typename decltype(tryResult3736)::ok_type>); if ((__builtin_expect(!!(tryResult3736.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult3736.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19327, mozilla::dom::quota::Severity::Error); return tryResult3736 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3737)::ok_type>); if ((__builtin_expect (!!(tryResult3737.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3735 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult3735)::ok_type>); if ((__builtin_expect(!!(tryResult3735.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3735.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19326, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3736 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3736)::ok_type>); if ((__builtin_expect(!!(tryResult3736.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult3736.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19327, mozilla::dom::quota::Severity::Error); return tryResult3736.propagateErr(); }}; return Ok{}; })" , tryResult3737.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19330, mozilla::dom::quota::Severity::Error); return tryResult3737 .propagateErr(); }} | |||
19328 | ||||
19329 | return Ok{};{auto tryResult3737 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3735 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult3735)::ok_type>); if ((__builtin_expect(!!(tryResult3735 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3735.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19326, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError , Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3736 = (ToResult (key->SetFromStatement(&stmt, 0))); static_assert(std:: is_empty_v<typename decltype(tryResult3736)::ok_type>); if ((__builtin_expect(!!(tryResult3736.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult3736.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19327, mozilla::dom::quota::Severity::Error); return tryResult3736 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3737)::ok_type>); if ((__builtin_expect (!!(tryResult3737.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3735 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult3735)::ok_type>); if ((__builtin_expect(!!(tryResult3735.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3735.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19326, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3736 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3736)::ok_type>); if ((__builtin_expect(!!(tryResult3736.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult3736.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19327, mozilla::dom::quota::Severity::Error); return tryResult3736.propagateErr(); }}; return Ok{}; })" , tryResult3737.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19330, mozilla::dom::quota::Severity::Error); return tryResult3737 .propagateErr(); }} | |||
19330 | })){auto tryResult3737 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3735 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult3735)::ok_type>); if ((__builtin_expect(!!(tryResult3735 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3735.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19326, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError , Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3736 = (ToResult (key->SetFromStatement(&stmt, 0))); static_assert(std:: is_empty_v<typename decltype(tryResult3736)::ok_type>); if ((__builtin_expect(!!(tryResult3736.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult3736.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19327, mozilla::dom::quota::Severity::Error); return tryResult3736 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3737)::ok_type>); if ((__builtin_expect (!!(tryResult3737.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3735 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult3735)::ok_type>); if ((__builtin_expect(!!(tryResult3735.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3735.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19326, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3736 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3736)::ok_type>); if ((__builtin_expect(!!(tryResult3736.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult3736.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19327, mozilla::dom::quota::Severity::Error); return tryResult3736.propagateErr(); }}; return Ok{}; })" , tryResult3737.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19330, mozilla::dom::quota::Severity::Error); return tryResult3737 .propagateErr(); }}; | |||
19331 | ||||
19332 | MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19332); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { *((volatile int*)__null) = 19332; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19333 | ||||
19334 | return NS_OK; | |||
19335 | } | |||
19336 | ||||
19337 | void ObjectStoreGetKeyRequestOp::GetResponse(RequestResponse& aResponse, | |||
19338 | size_t* aResponseSize) { | |||
19339 | MOZ_ASSERT_IF(mLimit, mResponse.Length() <= mLimit)do { if (mLimit) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mResponse.Length() <= mLimit)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= mLimit ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "mResponse.Length() <= mLimit", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19339); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= mLimit" ")"); do { *((volatile int*)__null) = 19339; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19340 | ||||
19341 | if (mGetAll) { | |||
19342 | aResponse = ObjectStoreGetAllKeysResponse(); | |||
19343 | *aResponseSize = std::accumulate(mResponse.begin(), mResponse.end(), 0u, | |||
19344 | [](size_t old, const auto& entry) { | |||
19345 | return old + entry.GetBuffer().Length(); | |||
19346 | }); | |||
19347 | ||||
19348 | aResponse.get_ObjectStoreGetAllKeysResponse().keys() = std::move(mResponse); | |||
19349 | ||||
19350 | return; | |||
19351 | } | |||
19352 | ||||
19353 | aResponse = ObjectStoreGetKeyResponse(); | |||
19354 | *aResponseSize = 0; | |||
19355 | ||||
19356 | if (!mResponse.IsEmpty()) { | |||
19357 | *aResponseSize = mResponse[0].GetBuffer().Length(); | |||
19358 | aResponse.get_ObjectStoreGetKeyResponse().key() = std::move(mResponse[0]); | |||
19359 | } | |||
19360 | } | |||
19361 | ||||
19362 | ObjectStoreDeleteRequestOp::ObjectStoreDeleteRequestOp( | |||
19363 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | |||
19364 | const ObjectStoreDeleteParams& aParams) | |||
19365 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | |||
19366 | mParams(aParams), | |||
19367 | mObjectStoreMayHaveIndexes(false) { | |||
19368 | AssertIsOnBackgroundThread(); | |||
19369 | ||||
19370 | SafeRefPtr<FullObjectStoreMetadata> metadata = | |||
19371 | Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId()); | |||
19372 | MOZ_ASSERT(metadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(metadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19372); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 19372; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
19373 | ||||
19374 | mObjectStoreMayHaveIndexes = metadata->HasLiveIndexes(); | |||
19375 | } | |||
19376 | ||||
19377 | nsresult ObjectStoreDeleteRequestOp::DoDatabaseWork( | |||
19378 | DatabaseConnection* aConnection) { | |||
19379 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19379); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 19379; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19380 | aConnection->AssertIsOnConnectionThread(); | |||
19381 | AUTO_PROFILER_LABEL("ObjectStoreDeleteRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19381( "ObjectStoreDeleteRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
19382 | ||||
19383 | DatabaseConnection::AutoSavepoint autoSave; | |||
19384 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult3738 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3738)::ok_type>); if ((__builtin_expect(!!(tryResult3738 .isErr()), 0))) { auto tryTempError = tryResult3738.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19389, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
19385 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult3738 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3738)::ok_type>); if ((__builtin_expect(!!(tryResult3738 .isErr()), 0))) { auto tryTempError = tryResult3738.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19389, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
19386 | ,{auto tryResult3738 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3738)::ok_type>); if ((__builtin_expect(!!(tryResult3738 .isErr()), 0))) { auto tryTempError = tryResult3738.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19389, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
19387 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult3738 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3738)::ok_type>); if ((__builtin_expect(!!(tryResult3738 .isErr()), 0))) { auto tryTempError = tryResult3738.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19389, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
19388 | #endif{auto tryResult3738 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3738)::ok_type>); if ((__builtin_expect(!!(tryResult3738 .isErr()), 0))) { auto tryTempError = tryResult3738.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19389, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
19389 | ){auto tryResult3738 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3738)::ok_type>); if ((__builtin_expect(!!(tryResult3738 .isErr()), 0))) { auto tryTempError = tryResult3738.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19389, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | |||
19390 | ||||
19391 | QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult3739 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult3739.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult3739.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19393, mozilla::dom::quota::Severity::Error); return tryResult3739 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult3739 .inspect(); | |||
19392 | ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult3739 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult3739.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult3739.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19393, mozilla::dom::quota::Severity::Error); return tryResult3739 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult3739 .inspect(); | |||
19393 | mObjectStoreMayHaveIndexes))auto tryResult3739 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult3739.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult3739.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19393, mozilla::dom::quota::Severity::Error); return tryResult3739 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult3739 .inspect();; | |||
19394 | ||||
19395 | if (objectStoreHasIndexes) { | |||
19396 | QM_TRY(MOZ_TO_RESULT(DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult3740 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Some(mParams.keyRange ())))); static_assert(std::is_empty_v<typename decltype(tryResult3740 )::ok_type>); if ((__builtin_expect(!!(tryResult3740.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))" , tryResult3740.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19397, mozilla::dom::quota::Severity::Error); return tryResult3740 .propagateErr(); }} | |||
19397 | aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))){auto tryResult3740 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Some(mParams.keyRange ())))); static_assert(std::is_empty_v<typename decltype(tryResult3740 )::ok_type>); if ((__builtin_expect(!!(tryResult3740.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))" , tryResult3740.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19397, mozilla::dom::quota::Severity::Error); return tryResult3740 .propagateErr(); }}; | |||
19398 | } else { | |||
19399 | const auto keyRangeClause = | |||
19400 | GetBindingClauseForKeyRange(mParams.keyRange(), kColumnNameKey); | |||
19401 | ||||
19402 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult3743 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult3741 )::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3741.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19409, mozilla::dom::quota::Severity::Error); return tryResult3741 .propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect (!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult3742.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19412, mozilla::dom::quota::Severity::Error); return tryResult3742 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3743)::ok_type>); if ((__builtin_expect (!!(tryResult3743.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3741)::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3741.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19409, mozilla::dom::quota::Severity::Error); return tryResult3741.propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect(!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult3742.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19412, mozilla::dom::quota::Severity::Error); return tryResult3742.propagateErr(); }}; return Ok{}; }))" , tryResult3743.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19415, mozilla::dom::quota::Severity::Error); return tryResult3743 .propagateErr(); }} | |||
19403 | "DELETE FROM object_data "{auto tryResult3743 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult3741 )::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3741.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19409, mozilla::dom::quota::Severity::Error); return tryResult3741 .propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect (!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult3742.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19412, mozilla::dom::quota::Severity::Error); return tryResult3742 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3743)::ok_type>); if ((__builtin_expect (!!(tryResult3743.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3741)::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3741.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19409, mozilla::dom::quota::Severity::Error); return tryResult3741.propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect(!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult3742.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19412, mozilla::dom::quota::Severity::Error); return tryResult3742.propagateErr(); }}; return Ok{}; }))" , tryResult3743.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19415, mozilla::dom::quota::Severity::Error); return tryResult3743 .propagateErr(); }} | |||
19404 | "WHERE object_store_id = :"_ns +{auto tryResult3743 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult3741 )::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3741.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19409, mozilla::dom::quota::Severity::Error); return tryResult3741 .propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect (!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult3742.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19412, mozilla::dom::quota::Severity::Error); return tryResult3742 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3743)::ok_type>); if ((__builtin_expect (!!(tryResult3743.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3741)::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3741.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19409, mozilla::dom::quota::Severity::Error); return tryResult3741.propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect(!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult3742.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19412, mozilla::dom::quota::Severity::Error); return tryResult3742.propagateErr(); }}; return Ok{}; }))" , tryResult3743.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19415, mozilla::dom::quota::Severity::Error); return tryResult3743 .propagateErr(); }} | |||
19405 | kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns,{auto tryResult3743 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult3741 )::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3741.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19409, mozilla::dom::quota::Severity::Error); return tryResult3741 .propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect (!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult3742.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19412, mozilla::dom::quota::Severity::Error); return tryResult3742 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3743)::ok_type>); if ((__builtin_expect (!!(tryResult3743.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3741)::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3741.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19409, mozilla::dom::quota::Severity::Error); return tryResult3741.propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect(!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult3742.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19412, mozilla::dom::quota::Severity::Error); return tryResult3742.propagateErr(); }}; return Ok{}; }))" , tryResult3743.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19415, mozilla::dom::quota::Severity::Error); return tryResult3743 .propagateErr(); }} | |||
19406 | [¶ms = mParams]({auto tryResult3743 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult3741 )::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3741.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19409, mozilla::dom::quota::Severity::Error); return tryResult3741 .propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect (!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult3742.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19412, mozilla::dom::quota::Severity::Error); return tryResult3742 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3743)::ok_type>); if ((__builtin_expect (!!(tryResult3743.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3741)::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3741.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19409, mozilla::dom::quota::Severity::Error); return tryResult3741.propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect(!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult3742.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19412, mozilla::dom::quota::Severity::Error); return tryResult3742.propagateErr(); }}; return Ok{}; }))" , tryResult3743.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19415, mozilla::dom::quota::Severity::Error); return tryResult3743 .propagateErr(); }} | |||
19407 | mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> {{auto tryResult3743 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult3741 )::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3741.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19409, mozilla::dom::quota::Severity::Error); return tryResult3741 .propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect (!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult3742.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19412, mozilla::dom::quota::Severity::Error); return tryResult3742 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3743)::ok_type>); if ((__builtin_expect (!!(tryResult3743.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3741)::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3741.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19409, mozilla::dom::quota::Severity::Error); return tryResult3741.propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect(!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult3742.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19412, mozilla::dom::quota::Severity::Error); return tryResult3742.propagateErr(); }}; return Ok{}; }))" , tryResult3743.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19415, mozilla::dom::quota::Severity::Error); return tryResult3743 .propagateErr(); }} | |||
19408 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(kStmtParamNameObjectStoreId,{auto tryResult3743 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult3741 )::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3741.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19409, mozilla::dom::quota::Severity::Error); return tryResult3741 .propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect (!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult3742.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19412, mozilla::dom::quota::Severity::Error); return tryResult3742 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3743)::ok_type>); if ((__builtin_expect (!!(tryResult3743.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3741)::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3741.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19409, mozilla::dom::quota::Severity::Error); return tryResult3741.propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect(!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult3742.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19412, mozilla::dom::quota::Severity::Error); return tryResult3742.propagateErr(); }}; return Ok{}; }))" , tryResult3743.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19415, mozilla::dom::quota::Severity::Error); return tryResult3743 .propagateErr(); }} | |||
19409 | params.objectStoreId())));{auto tryResult3743 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult3741 )::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3741.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19409, mozilla::dom::quota::Severity::Error); return tryResult3741 .propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect (!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult3742.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19412, mozilla::dom::quota::Severity::Error); return tryResult3742 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3743)::ok_type>); if ((__builtin_expect (!!(tryResult3743.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3741)::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3741.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19409, mozilla::dom::quota::Severity::Error); return tryResult3741.propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect(!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult3742.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19412, mozilla::dom::quota::Severity::Error); return tryResult3742.propagateErr(); }}; return Ok{}; }))" , tryResult3743.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19415, mozilla::dom::quota::Severity::Error); return tryResult3743 .propagateErr(); }} | |||
19410 | ||||
19411 | QM_TRY({auto tryResult3743 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult3741 )::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3741.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19409, mozilla::dom::quota::Severity::Error); return tryResult3741 .propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect (!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult3742.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19412, mozilla::dom::quota::Severity::Error); return tryResult3742 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3743)::ok_type>); if ((__builtin_expect (!!(tryResult3743.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3741)::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3741.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19409, mozilla::dom::quota::Severity::Error); return tryResult3741.propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect(!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult3742.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19412, mozilla::dom::quota::Severity::Error); return tryResult3742.propagateErr(); }}; return Ok{}; }))" , tryResult3743.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19415, mozilla::dom::quota::Severity::Error); return tryResult3743 .propagateErr(); }} | |||
19412 | MOZ_TO_RESULT(BindKeyRangeToStatement(params.keyRange(), &stmt)));{auto tryResult3743 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult3741 )::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3741.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19409, mozilla::dom::quota::Severity::Error); return tryResult3741 .propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect (!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult3742.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19412, mozilla::dom::quota::Severity::Error); return tryResult3742 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3743)::ok_type>); if ((__builtin_expect (!!(tryResult3743.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3741)::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3741.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19409, mozilla::dom::quota::Severity::Error); return tryResult3741.propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect(!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult3742.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19412, mozilla::dom::quota::Severity::Error); return tryResult3742.propagateErr(); }}; return Ok{}; }))" , tryResult3743.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19415, mozilla::dom::quota::Severity::Error); return tryResult3743 .propagateErr(); }} | |||
19413 | ||||
19414 | return Ok{};{auto tryResult3743 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult3741 )::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3741.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19409, mozilla::dom::quota::Severity::Error); return tryResult3741 .propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect (!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult3742.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19412, mozilla::dom::quota::Severity::Error); return tryResult3742 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3743)::ok_type>); if ((__builtin_expect (!!(tryResult3743.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3741)::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3741.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19409, mozilla::dom::quota::Severity::Error); return tryResult3741.propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect(!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult3742.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19412, mozilla::dom::quota::Severity::Error); return tryResult3742.propagateErr(); }}; return Ok{}; }))" , tryResult3743.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19415, mozilla::dom::quota::Severity::Error); return tryResult3743 .propagateErr(); }} | |||
19415 | }))){auto tryResult3743 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult3741 )::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3741.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19409, mozilla::dom::quota::Severity::Error); return tryResult3741 .propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect (!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult3742.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19412, mozilla::dom::quota::Severity::Error); return tryResult3742 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3743)::ok_type>); if ((__builtin_expect (!!(tryResult3743.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [¶ms = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3741 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3741)::ok_type>); if ((__builtin_expect(!!(tryResult3741.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3741.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19409, mozilla::dom::quota::Severity::Error); return tryResult3741.propagateErr(); }}; {auto tryResult3742 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3742)::ok_type>); if ((__builtin_expect(!!(tryResult3742.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult3742.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19412, mozilla::dom::quota::Severity::Error); return tryResult3742.propagateErr(); }}; return Ok{}; }))" , tryResult3743.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19415, mozilla::dom::quota::Severity::Error); return tryResult3743 .propagateErr(); }}; | |||
19416 | } | |||
19417 | ||||
19418 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult3744 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult3744)::ok_type >); if ((__builtin_expect(!!(tryResult3744.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult3744.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19418, mozilla::dom::quota::Severity::Error); return tryResult3744 .propagateErr(); }}; | |||
19419 | ||||
19420 | return NS_OK; | |||
19421 | } | |||
19422 | ||||
19423 | ObjectStoreClearRequestOp::ObjectStoreClearRequestOp( | |||
19424 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | |||
19425 | const ObjectStoreClearParams& aParams) | |||
19426 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | |||
19427 | mParams(aParams), | |||
19428 | mObjectStoreMayHaveIndexes(false) { | |||
19429 | AssertIsOnBackgroundThread(); | |||
19430 | ||||
19431 | SafeRefPtr<FullObjectStoreMetadata> metadata = | |||
19432 | Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId()); | |||
19433 | MOZ_ASSERT(metadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(metadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("metadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19433); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { *((volatile int*)__null) = 19433; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
19434 | ||||
19435 | mObjectStoreMayHaveIndexes = metadata->HasLiveIndexes(); | |||
19436 | } | |||
19437 | ||||
19438 | nsresult ObjectStoreClearRequestOp::DoDatabaseWork( | |||
19439 | DatabaseConnection* aConnection) { | |||
19440 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19440); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 19440; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19441 | aConnection->AssertIsOnConnectionThread(); | |||
19442 | ||||
19443 | AUTO_PROFILER_LABEL("ObjectStoreClearRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19443( "ObjectStoreClearRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
19444 | ||||
19445 | DatabaseConnection::AutoSavepoint autoSave; | |||
19446 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult3745 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3745)::ok_type>); if ((__builtin_expect(!!(tryResult3745 .isErr()), 0))) { auto tryTempError = tryResult3745.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19451, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
19447 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult3745 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3745)::ok_type>); if ((__builtin_expect(!!(tryResult3745 .isErr()), 0))) { auto tryTempError = tryResult3745.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19451, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
19448 | ,{auto tryResult3745 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3745)::ok_type>); if ((__builtin_expect(!!(tryResult3745 .isErr()), 0))) { auto tryTempError = tryResult3745.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19451, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
19449 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult3745 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3745)::ok_type>); if ((__builtin_expect(!!(tryResult3745 .isErr()), 0))) { auto tryTempError = tryResult3745.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19451, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
19450 | #endif{auto tryResult3745 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3745)::ok_type>); if ((__builtin_expect(!!(tryResult3745 .isErr()), 0))) { auto tryTempError = tryResult3745.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19451, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }} | |||
19451 | ){auto tryResult3745 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult3745)::ok_type>); if ((__builtin_expect(!!(tryResult3745 .isErr()), 0))) { auto tryTempError = tryResult3745.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19451, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler (*aConnection)endif(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom:: quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, Err(tryTempError)); }}; | |||
19452 | ||||
19453 | QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult3746 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult3746.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult3746.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); return tryResult3746 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult3746 .inspect(); | |||
19454 | ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult3746 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult3746.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult3746.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); return tryResult3746 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult3746 .inspect(); | |||
19455 | mObjectStoreMayHaveIndexes))auto tryResult3746 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult3746.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult3746.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19455, mozilla::dom::quota::Severity::Error); return tryResult3746 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult3746 .inspect();; | |||
19456 | ||||
19457 | // The parameter names are not used, parameters are bound by index only | |||
19458 | // locally in the same function. | |||
19459 | QM_TRY(MOZ_TO_RESULT({auto tryResult3748 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Nothing()) : aConnection ->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , [objectStoreId = mParams.objectStoreId()](mozIStorageStatement & stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3747 )::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult3747.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19470, mozilla::dom::quota::Severity::Error); return tryResult3747 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3748)::ok_type>); if ((__builtin_expect (!!(tryResult3748.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3747)::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult3747.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19470, mozilla::dom::quota::Severity::Error); return tryResult3747.propagateErr(); }}; return Ok{}; }))" , tryResult3748.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19473, mozilla::dom::quota::Severity::Error); return tryResult3748 .propagateErr(); }} | |||
19460 | objectStoreHasIndexes{auto tryResult3748 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Nothing()) : aConnection ->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , [objectStoreId = mParams.objectStoreId()](mozIStorageStatement & stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3747 )::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult3747.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19470, mozilla::dom::quota::Severity::Error); return tryResult3747 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3748)::ok_type>); if ((__builtin_expect (!!(tryResult3748.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3747)::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult3747.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19470, mozilla::dom::quota::Severity::Error); return tryResult3747.propagateErr(); }}; return Ok{}; }))" , tryResult3748.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19473, mozilla::dom::quota::Severity::Error); return tryResult3748 .propagateErr(); }} | |||
19461 | ? DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult3748 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Nothing()) : aConnection ->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , [objectStoreId = mParams.objectStoreId()](mozIStorageStatement & stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3747 )::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult3747.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19470, mozilla::dom::quota::Severity::Error); return tryResult3747 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3748)::ok_type>); if ((__builtin_expect (!!(tryResult3748.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3747)::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult3747.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19470, mozilla::dom::quota::Severity::Error); return tryResult3747.propagateErr(); }}; return Ok{}; }))" , tryResult3748.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19473, mozilla::dom::quota::Severity::Error); return tryResult3748 .propagateErr(); }} | |||
19462 | aConnection, mParams.objectStoreId(), Nothing()){auto tryResult3748 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Nothing()) : aConnection ->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , [objectStoreId = mParams.objectStoreId()](mozIStorageStatement & stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3747 )::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult3747.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19470, mozilla::dom::quota::Severity::Error); return tryResult3747 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3748)::ok_type>); if ((__builtin_expect (!!(tryResult3748.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3747)::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult3747.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19470, mozilla::dom::quota::Severity::Error); return tryResult3747.propagateErr(); }}; return Ok{}; }))" , tryResult3748.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19473, mozilla::dom::quota::Severity::Error); return tryResult3748 .propagateErr(); }} | |||
19463 | : aConnection->ExecuteCachedStatement({auto tryResult3748 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Nothing()) : aConnection ->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , [objectStoreId = mParams.objectStoreId()](mozIStorageStatement & stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3747 )::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult3747.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19470, mozilla::dom::quota::Severity::Error); return tryResult3747 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3748)::ok_type>); if ((__builtin_expect (!!(tryResult3748.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3747)::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult3747.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19470, mozilla::dom::quota::Severity::Error); return tryResult3747.propagateErr(); }}; return Ok{}; }))" , tryResult3748.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19473, mozilla::dom::quota::Severity::Error); return tryResult3748 .propagateErr(); }} | |||
19464 | "DELETE FROM object_data "{auto tryResult3748 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Nothing()) : aConnection ->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , [objectStoreId = mParams.objectStoreId()](mozIStorageStatement & stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3747 )::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult3747.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19470, mozilla::dom::quota::Severity::Error); return tryResult3747 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3748)::ok_type>); if ((__builtin_expect (!!(tryResult3748.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3747)::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult3747.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19470, mozilla::dom::quota::Severity::Error); return tryResult3747.propagateErr(); }}; return Ok{}; }))" , tryResult3748.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19473, mozilla::dom::quota::Severity::Error); return tryResult3748 .propagateErr(); }} | |||
19465 | "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult3748 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Nothing()) : aConnection ->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , [objectStoreId = mParams.objectStoreId()](mozIStorageStatement & stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3747 )::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult3747.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19470, mozilla::dom::quota::Severity::Error); return tryResult3747 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3748)::ok_type>); if ((__builtin_expect (!!(tryResult3748.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3747)::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult3747.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19470, mozilla::dom::quota::Severity::Error); return tryResult3747.propagateErr(); }}; return Ok{}; }))" , tryResult3748.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19473, mozilla::dom::quota::Severity::Error); return tryResult3748 .propagateErr(); }} | |||
19466 | [objectStoreId ={auto tryResult3748 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Nothing()) : aConnection ->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , [objectStoreId = mParams.objectStoreId()](mozIStorageStatement & stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3747 )::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult3747.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19470, mozilla::dom::quota::Severity::Error); return tryResult3747 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3748)::ok_type>); if ((__builtin_expect (!!(tryResult3748.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3747)::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult3747.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19470, mozilla::dom::quota::Severity::Error); return tryResult3747.propagateErr(); }}; return Ok{}; }))" , tryResult3748.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19473, mozilla::dom::quota::Severity::Error); return tryResult3748 .propagateErr(); }} | |||
19467 | mParams.objectStoreId()](mozIStorageStatement& stmt){auto tryResult3748 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Nothing()) : aConnection ->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , [objectStoreId = mParams.objectStoreId()](mozIStorageStatement & stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3747 )::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult3747.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19470, mozilla::dom::quota::Severity::Error); return tryResult3747 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3748)::ok_type>); if ((__builtin_expect (!!(tryResult3748.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3747)::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult3747.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19470, mozilla::dom::quota::Severity::Error); return tryResult3747.propagateErr(); }}; return Ok{}; }))" , tryResult3748.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19473, mozilla::dom::quota::Severity::Error); return tryResult3748 .propagateErr(); }} | |||
19468 | -> mozilla::Result<Ok, nsresult> {{auto tryResult3748 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Nothing()) : aConnection ->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , [objectStoreId = mParams.objectStoreId()](mozIStorageStatement & stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3747 )::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult3747.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19470, mozilla::dom::quota::Severity::Error); return tryResult3747 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3748)::ok_type>); if ((__builtin_expect (!!(tryResult3748.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3747)::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult3747.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19470, mozilla::dom::quota::Severity::Error); return tryResult3747.propagateErr(); }}; return Ok{}; }))" , tryResult3748.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19473, mozilla::dom::quota::Severity::Error); return tryResult3748 .propagateErr(); }} | |||
19469 | QM_TRY({auto tryResult3748 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Nothing()) : aConnection ->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , [objectStoreId = mParams.objectStoreId()](mozIStorageStatement & stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3747 )::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult3747.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19470, mozilla::dom::quota::Severity::Error); return tryResult3747 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3748)::ok_type>); if ((__builtin_expect (!!(tryResult3748.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3747)::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult3747.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19470, mozilla::dom::quota::Severity::Error); return tryResult3747.propagateErr(); }}; return Ok{}; }))" , tryResult3748.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19473, mozilla::dom::quota::Severity::Error); return tryResult3748 .propagateErr(); }} | |||
19470 | MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, objectStoreId)));{auto tryResult3748 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Nothing()) : aConnection ->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , [objectStoreId = mParams.objectStoreId()](mozIStorageStatement & stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3747 )::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult3747.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19470, mozilla::dom::quota::Severity::Error); return tryResult3747 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3748)::ok_type>); if ((__builtin_expect (!!(tryResult3748.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3747)::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult3747.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19470, mozilla::dom::quota::Severity::Error); return tryResult3747.propagateErr(); }}; return Ok{}; }))" , tryResult3748.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19473, mozilla::dom::quota::Severity::Error); return tryResult3748 .propagateErr(); }} | |||
19471 | ||||
19472 | return Ok{};{auto tryResult3748 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Nothing()) : aConnection ->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , [objectStoreId = mParams.objectStoreId()](mozIStorageStatement & stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3747 )::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult3747.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19470, mozilla::dom::quota::Severity::Error); return tryResult3747 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3748)::ok_type>); if ((__builtin_expect (!!(tryResult3748.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3747)::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult3747.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19470, mozilla::dom::quota::Severity::Error); return tryResult3747.propagateErr(); }}; return Ok{}; }))" , tryResult3748.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19473, mozilla::dom::quota::Severity::Error); return tryResult3748 .propagateErr(); }} | |||
19473 | }))){auto tryResult3748 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Nothing()) : aConnection ->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , [objectStoreId = mParams.objectStoreId()](mozIStorageStatement & stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult3747 )::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult3747.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19470, mozilla::dom::quota::Severity::Error); return tryResult3747 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult3748)::ok_type>); if ((__builtin_expect (!!(tryResult3748.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3747 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult3747)::ok_type>); if ((__builtin_expect(!!(tryResult3747.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult3747.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19470, mozilla::dom::quota::Severity::Error); return tryResult3747.propagateErr(); }}; return Ok{}; }))" , tryResult3748.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19473, mozilla::dom::quota::Severity::Error); return tryResult3748 .propagateErr(); }}; | |||
19474 | ||||
19475 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult3749 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult3749)::ok_type >); if ((__builtin_expect(!!(tryResult3749.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult3749.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19475, mozilla::dom::quota::Severity::Error); return tryResult3749 .propagateErr(); }}; | |||
19476 | ||||
19477 | return NS_OK; | |||
19478 | } | |||
19479 | ||||
19480 | nsresult ObjectStoreCountRequestOp::DoDatabaseWork( | |||
19481 | DatabaseConnection* aConnection) { | |||
19482 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19482); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 19482; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19483 | aConnection->AssertIsOnConnectionThread(); | |||
19484 | ||||
19485 | AUTO_PROFILER_LABEL("ObjectStoreCountRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19485( "ObjectStoreCountRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
19486 | ||||
19487 | const auto keyRangeClause = MaybeGetBindingClauseForKeyRange( | |||
19488 | mParams.optionalKeyRange(), kColumnNameKey); | |||
19489 | ||||
19490 | QM_TRY_INSPECT(auto tryResult3752 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect (!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3750.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19499, mozilla::dom::quota::Severity::Error); return tryResult3750 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect (!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult3751.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult3751 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3752.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect(!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3750.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19499, mozilla::dom::quota::Severity::Error); return tryResult3750.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect(!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult3751.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19503, mozilla::dom::quota::Severity::Error); return tryResult3751.propagateErr(); }}; } return Ok{}; })" , tryResult3752.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19507, mozilla::dom::quota::Severity::Error); return tryResult3752 .propagateErr(); } const auto& maybeStmt = tryResult3752. inspect(); | |||
19491 | const auto& maybeStmt,auto tryResult3752 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect (!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3750.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19499, mozilla::dom::quota::Severity::Error); return tryResult3750 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect (!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult3751.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult3751 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3752.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect(!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3750.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19499, mozilla::dom::quota::Severity::Error); return tryResult3750.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect(!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult3751.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19503, mozilla::dom::quota::Severity::Error); return tryResult3751.propagateErr(); }}; } return Ok{}; })" , tryResult3752.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19507, mozilla::dom::quota::Severity::Error); return tryResult3752 .propagateErr(); } const auto& maybeStmt = tryResult3752. inspect(); | |||
19492 | aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult3752 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect (!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3750.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19499, mozilla::dom::quota::Severity::Error); return tryResult3750 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect (!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult3751.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult3751 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3752.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect(!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3750.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19499, mozilla::dom::quota::Severity::Error); return tryResult3750.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect(!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult3751.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19503, mozilla::dom::quota::Severity::Error); return tryResult3751.propagateErr(); }}; } return Ok{}; })" , tryResult3752.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19507, mozilla::dom::quota::Severity::Error); return tryResult3752 .propagateErr(); } const auto& maybeStmt = tryResult3752. inspect(); | |||
19493 | "SELECT count(*) "auto tryResult3752 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect (!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3750.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19499, mozilla::dom::quota::Severity::Error); return tryResult3750 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect (!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult3751.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult3751 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3752.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect(!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3750.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19499, mozilla::dom::quota::Severity::Error); return tryResult3750.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect(!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult3751.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19503, mozilla::dom::quota::Severity::Error); return tryResult3751.propagateErr(); }}; } return Ok{}; })" , tryResult3752.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19507, mozilla::dom::quota::Severity::Error); return tryResult3752 .propagateErr(); } const auto& maybeStmt = tryResult3752. inspect(); | |||
19494 | "FROM object_data "auto tryResult3752 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect (!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3750.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19499, mozilla::dom::quota::Severity::Error); return tryResult3750 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect (!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult3751.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult3751 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3752.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect(!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3750.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19499, mozilla::dom::quota::Severity::Error); return tryResult3750.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect(!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult3751.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19503, mozilla::dom::quota::Severity::Error); return tryResult3751.propagateErr(); }}; } return Ok{}; })" , tryResult3752.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19507, mozilla::dom::quota::Severity::Error); return tryResult3752 .propagateErr(); } const auto& maybeStmt = tryResult3752. inspect(); | |||
19495 | "WHERE object_store_id = :"_ns +auto tryResult3752 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect (!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3750.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19499, mozilla::dom::quota::Severity::Error); return tryResult3750 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect (!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult3751.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult3751 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3752.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect(!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3750.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19499, mozilla::dom::quota::Severity::Error); return tryResult3750.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect(!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult3751.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19503, mozilla::dom::quota::Severity::Error); return tryResult3751.propagateErr(); }}; } return Ok{}; })" , tryResult3752.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19507, mozilla::dom::quota::Severity::Error); return tryResult3752 .propagateErr(); } const auto& maybeStmt = tryResult3752. inspect(); | |||
19496 | kStmtParamNameObjectStoreId + keyRangeClause,auto tryResult3752 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect (!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3750.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19499, mozilla::dom::quota::Severity::Error); return tryResult3750 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect (!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult3751.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult3751 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3752.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect(!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3750.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19499, mozilla::dom::quota::Severity::Error); return tryResult3750.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect(!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult3751.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19503, mozilla::dom::quota::Severity::Error); return tryResult3751.propagateErr(); }}; } return Ok{}; })" , tryResult3752.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19507, mozilla::dom::quota::Severity::Error); return tryResult3752 .propagateErr(); } const auto& maybeStmt = tryResult3752. inspect(); | |||
19497 | [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult3752 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect (!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3750.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19499, mozilla::dom::quota::Severity::Error); return tryResult3750 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect (!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult3751.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult3751 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3752.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect(!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3750.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19499, mozilla::dom::quota::Severity::Error); return tryResult3750.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect(!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult3751.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19503, mozilla::dom::quota::Severity::Error); return tryResult3751.propagateErr(); }}; } return Ok{}; })" , tryResult3752.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19507, mozilla::dom::quota::Severity::Error); return tryResult3752 .propagateErr(); } const auto& maybeStmt = tryResult3752. inspect(); | |||
19498 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult3752 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect (!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3750.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19499, mozilla::dom::quota::Severity::Error); return tryResult3750 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect (!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult3751.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult3751 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3752.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect(!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3750.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19499, mozilla::dom::quota::Severity::Error); return tryResult3750.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect(!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult3751.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19503, mozilla::dom::quota::Severity::Error); return tryResult3751.propagateErr(); }}; } return Ok{}; })" , tryResult3752.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19507, mozilla::dom::quota::Severity::Error); return tryResult3752 .propagateErr(); } const auto& maybeStmt = tryResult3752. inspect(); | |||
19499 | kStmtParamNameObjectStoreId, params.objectStoreId())));auto tryResult3752 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect (!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3750.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19499, mozilla::dom::quota::Severity::Error); return tryResult3750 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect (!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult3751.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult3751 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3752.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect(!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3750.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19499, mozilla::dom::quota::Severity::Error); return tryResult3750.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect(!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult3751.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19503, mozilla::dom::quota::Severity::Error); return tryResult3751.propagateErr(); }}; } return Ok{}; })" , tryResult3752.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19507, mozilla::dom::quota::Severity::Error); return tryResult3752 .propagateErr(); } const auto& maybeStmt = tryResult3752. inspect(); | |||
19500 | ||||
19501 | if (params.optionalKeyRange().isSome()) {auto tryResult3752 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect (!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3750.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19499, mozilla::dom::quota::Severity::Error); return tryResult3750 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect (!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult3751.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult3751 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3752.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect(!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3750.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19499, mozilla::dom::quota::Severity::Error); return tryResult3750.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect(!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult3751.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19503, mozilla::dom::quota::Severity::Error); return tryResult3751.propagateErr(); }}; } return Ok{}; })" , tryResult3752.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19507, mozilla::dom::quota::Severity::Error); return tryResult3752 .propagateErr(); } const auto& maybeStmt = tryResult3752. inspect(); | |||
19502 | QM_TRY(MOZ_TO_RESULT(BindKeyRangeToStatement(auto tryResult3752 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect (!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3750.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19499, mozilla::dom::quota::Severity::Error); return tryResult3750 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect (!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult3751.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult3751 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3752.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect(!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3750.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19499, mozilla::dom::quota::Severity::Error); return tryResult3750.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect(!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult3751.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19503, mozilla::dom::quota::Severity::Error); return tryResult3751.propagateErr(); }}; } return Ok{}; })" , tryResult3752.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19507, mozilla::dom::quota::Severity::Error); return tryResult3752 .propagateErr(); } const auto& maybeStmt = tryResult3752. inspect(); | |||
19503 | params.optionalKeyRange().ref(), &stmt)));auto tryResult3752 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect (!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3750.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19499, mozilla::dom::quota::Severity::Error); return tryResult3750 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect (!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult3751.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult3751 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3752.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect(!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3750.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19499, mozilla::dom::quota::Severity::Error); return tryResult3750.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect(!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult3751.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19503, mozilla::dom::quota::Severity::Error); return tryResult3751.propagateErr(); }}; } return Ok{}; })" , tryResult3752.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19507, mozilla::dom::quota::Severity::Error); return tryResult3752 .propagateErr(); } const auto& maybeStmt = tryResult3752. inspect(); | |||
19504 | }auto tryResult3752 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect (!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3750.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19499, mozilla::dom::quota::Severity::Error); return tryResult3750 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect (!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult3751.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult3751 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3752.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect(!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3750.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19499, mozilla::dom::quota::Severity::Error); return tryResult3750.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect(!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult3751.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19503, mozilla::dom::quota::Severity::Error); return tryResult3751.propagateErr(); }}; } return Ok{}; })" , tryResult3752.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19507, mozilla::dom::quota::Severity::Error); return tryResult3752 .propagateErr(); } const auto& maybeStmt = tryResult3752. inspect(); | |||
19505 | ||||
19506 | return Ok{};auto tryResult3752 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect (!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3750.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19499, mozilla::dom::quota::Severity::Error); return tryResult3750 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect (!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult3751.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult3751 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3752.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect(!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3750.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19499, mozilla::dom::quota::Severity::Error); return tryResult3750.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect(!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult3751.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19503, mozilla::dom::quota::Severity::Error); return tryResult3751.propagateErr(); }}; } return Ok{}; })" , tryResult3752.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19507, mozilla::dom::quota::Severity::Error); return tryResult3752 .propagateErr(); } const auto& maybeStmt = tryResult3752. inspect(); | |||
19507 | }))auto tryResult3752 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect (!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult3750.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19499, mozilla::dom::quota::Severity::Error); return tryResult3750 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect (!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult3751.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult3751 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3752.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3750 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult3750)::ok_type>); if ((__builtin_expect(!!(tryResult3750.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult3750.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19499, mozilla::dom::quota::Severity::Error); return tryResult3750.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult3751 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3751)::ok_type>); if ((__builtin_expect(!!(tryResult3751.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult3751.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19503, mozilla::dom::quota::Severity::Error); return tryResult3751.propagateErr(); }}; } return Ok{}; })" , tryResult3752.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19507, mozilla::dom::quota::Severity::Error); return tryResult3752 .propagateErr(); } const auto& maybeStmt = tryResult3752. inspect();; | |||
19508 | ||||
19509 | QM_TRY(OkIf(maybeStmt.isSome()), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult3753 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult3753)::ok_type >); if ((__builtin_expect(!!(tryResult3753.isErr()), 0))) { auto tryTempError = tryResult3753.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19515, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19513); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19513; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19514, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19510 | [](const auto) {{auto tryResult3753 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult3753)::ok_type >); if ((__builtin_expect(!!(tryResult3753.isErr()), 0))) { auto tryTempError = tryResult3753.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19515, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19513); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19513; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19514, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19511 | // XXX Why do we have an assertion here, but not at most other{auto tryResult3753 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult3753)::ok_type >); if ((__builtin_expect(!!(tryResult3753.isErr()), 0))) { auto tryTempError = tryResult3753.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19515, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19513); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19513; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19514, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19512 | // places using IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult3753 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult3753)::ok_type >); if ((__builtin_expect(!!(tryResult3753.isErr()), 0))) { auto tryTempError = tryResult3753.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19515, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19513); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19513; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19514, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19513 | MOZ_ASSERT(false, "This should never be possible!");{auto tryResult3753 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult3753)::ok_type >); if ((__builtin_expect(!!(tryResult3753.isErr()), 0))) { auto tryTempError = tryResult3753.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19515, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19513); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19513; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19514, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19514 | IDB_REPORT_INTERNAL_ERR();{auto tryResult3753 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult3753)::ok_type >); if ((__builtin_expect(!!(tryResult3753.isErr()), 0))) { auto tryTempError = tryResult3753.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19515, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19513); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19513; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19514, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19515 | }){auto tryResult3753 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult3753)::ok_type >); if ((__builtin_expect(!!(tryResult3753.isErr()), 0))) { auto tryTempError = tryResult3753.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19515, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19513); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19513; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19514, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | |||
19516 | ||||
19517 | const auto& stmt = *maybeStmt; | |||
19518 | ||||
19519 | const int64_t count = stmt->AsInt64(0); | |||
19520 | QM_TRY(OkIf(count >= 0), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, [](const auto) {{auto tryResult3754 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult3754)::ok_type> ); if ((__builtin_expect(!!(tryResult3754.isErr()), 0))) { auto tryTempError = tryResult3754.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19525, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19523); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19523; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19524, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)", tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19521 | // XXX Why do we have an assertion here, but not at most other places using{auto tryResult3754 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult3754)::ok_type> ); if ((__builtin_expect(!!(tryResult3754.isErr()), 0))) { auto tryTempError = tryResult3754.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19525, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19523); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19523; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19524, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)", tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19522 | // IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult3754 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult3754)::ok_type> ); if ((__builtin_expect(!!(tryResult3754.isErr()), 0))) { auto tryTempError = tryResult3754.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19525, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19523); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19523; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19524, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)", tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19523 | MOZ_ASSERT(false, "This should never be possible!");{auto tryResult3754 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult3754)::ok_type> ); if ((__builtin_expect(!!(tryResult3754.isErr()), 0))) { auto tryTempError = tryResult3754.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19525, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19523); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19523; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19524, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)", tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19524 | IDB_REPORT_INTERNAL_ERR();{auto tryResult3754 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult3754)::ok_type> ); if ((__builtin_expect(!!(tryResult3754.isErr()), 0))) { auto tryTempError = tryResult3754.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19525, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19523); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19523; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19524, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)", tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19525 | }){auto tryResult3754 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult3754)::ok_type> ); if ((__builtin_expect(!!(tryResult3754.isErr()), 0))) { auto tryTempError = tryResult3754.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19525, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19523); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19523; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19524, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)", tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | |||
19526 | ||||
19527 | mResponse.count() = count; | |||
19528 | ||||
19529 | return NS_OK; | |||
19530 | } | |||
19531 | ||||
19532 | // static | |||
19533 | SafeRefPtr<FullIndexMetadata> IndexRequestOpBase::IndexMetadataForParams( | |||
19534 | const TransactionBase& aTransaction, const RequestParams& aParams) { | |||
19535 | AssertIsOnBackgroundThread(); | |||
19536 | MOZ_ASSERT(aParams.type() == RequestParams::TIndexGetParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetParams || aParams .type() == RequestParams::TIndexGetKeyParams || aParams.type( ) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams ::TIndexGetAllKeysParams || aParams.type() == RequestParams:: TIndexCountParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams ::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams .type() == RequestParams::TIndexGetAllKeysParams || aParams.type () == RequestParams::TIndexCountParams))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19540); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams" ")"); do { *((volatile int*)__null) = 19540; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
19537 | aParams.type() == RequestParams::TIndexGetKeyParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetParams || aParams .type() == RequestParams::TIndexGetKeyParams || aParams.type( ) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams ::TIndexGetAllKeysParams || aParams.type() == RequestParams:: TIndexCountParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams ::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams .type() == RequestParams::TIndexGetAllKeysParams || aParams.type () == RequestParams::TIndexCountParams))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19540); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams" ")"); do { *((volatile int*)__null) = 19540; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
19538 | aParams.type() == RequestParams::TIndexGetAllParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetParams || aParams .type() == RequestParams::TIndexGetKeyParams || aParams.type( ) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams ::TIndexGetAllKeysParams || aParams.type() == RequestParams:: TIndexCountParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams ::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams .type() == RequestParams::TIndexGetAllKeysParams || aParams.type () == RequestParams::TIndexCountParams))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19540); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams" ")"); do { *((volatile int*)__null) = 19540; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
19539 | aParams.type() == RequestParams::TIndexGetAllKeysParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetParams || aParams .type() == RequestParams::TIndexGetKeyParams || aParams.type( ) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams ::TIndexGetAllKeysParams || aParams.type() == RequestParams:: TIndexCountParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams ::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams .type() == RequestParams::TIndexGetAllKeysParams || aParams.type () == RequestParams::TIndexCountParams))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19540); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams" ")"); do { *((volatile int*)__null) = 19540; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
19540 | aParams.type() == RequestParams::TIndexCountParams)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetParams || aParams .type() == RequestParams::TIndexGetKeyParams || aParams.type( ) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams ::TIndexGetAllKeysParams || aParams.type() == RequestParams:: TIndexCountParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams ::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams .type() == RequestParams::TIndexGetAllKeysParams || aParams.type () == RequestParams::TIndexCountParams))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19540); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams" ")"); do { *((volatile int*)__null) = 19540; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19541 | ||||
19542 | IndexOrObjectStoreId objectStoreId; | |||
19543 | IndexOrObjectStoreId indexId; | |||
19544 | ||||
19545 | switch (aParams.type()) { | |||
19546 | case RequestParams::TIndexGetParams: { | |||
19547 | const IndexGetParams& params = aParams.get_IndexGetParams(); | |||
19548 | objectStoreId = params.objectStoreId(); | |||
19549 | indexId = params.indexId(); | |||
19550 | break; | |||
19551 | } | |||
19552 | ||||
19553 | case RequestParams::TIndexGetKeyParams: { | |||
19554 | const IndexGetKeyParams& params = aParams.get_IndexGetKeyParams(); | |||
19555 | objectStoreId = params.objectStoreId(); | |||
19556 | indexId = params.indexId(); | |||
19557 | break; | |||
19558 | } | |||
19559 | ||||
19560 | case RequestParams::TIndexGetAllParams: { | |||
19561 | const IndexGetAllParams& params = aParams.get_IndexGetAllParams(); | |||
19562 | objectStoreId = params.objectStoreId(); | |||
19563 | indexId = params.indexId(); | |||
19564 | break; | |||
19565 | } | |||
19566 | ||||
19567 | case RequestParams::TIndexGetAllKeysParams: { | |||
19568 | const IndexGetAllKeysParams& params = aParams.get_IndexGetAllKeysParams(); | |||
19569 | objectStoreId = params.objectStoreId(); | |||
19570 | indexId = params.indexId(); | |||
19571 | break; | |||
19572 | } | |||
19573 | ||||
19574 | case RequestParams::TIndexCountParams: { | |||
19575 | const IndexCountParams& params = aParams.get_IndexCountParams(); | |||
19576 | objectStoreId = params.objectStoreId(); | |||
19577 | indexId = params.indexId(); | |||
19578 | break; | |||
19579 | } | |||
19580 | ||||
19581 | default: | |||
19582 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19582); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 19582; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
19583 | } | |||
19584 | ||||
19585 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | |||
19586 | aTransaction.GetMetadataForObjectStoreId(objectStoreId); | |||
19587 | MOZ_ASSERT(objectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(objectStoreMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(objectStoreMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreMetadata" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19587); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata" ")"); do { *((volatile int*)__null) = 19587; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19588 | ||||
19589 | SafeRefPtr<FullIndexMetadata> indexMetadata = | |||
19590 | aTransaction.GetMetadataForIndexId(*objectStoreMetadata, indexId); | |||
19591 | MOZ_ASSERT(indexMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(indexMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("indexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19591); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { *((volatile int*)__null) = 19591; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19592 | ||||
19593 | return indexMetadata; | |||
19594 | } | |||
19595 | ||||
19596 | IndexGetRequestOp::IndexGetRequestOp(SafeRefPtr<TransactionBase> aTransaction, | |||
19597 | const int64_t aRequestId, | |||
19598 | const RequestParams& aParams, bool aGetAll) | |||
19599 | : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams), | |||
19600 | mDatabase(Transaction().GetDatabasePtr()), | |||
19601 | mOptionalKeyRange(aGetAll | |||
19602 | ? aParams.get_IndexGetAllParams().optionalKeyRange() | |||
19603 | : Some(aParams.get_IndexGetParams().keyRange())), | |||
19604 | mBackgroundParent(Transaction().GetBackgroundParent()), | |||
19605 | mLimit(aGetAll ? aParams.get_IndexGetAllParams().limit() : 1), | |||
19606 | mGetAll(aGetAll) { | |||
19607 | MOZ_ASSERT(aParams.type() == RequestParams::TIndexGetParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetParams || aParams .type() == RequestParams::TIndexGetAllParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams ::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19608); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams" ")"); do { *((volatile int*)__null) = 19608; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
19608 | aParams.type() == RequestParams::TIndexGetAllParams)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetParams || aParams .type() == RequestParams::TIndexGetAllParams)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams ::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19608); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams" ")"); do { *((volatile int*)__null) = 19608; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19609 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19609); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { *((volatile int*)__null) = 19609; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19610 | MOZ_ASSERT_IF(!aGetAll, mOptionalKeyRange.isSome())do { if (!aGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19610); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { *((volatile int*)__null) = 19610; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19611 | MOZ_ASSERT(mBackgroundParent)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mBackgroundParent)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mBackgroundParent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mBackgroundParent" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19611); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent" ")"); do { *((volatile int*)__null) = 19611; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19612 | } | |||
19613 | ||||
19614 | nsresult IndexGetRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) { | |||
19615 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19615); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 19615; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19616 | aConnection->AssertIsOnConnectionThread(); | |||
19617 | MOZ_ASSERT_IF(!mGetAll, mOptionalKeyRange.isSome())do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19617); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { *((volatile int*)__null) = 19617; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19618 | MOZ_ASSERT_IF(!mGetAll, mLimit == 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mLimit == 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLimit == 1))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mLimit == 1", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19618); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1" ")"); do { *((volatile int*)__null) = 19618; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19619 | ||||
19620 | AUTO_PROFILER_LABEL("IndexGetRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19620( "IndexGetRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
19621 | ||||
19622 | const auto indexTable = mMetadata->mCommonMetadata.unique() | |||
19623 | ? "unique_index_data "_ns | |||
19624 | : "index_data "_ns; | |||
19625 | ||||
19626 | QM_TRY_INSPECT(auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect (); | |||
19627 | const auto& stmt,auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect (); | |||
19628 | aConnection->BorrowCachedStatement(auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect (); | |||
19629 | "SELECT file_ids, data "auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect (); | |||
19630 | "FROM object_data "auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect (); | |||
19631 | "INNER JOIN "_ns +auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect (); | |||
19632 | indexTable +auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect (); | |||
19633 | "AS index_table "auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect (); | |||
19634 | "ON object_data.object_store_id = "auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect (); | |||
19635 | "index_table.object_store_id "auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect (); | |||
19636 | "AND object_data.key = "auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect (); | |||
19637 | "index_table.object_data_key "auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect (); | |||
19638 | "WHERE index_id = :"_ns +auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect (); | |||
19639 | kStmtParamNameIndexId +auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect (); | |||
19640 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange,auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect (); | |||
19641 | kColumnNameValue) +auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect (); | |||
19642 | (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString())))auto tryResult3755 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data " "FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table " "ON object_data.object_store_id = " "index_table.object_store_id " "AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange , kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit ) : EmptyCString()))); if ((__builtin_expect(!!(tryResult3755 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))" , tryResult3755.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19642, mozilla::dom::quota::Severity::Error); return tryResult3755 .propagateErr(); } const auto& stmt = tryResult3755.inspect ();; | |||
19643 | ||||
19644 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult3756 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId , mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v <typename decltype(tryResult3756)::ok_type>); if ((__builtin_expect (!!(tryResult3756.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))" , tryResult3756.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19645, mozilla::dom::quota::Severity::Error); return tryResult3756 .propagateErr(); }} | |||
19645 | mMetadata->mCommonMetadata.id()))){auto tryResult3756 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId , mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v <typename decltype(tryResult3756)::ok_type>); if ((__builtin_expect (!!(tryResult3756.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))" , tryResult3756.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19645, mozilla::dom::quota::Severity::Error); return tryResult3756 .propagateErr(); }}; | |||
19646 | ||||
19647 | if (mOptionalKeyRange.isSome()) { | |||
19648 | QM_TRY(MOZ_TO_RESULT({auto tryResult3757 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3757)::ok_type>); if ((__builtin_expect (!!(tryResult3757.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult3757.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19649, mozilla::dom::quota::Severity::Error); return tryResult3757 .propagateErr(); }} | |||
19649 | BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult3757 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3757)::ok_type>); if ((__builtin_expect (!!(tryResult3757.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult3757.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19649, mozilla::dom::quota::Severity::Error); return tryResult3757 .propagateErr(); }}; | |||
19650 | } | |||
19651 | ||||
19652 | QM_TRY(CollectWhileHasResult({auto tryResult3760 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3758.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19656, mozilla::dom::quota::Severity::Error); return tryResult3758 .propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect (!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3760 )::ok_type>); if ((__builtin_expect(!!(tryResult3760.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3758.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19656, mozilla::dom::quota::Severity::Error); return tryResult3758.propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect(!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3760.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19667, mozilla::dom::quota::Severity::Error); return tryResult3760 .propagateErr(); }} | |||
19653 | *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult3760 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3758.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19656, mozilla::dom::quota::Severity::Error); return tryResult3758 .propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect (!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3760 )::ok_type>); if ((__builtin_expect(!!(tryResult3760.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3758.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19656, mozilla::dom::quota::Severity::Error); return tryResult3758.propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect(!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3760.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19667, mozilla::dom::quota::Severity::Error); return tryResult3760 .propagateErr(); }} | |||
19654 | QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult3760 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3758.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19656, mozilla::dom::quota::Severity::Error); return tryResult3758 .propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect (!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3760 )::ok_type>); if ((__builtin_expect(!!(tryResult3760.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3758.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19656, mozilla::dom::quota::Severity::Error); return tryResult3758.propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect(!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3760.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19667, mozilla::dom::quota::Severity::Error); return tryResult3760 .propagateErr(); }} | |||
19655 | GetStructuredCloneReadInfoFromStatement({auto tryResult3760 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3758.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19656, mozilla::dom::quota::Severity::Error); return tryResult3758 .propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect (!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3760 )::ok_type>); if ((__builtin_expect(!!(tryResult3760.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3758.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19656, mozilla::dom::quota::Severity::Error); return tryResult3758.propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect(!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3760.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19667, mozilla::dom::quota::Severity::Error); return tryResult3760 .propagateErr(); }} | |||
19656 | &stmt, 1, 0, mDatabase->GetFileManager()));{auto tryResult3760 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3758.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19656, mozilla::dom::quota::Severity::Error); return tryResult3758 .propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect (!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3760 )::ok_type>); if ((__builtin_expect(!!(tryResult3760.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3758.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19656, mozilla::dom::quota::Severity::Error); return tryResult3758.propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect(!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3760.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19667, mozilla::dom::quota::Severity::Error); return tryResult3760 .propagateErr(); }} | |||
19657 | ||||
19658 | if (cloneInfo.HasPreprocessInfo()) {{auto tryResult3760 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3758.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19656, mozilla::dom::quota::Severity::Error); return tryResult3758 .propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect (!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3760 )::ok_type>); if ((__builtin_expect(!!(tryResult3760.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3758.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19656, mozilla::dom::quota::Severity::Error); return tryResult3758.propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect(!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3760.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19667, mozilla::dom::quota::Severity::Error); return tryResult3760 .propagateErr(); }} | |||
19659 | IDB_WARNING("Preprocessing for indexes not yet implemented!");{auto tryResult3760 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3758.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19656, mozilla::dom::quota::Severity::Error); return tryResult3758 .propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect (!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3760 )::ok_type>); if ((__builtin_expect(!!(tryResult3760.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3758.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19656, mozilla::dom::quota::Severity::Error); return tryResult3758.propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect(!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3760.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19667, mozilla::dom::quota::Severity::Error); return tryResult3760 .propagateErr(); }} | |||
19660 | return Err(NS_ERROR_NOT_IMPLEMENTED);{auto tryResult3760 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3758.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19656, mozilla::dom::quota::Severity::Error); return tryResult3758 .propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect (!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3760 )::ok_type>); if ((__builtin_expect(!!(tryResult3760.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3758.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19656, mozilla::dom::quota::Severity::Error); return tryResult3758.propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect(!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3760.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19667, mozilla::dom::quota::Severity::Error); return tryResult3760 .propagateErr(); }} | |||
19661 | }{auto tryResult3760 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3758.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19656, mozilla::dom::quota::Severity::Error); return tryResult3758 .propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect (!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3760 )::ok_type>); if ((__builtin_expect(!!(tryResult3760.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3758.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19656, mozilla::dom::quota::Severity::Error); return tryResult3758.propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect(!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3760.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19667, mozilla::dom::quota::Severity::Error); return tryResult3760 .propagateErr(); }} | |||
19662 | ||||
19663 | QM_TRY(OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult3760 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3758.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19656, mozilla::dom::quota::Severity::Error); return tryResult3758 .propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect (!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3760 )::ok_type>); if ((__builtin_expect(!!(tryResult3760.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3758.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19656, mozilla::dom::quota::Severity::Error); return tryResult3758.propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect(!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3760.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19667, mozilla::dom::quota::Severity::Error); return tryResult3760 .propagateErr(); }} | |||
19664 | Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult3760 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3758.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19656, mozilla::dom::quota::Severity::Error); return tryResult3758 .propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect (!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3760 )::ok_type>); if ((__builtin_expect(!!(tryResult3760.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3758.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19656, mozilla::dom::quota::Severity::Error); return tryResult3758.propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect(!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3760.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19667, mozilla::dom::quota::Severity::Error); return tryResult3760 .propagateErr(); }} | |||
19665 | ||||
19666 | return Ok{};{auto tryResult3760 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3758.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19656, mozilla::dom::quota::Severity::Error); return tryResult3758 .propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect (!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3760 )::ok_type>); if ((__builtin_expect(!!(tryResult3760.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3758.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19656, mozilla::dom::quota::Severity::Error); return tryResult3758.propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect(!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3760.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19667, mozilla::dom::quota::Severity::Error); return tryResult3760 .propagateErr(); }} | |||
19667 | })){auto tryResult3760 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult3758.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19656, mozilla::dom::quota::Severity::Error); return tryResult3758 .propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect (!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{} ; })); static_assert(std::is_empty_v<typename decltype(tryResult3760 )::ok_type>); if ((__builtin_expect(!!(tryResult3760.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult3758 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult3758.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult3758.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19656, mozilla::dom::quota::Severity::Error); return tryResult3758.propagateErr(); } auto cloneInfo = tryResult3758.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19659); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult3759 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult3759)::ok_type>); if ((__builtin_expect(!!(tryResult3759.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3759.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })" , tryResult3760.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19667, mozilla::dom::quota::Severity::Error); return tryResult3760 .propagateErr(); }}; | |||
19668 | ||||
19669 | MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19669); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { *((volatile int*)__null) = 19669; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19670 | ||||
19671 | return NS_OK; | |||
19672 | } | |||
19673 | ||||
19674 | // XXX This is more or less a duplicate of ObjectStoreGetRequestOp::GetResponse | |||
19675 | void IndexGetRequestOp::GetResponse(RequestResponse& aResponse, | |||
19676 | size_t* aResponseSize) { | |||
19677 | MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19677); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { *((volatile int*)__null) = 19677; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19678 | ||||
19679 | auto convertResponse = [this](StructuredCloneReadInfoParent&& info) | |||
19680 | -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { | |||
19681 | SerializedStructuredCloneReadInfo result; | |||
19682 | ||||
19683 | result.data().data = info.ReleaseData(); | |||
19684 | ||||
19685 | QM_TRY_UNWRAP(result.files(), SerializeStructuredCloneFiles(auto tryResult3761 = (SerializeStructuredCloneFiles( mDatabase , info.Files(), false)); if ((__builtin_expect(!!(tryResult3761 .isErr()), 0))) { mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, info.Files(), false)" , tryResult3761.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19686, mozilla::dom::quota::Severity::Error); return tryResult3761 .propagateErr(); } result.files() = tryResult3761.unwrap(); | |||
19686 | mDatabase, info.Files(), false))auto tryResult3761 = (SerializeStructuredCloneFiles( mDatabase , info.Files(), false)); if ((__builtin_expect(!!(tryResult3761 .isErr()), 0))) { mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, info.Files(), false)" , tryResult3761.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19686, mozilla::dom::quota::Severity::Error); return tryResult3761 .propagateErr(); } result.files() = tryResult3761.unwrap();; | |||
19687 | ||||
19688 | return result; | |||
19689 | }; | |||
19690 | ||||
19691 | if (mGetAll) { | |||
19692 | aResponse = IndexGetAllResponse(); | |||
19693 | *aResponseSize = 0; | |||
19694 | ||||
19695 | if (!mResponse.IsEmpty()) { | |||
19696 | QM_TRY_UNWRAP(auto tryResult3762 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [convertResponse, &aResponseSize](StructuredCloneReadInfoParent && info) { *aResponseSize += info.Size(); return convertResponse (std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult3762 .isErr()), 0))) { auto tryTempError = tryResult3762.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19707, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos () = tryResult3762.unwrap(); | |||
19697 | aResponse.get_IndexGetAllResponse().cloneInfos(),auto tryResult3762 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [convertResponse, &aResponseSize](StructuredCloneReadInfoParent && info) { *aResponseSize += info.Size(); return convertResponse (std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult3762 .isErr()), 0))) { auto tryTempError = tryResult3762.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19707, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos () = tryResult3762.unwrap(); | |||
19698 | TransformIntoNewArrayAbortOnErr(auto tryResult3762 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [convertResponse, &aResponseSize](StructuredCloneReadInfoParent && info) { *aResponseSize += info.Size(); return convertResponse (std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult3762 .isErr()), 0))) { auto tryTempError = tryResult3762.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19707, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos () = tryResult3762.unwrap(); | |||
19699 | std::make_move_iterator(mResponse.begin()),auto tryResult3762 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [convertResponse, &aResponseSize](StructuredCloneReadInfoParent && info) { *aResponseSize += info.Size(); return convertResponse (std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult3762 .isErr()), 0))) { auto tryTempError = tryResult3762.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19707, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos () = tryResult3762.unwrap(); | |||
19700 | std::make_move_iterator(mResponse.end()),auto tryResult3762 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [convertResponse, &aResponseSize](StructuredCloneReadInfoParent && info) { *aResponseSize += info.Size(); return convertResponse (std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult3762 .isErr()), 0))) { auto tryTempError = tryResult3762.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19707, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos () = tryResult3762.unwrap(); | |||
19701 | [convertResponse,auto tryResult3762 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [convertResponse, &aResponseSize](StructuredCloneReadInfoParent && info) { *aResponseSize += info.Size(); return convertResponse (std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult3762 .isErr()), 0))) { auto tryTempError = tryResult3762.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19707, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos () = tryResult3762.unwrap(); | |||
19702 | &aResponseSize](StructuredCloneReadInfoParent&& info) {auto tryResult3762 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [convertResponse, &aResponseSize](StructuredCloneReadInfoParent && info) { *aResponseSize += info.Size(); return convertResponse (std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult3762 .isErr()), 0))) { auto tryTempError = tryResult3762.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19707, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos () = tryResult3762.unwrap(); | |||
19703 | *aResponseSize += info.Size();auto tryResult3762 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [convertResponse, &aResponseSize](StructuredCloneReadInfoParent && info) { *aResponseSize += info.Size(); return convertResponse (std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult3762 .isErr()), 0))) { auto tryTempError = tryResult3762.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19707, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos () = tryResult3762.unwrap(); | |||
19704 | return convertResponse(std::move(info));auto tryResult3762 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [convertResponse, &aResponseSize](StructuredCloneReadInfoParent && info) { *aResponseSize += info.Size(); return convertResponse (std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult3762 .isErr()), 0))) { auto tryTempError = tryResult3762.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19707, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos () = tryResult3762.unwrap(); | |||
19705 | },auto tryResult3762 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [convertResponse, &aResponseSize](StructuredCloneReadInfoParent && info) { *aResponseSize += info.Size(); return convertResponse (std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult3762 .isErr()), 0))) { auto tryTempError = tryResult3762.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19707, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos () = tryResult3762.unwrap(); | |||
19706 | fallible),auto tryResult3762 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [convertResponse, &aResponseSize](StructuredCloneReadInfoParent && info) { *aResponseSize += info.Size(); return convertResponse (std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult3762 .isErr()), 0))) { auto tryTempError = tryResult3762.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19707, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos () = tryResult3762.unwrap(); | |||
19707 | QM_VOID, [&aResponse](const nsresult result) { aResponse = result; })auto tryResult3762 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator (mResponse.begin()), std::make_move_iterator(mResponse.end()) , [convertResponse, &aResponseSize](StructuredCloneReadInfoParent && info) { *aResponseSize += info.Size(); return convertResponse (std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult3762 .isErr()), 0))) { auto tryTempError = tryResult3762.unwrapErr (); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19707, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos () = tryResult3762.unwrap();; | |||
19708 | } | |||
19709 | ||||
19710 | return; | |||
19711 | } | |||
19712 | ||||
19713 | aResponse = IndexGetResponse(); | |||
19714 | *aResponseSize = 0; | |||
19715 | ||||
19716 | if (!mResponse.IsEmpty()) { | |||
19717 | SerializedStructuredCloneReadInfo& serializedInfo = | |||
19718 | aResponse.get_IndexGetResponse().cloneInfo(); | |||
19719 | ||||
19720 | *aResponseSize += mResponse[0].Size(); | |||
19721 | QM_TRY_UNWRAP(serializedInfo, convertResponse(std::move(mResponse[0])),auto tryResult3763 = (convertResponse(std::move(mResponse[0]) )); if ((__builtin_expect(!!(tryResult3763.isErr()), 0))) { auto tryTempError = tryResult3763.unwrapErr(); mozilla::dom::quota ::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19723, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } serializedInfo = tryResult3763.unwrap (); | |||
19722 | QM_VOID,auto tryResult3763 = (convertResponse(std::move(mResponse[0]) )); if ((__builtin_expect(!!(tryResult3763.isErr()), 0))) { auto tryTempError = tryResult3763.unwrapErr(); mozilla::dom::quota ::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19723, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } serializedInfo = tryResult3763.unwrap (); | |||
19723 | [&aResponse](const nsresult result) { aResponse = result; })auto tryResult3763 = (convertResponse(std::move(mResponse[0]) )); if ((__builtin_expect(!!(tryResult3763.isErr()), 0))) { auto tryTempError = tryResult3763.unwrapErr(); mozilla::dom::quota ::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19723, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = result; }(tryTempError ); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } serializedInfo = tryResult3763.unwrap ();; | |||
19724 | } | |||
19725 | } | |||
19726 | ||||
19727 | IndexGetKeyRequestOp::IndexGetKeyRequestOp( | |||
19728 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | |||
19729 | const RequestParams& aParams, bool aGetAll) | |||
19730 | : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams), | |||
19731 | mOptionalKeyRange( | |||
19732 | aGetAll ? aParams.get_IndexGetAllKeysParams().optionalKeyRange() | |||
19733 | : Some(aParams.get_IndexGetKeyParams().keyRange())), | |||
19734 | mLimit(aGetAll ? aParams.get_IndexGetAllKeysParams().limit() : 1), | |||
19735 | mGetAll(aGetAll) { | |||
19736 | MOZ_ASSERT(aParams.type() == RequestParams::TIndexGetKeyParams ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19737); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams" ")"); do { *((volatile int*)__null) = 19737; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
19737 | aParams.type() == RequestParams::TIndexGetAllKeysParams)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19737); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams" ")"); do { *((volatile int*)__null) = 19737; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19738 | MOZ_ASSERT_IF(!aGetAll, mOptionalKeyRange.isSome())do { if (!aGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19738); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { *((volatile int*)__null) = 19738; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19739 | } | |||
19740 | ||||
19741 | nsresult IndexGetKeyRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) { | |||
19742 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19742); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 19742; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19743 | aConnection->AssertIsOnConnectionThread(); | |||
19744 | MOZ_ASSERT_IF(!mGetAll, mOptionalKeyRange.isSome())do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome())) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19744); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { *((volatile int*)__null) = 19744; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19745 | MOZ_ASSERT_IF(!mGetAll, mLimit == 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mLimit == 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLimit == 1))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mLimit == 1", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19745); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1" ")"); do { *((volatile int*)__null) = 19745; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19746 | ||||
19747 | AUTO_PROFILER_LABEL("IndexGetKeyRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19747( "IndexGetKeyRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
19748 | ||||
19749 | const bool hasKeyRange = mOptionalKeyRange.isSome(); | |||
19750 | ||||
19751 | const auto indexTable = mMetadata->mCommonMetadata.unique() | |||
19752 | ? "unique_index_data "_ns | |||
19753 | : "index_data "_ns; | |||
19754 | ||||
19755 | const nsCString query = | |||
19756 | "SELECT object_data_key " | |||
19757 | "FROM "_ns + | |||
19758 | indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + | |||
19759 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + | |||
19760 | (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()); | |||
19761 | ||||
19762 | QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult3764 = (aConnection->BorrowCachedStatement(query )); if ((__builtin_expect(!!(tryResult3764.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)" , tryResult3764.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19762, mozilla::dom::quota::Severity::Error); return tryResult3764 .propagateErr(); } const auto& stmt = tryResult3764.inspect ();; | |||
19763 | ||||
19764 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult3765 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId , mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v <typename decltype(tryResult3765)::ok_type>); if ((__builtin_expect (!!(tryResult3765.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))" , tryResult3765.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19765, mozilla::dom::quota::Severity::Error); return tryResult3765 .propagateErr(); }} | |||
19765 | mMetadata->mCommonMetadata.id()))){auto tryResult3765 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId , mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v <typename decltype(tryResult3765)::ok_type>); if ((__builtin_expect (!!(tryResult3765.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))" , tryResult3765.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19765, mozilla::dom::quota::Severity::Error); return tryResult3765 .propagateErr(); }}; | |||
19766 | ||||
19767 | if (hasKeyRange) { | |||
19768 | QM_TRY(MOZ_TO_RESULT({auto tryResult3766 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3766)::ok_type>); if ((__builtin_expect (!!(tryResult3766.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult3766.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19769, mozilla::dom::quota::Severity::Error); return tryResult3766 .propagateErr(); }} | |||
19769 | BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult3766 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3766)::ok_type>); if ((__builtin_expect (!!(tryResult3766.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult3766.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19769, mozilla::dom::quota::Severity::Error); return tryResult3766 .propagateErr(); }}; | |||
19770 | } | |||
19771 | ||||
19772 | QM_TRY(CollectWhileHasResult({auto tryResult3769 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3767 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult3767)::ok_type>); if ((__builtin_expect(!!(tryResult3767 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3767.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19775, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError , Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3768 = (ToResult (key->SetFromStatement(&stmt, 0))); static_assert(std:: is_empty_v<typename decltype(tryResult3768)::ok_type>); if ((__builtin_expect(!!(tryResult3768.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult3768.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19776, mozilla::dom::quota::Severity::Error); return tryResult3768 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3769)::ok_type>); if ((__builtin_expect (!!(tryResult3769.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3767 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult3767)::ok_type>); if ((__builtin_expect(!!(tryResult3767.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3767.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19775, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3768 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3768)::ok_type>); if ((__builtin_expect(!!(tryResult3768.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult3768.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19776, mozilla::dom::quota::Severity::Error); return tryResult3768.propagateErr(); }}; return Ok{}; })" , tryResult3769.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19779, mozilla::dom::quota::Severity::Error); return tryResult3769 .propagateErr(); }} | |||
19773 | *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult3769 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3767 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult3767)::ok_type>); if ((__builtin_expect(!!(tryResult3767 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3767.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19775, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError , Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3768 = (ToResult (key->SetFromStatement(&stmt, 0))); static_assert(std:: is_empty_v<typename decltype(tryResult3768)::ok_type>); if ((__builtin_expect(!!(tryResult3768.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult3768.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19776, mozilla::dom::quota::Severity::Error); return tryResult3768 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3769)::ok_type>); if ((__builtin_expect (!!(tryResult3769.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3767 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult3767)::ok_type>); if ((__builtin_expect(!!(tryResult3767.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3767.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19775, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3768 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3768)::ok_type>); if ((__builtin_expect(!!(tryResult3768.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult3768.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19776, mozilla::dom::quota::Severity::Error); return tryResult3768.propagateErr(); }}; return Ok{}; })" , tryResult3769.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19779, mozilla::dom::quota::Severity::Error); return tryResult3769 .propagateErr(); }} | |||
19774 | Key* const key = mResponse.AppendElement(fallible);{auto tryResult3769 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3767 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult3767)::ok_type>); if ((__builtin_expect(!!(tryResult3767 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3767.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19775, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError , Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3768 = (ToResult (key->SetFromStatement(&stmt, 0))); static_assert(std:: is_empty_v<typename decltype(tryResult3768)::ok_type>); if ((__builtin_expect(!!(tryResult3768.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult3768.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19776, mozilla::dom::quota::Severity::Error); return tryResult3768 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3769)::ok_type>); if ((__builtin_expect (!!(tryResult3769.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3767 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult3767)::ok_type>); if ((__builtin_expect(!!(tryResult3767.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3767.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19775, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3768 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3768)::ok_type>); if ((__builtin_expect(!!(tryResult3768.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult3768.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19776, mozilla::dom::quota::Severity::Error); return tryResult3768.propagateErr(); }}; return Ok{}; })" , tryResult3769.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19779, mozilla::dom::quota::Severity::Error); return tryResult3769 .propagateErr(); }} | |||
19775 | QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult3769 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3767 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult3767)::ok_type>); if ((__builtin_expect(!!(tryResult3767 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3767.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19775, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError , Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3768 = (ToResult (key->SetFromStatement(&stmt, 0))); static_assert(std:: is_empty_v<typename decltype(tryResult3768)::ok_type>); if ((__builtin_expect(!!(tryResult3768.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult3768.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19776, mozilla::dom::quota::Severity::Error); return tryResult3768 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3769)::ok_type>); if ((__builtin_expect (!!(tryResult3769.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3767 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult3767)::ok_type>); if ((__builtin_expect(!!(tryResult3767.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3767.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19775, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3768 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3768)::ok_type>); if ((__builtin_expect(!!(tryResult3768.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult3768.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19776, mozilla::dom::quota::Severity::Error); return tryResult3768.propagateErr(); }}; return Ok{}; })" , tryResult3769.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19779, mozilla::dom::quota::Severity::Error); return tryResult3769 .propagateErr(); }} | |||
19776 | QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult3769 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3767 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult3767)::ok_type>); if ((__builtin_expect(!!(tryResult3767 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3767.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19775, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError , Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3768 = (ToResult (key->SetFromStatement(&stmt, 0))); static_assert(std:: is_empty_v<typename decltype(tryResult3768)::ok_type>); if ((__builtin_expect(!!(tryResult3768.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult3768.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19776, mozilla::dom::quota::Severity::Error); return tryResult3768 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3769)::ok_type>); if ((__builtin_expect (!!(tryResult3769.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3767 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult3767)::ok_type>); if ((__builtin_expect(!!(tryResult3767.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3767.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19775, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3768 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3768)::ok_type>); if ((__builtin_expect(!!(tryResult3768.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult3768.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19776, mozilla::dom::quota::Severity::Error); return tryResult3768.propagateErr(); }}; return Ok{}; })" , tryResult3769.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19779, mozilla::dom::quota::Severity::Error); return tryResult3769 .propagateErr(); }} | |||
19777 | ||||
19778 | return Ok{};{auto tryResult3769 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3767 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult3767)::ok_type>); if ((__builtin_expect(!!(tryResult3767 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3767.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19775, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError , Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3768 = (ToResult (key->SetFromStatement(&stmt, 0))); static_assert(std:: is_empty_v<typename decltype(tryResult3768)::ok_type>); if ((__builtin_expect(!!(tryResult3768.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult3768.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19776, mozilla::dom::quota::Severity::Error); return tryResult3768 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3769)::ok_type>); if ((__builtin_expect (!!(tryResult3769.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3767 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult3767)::ok_type>); if ((__builtin_expect(!!(tryResult3767.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3767.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19775, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3768 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3768)::ok_type>); if ((__builtin_expect(!!(tryResult3768.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult3768.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19776, mozilla::dom::quota::Severity::Error); return tryResult3768.propagateErr(); }}; return Ok{}; })" , tryResult3769.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19779, mozilla::dom::quota::Severity::Error); return tryResult3769 .propagateErr(); }} | |||
19779 | })){auto tryResult3769 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3767 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult3767)::ok_type>); if ((__builtin_expect(!!(tryResult3767 .isErr()), 0))) { auto tryTempError __attribute__((__unused__ )) = tryResult3767.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19775, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError , Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3768 = (ToResult (key->SetFromStatement(&stmt, 0))); static_assert(std:: is_empty_v<typename decltype(tryResult3768)::ok_type>); if ((__builtin_expect(!!(tryResult3768.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult3768.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19776, mozilla::dom::quota::Severity::Error); return tryResult3768 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult3769)::ok_type>); if ((__builtin_expect (!!(tryResult3769.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult3767 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult3767)::ok_type>); if ((__builtin_expect(!!(tryResult3767.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3767.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19775, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult3768 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult3768)::ok_type>); if ((__builtin_expect(!!(tryResult3768.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult3768.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19776, mozilla::dom::quota::Severity::Error); return tryResult3768.propagateErr(); }}; return Ok{}; })" , tryResult3769.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19779, mozilla::dom::quota::Severity::Error); return tryResult3769 .propagateErr(); }}; | |||
19780 | ||||
19781 | MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19781); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { *((volatile int*)__null) = 19781; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19782 | ||||
19783 | return NS_OK; | |||
19784 | } | |||
19785 | ||||
19786 | void IndexGetKeyRequestOp::GetResponse(RequestResponse& aResponse, | |||
19787 | size_t* aResponseSize) { | |||
19788 | MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19788); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { *((volatile int*)__null) = 19788; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19789 | ||||
19790 | if (mGetAll) { | |||
19791 | aResponse = IndexGetAllKeysResponse(); | |||
19792 | *aResponseSize = std::accumulate(mResponse.begin(), mResponse.end(), 0u, | |||
19793 | [](size_t old, const auto& entry) { | |||
19794 | return old + entry.GetBuffer().Length(); | |||
19795 | }); | |||
19796 | ||||
19797 | aResponse.get_IndexGetAllKeysResponse().keys() = std::move(mResponse); | |||
19798 | ||||
19799 | return; | |||
19800 | } | |||
19801 | ||||
19802 | aResponse = IndexGetKeyResponse(); | |||
19803 | *aResponseSize = 0; | |||
19804 | ||||
19805 | if (!mResponse.IsEmpty()) { | |||
19806 | *aResponseSize = mResponse[0].GetBuffer().Length(); | |||
19807 | aResponse.get_IndexGetKeyResponse().key() = std::move(mResponse[0]); | |||
19808 | } | |||
19809 | } | |||
19810 | ||||
19811 | nsresult IndexCountRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) { | |||
19812 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 19812; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19813 | aConnection->AssertIsOnConnectionThread(); | |||
19814 | ||||
19815 | AUTO_PROFILER_LABEL("IndexCountRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19815( "IndexCountRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
19816 | ||||
19817 | const auto indexTable = mMetadata->mCommonMetadata.unique() | |||
19818 | ? "unique_index_data "_ns | |||
19819 | : "index_data "_ns; | |||
19820 | ||||
19821 | const auto keyRangeClause = MaybeGetBindingClauseForKeyRange( | |||
19822 | mParams.optionalKeyRange(), kColumnNameValue); | |||
19823 | ||||
19824 | QM_TRY_INSPECT(auto tryResult3772 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult3770)::ok_type> ); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult3770.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19833, mozilla::dom::quota::Severity::Error); return tryResult3770 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult3771)::ok_type >); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult3771.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19837, mozilla::dom::quota::Severity::Error); return tryResult3771 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3772.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3770)::ok_type>); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult3770.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19833, mozilla::dom::quota::Severity::Error); return tryResult3770.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3771)::ok_type>); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult3771.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); return tryResult3771.propagateErr(); }}; } return Ok{}; })" , tryResult3772.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult3772 .propagateErr(); } const auto& maybeStmt = tryResult3772. inspect(); | |||
19825 | const auto& maybeStmt,auto tryResult3772 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult3770)::ok_type> ); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult3770.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19833, mozilla::dom::quota::Severity::Error); return tryResult3770 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult3771)::ok_type >); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult3771.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19837, mozilla::dom::quota::Severity::Error); return tryResult3771 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3772.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3770)::ok_type>); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult3770.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19833, mozilla::dom::quota::Severity::Error); return tryResult3770.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3771)::ok_type>); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult3771.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); return tryResult3771.propagateErr(); }}; } return Ok{}; })" , tryResult3772.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult3772 .propagateErr(); } const auto& maybeStmt = tryResult3772. inspect(); | |||
19826 | aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult3772 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult3770)::ok_type> ); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult3770.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19833, mozilla::dom::quota::Severity::Error); return tryResult3770 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult3771)::ok_type >); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult3771.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19837, mozilla::dom::quota::Severity::Error); return tryResult3771 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3772.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3770)::ok_type>); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult3770.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19833, mozilla::dom::quota::Severity::Error); return tryResult3770.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3771)::ok_type>); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult3771.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); return tryResult3771.propagateErr(); }}; } return Ok{}; })" , tryResult3772.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult3772 .propagateErr(); } const auto& maybeStmt = tryResult3772. inspect(); | |||
19827 | "SELECT count(*) "auto tryResult3772 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult3770)::ok_type> ); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult3770.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19833, mozilla::dom::quota::Severity::Error); return tryResult3770 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult3771)::ok_type >); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult3771.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19837, mozilla::dom::quota::Severity::Error); return tryResult3771 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3772.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3770)::ok_type>); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult3770.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19833, mozilla::dom::quota::Severity::Error); return tryResult3770.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3771)::ok_type>); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult3771.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); return tryResult3771.propagateErr(); }}; } return Ok{}; })" , tryResult3772.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult3772 .propagateErr(); } const auto& maybeStmt = tryResult3772. inspect(); | |||
19828 | "FROM "_ns +auto tryResult3772 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult3770)::ok_type> ); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult3770.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19833, mozilla::dom::quota::Severity::Error); return tryResult3770 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult3771)::ok_type >); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult3771.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19837, mozilla::dom::quota::Severity::Error); return tryResult3771 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3772.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3770)::ok_type>); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult3770.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19833, mozilla::dom::quota::Severity::Error); return tryResult3770.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3771)::ok_type>); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult3771.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); return tryResult3771.propagateErr(); }}; } return Ok{}; })" , tryResult3772.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult3772 .propagateErr(); } const auto& maybeStmt = tryResult3772. inspect(); | |||
19829 | indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId +auto tryResult3772 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult3770)::ok_type> ); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult3770.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19833, mozilla::dom::quota::Severity::Error); return tryResult3770 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult3771)::ok_type >); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult3771.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19837, mozilla::dom::quota::Severity::Error); return tryResult3771 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3772.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3770)::ok_type>); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult3770.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19833, mozilla::dom::quota::Severity::Error); return tryResult3770.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3771)::ok_type>); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult3771.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); return tryResult3771.propagateErr(); }}; } return Ok{}; })" , tryResult3772.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult3772 .propagateErr(); } const auto& maybeStmt = tryResult3772. inspect(); | |||
19830 | keyRangeClause,auto tryResult3772 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult3770)::ok_type> ); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult3770.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19833, mozilla::dom::quota::Severity::Error); return tryResult3770 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult3771)::ok_type >); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult3771.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19837, mozilla::dom::quota::Severity::Error); return tryResult3771 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3772.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3770)::ok_type>); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult3770.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19833, mozilla::dom::quota::Severity::Error); return tryResult3770.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3771)::ok_type>); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult3771.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); return tryResult3771.propagateErr(); }}; } return Ok{}; })" , tryResult3772.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult3772 .propagateErr(); } const auto& maybeStmt = tryResult3772. inspect(); | |||
19831 | [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult3772 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult3770)::ok_type> ); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult3770.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19833, mozilla::dom::quota::Severity::Error); return tryResult3770 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult3771)::ok_type >); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult3771.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19837, mozilla::dom::quota::Severity::Error); return tryResult3771 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3772.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3770)::ok_type>); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult3770.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19833, mozilla::dom::quota::Severity::Error); return tryResult3770.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3771)::ok_type>); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult3771.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); return tryResult3771.propagateErr(); }}; } return Ok{}; })" , tryResult3772.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult3772 .propagateErr(); } const auto& maybeStmt = tryResult3772. inspect(); | |||
19832 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult3772 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult3770)::ok_type> ); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult3770.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19833, mozilla::dom::quota::Severity::Error); return tryResult3770 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult3771)::ok_type >); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult3771.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19837, mozilla::dom::quota::Severity::Error); return tryResult3771 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3772.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3770)::ok_type>); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult3770.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19833, mozilla::dom::quota::Severity::Error); return tryResult3770.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3771)::ok_type>); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult3771.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); return tryResult3771.propagateErr(); }}; } return Ok{}; })" , tryResult3772.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult3772 .propagateErr(); } const auto& maybeStmt = tryResult3772. inspect(); | |||
19833 | kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id())));auto tryResult3772 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult3770)::ok_type> ); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult3770.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19833, mozilla::dom::quota::Severity::Error); return tryResult3770 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult3771)::ok_type >); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult3771.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19837, mozilla::dom::quota::Severity::Error); return tryResult3771 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3772.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3770)::ok_type>); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult3770.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19833, mozilla::dom::quota::Severity::Error); return tryResult3770.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3771)::ok_type>); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult3771.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); return tryResult3771.propagateErr(); }}; } return Ok{}; })" , tryResult3772.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult3772 .propagateErr(); } const auto& maybeStmt = tryResult3772. inspect(); | |||
19834 | ||||
19835 | if (self.mParams.optionalKeyRange().isSome()) {auto tryResult3772 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult3770)::ok_type> ); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult3770.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19833, mozilla::dom::quota::Severity::Error); return tryResult3770 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult3771)::ok_type >); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult3771.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19837, mozilla::dom::quota::Severity::Error); return tryResult3771 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3772.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3770)::ok_type>); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult3770.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19833, mozilla::dom::quota::Severity::Error); return tryResult3770.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3771)::ok_type>); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult3771.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); return tryResult3771.propagateErr(); }}; } return Ok{}; })" , tryResult3772.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult3772 .propagateErr(); } const auto& maybeStmt = tryResult3772. inspect(); | |||
19836 | QM_TRY(MOZ_TO_RESULT(BindKeyRangeToStatement(auto tryResult3772 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult3770)::ok_type> ); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult3770.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19833, mozilla::dom::quota::Severity::Error); return tryResult3770 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult3771)::ok_type >); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult3771.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19837, mozilla::dom::quota::Severity::Error); return tryResult3771 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3772.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3770)::ok_type>); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult3770.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19833, mozilla::dom::quota::Severity::Error); return tryResult3770.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3771)::ok_type>); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult3771.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); return tryResult3771.propagateErr(); }}; } return Ok{}; })" , tryResult3772.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult3772 .propagateErr(); } const auto& maybeStmt = tryResult3772. inspect(); | |||
19837 | self.mParams.optionalKeyRange().ref(), &stmt)));auto tryResult3772 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult3770)::ok_type> ); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult3770.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19833, mozilla::dom::quota::Severity::Error); return tryResult3770 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult3771)::ok_type >); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult3771.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19837, mozilla::dom::quota::Severity::Error); return tryResult3771 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3772.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3770)::ok_type>); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult3770.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19833, mozilla::dom::quota::Severity::Error); return tryResult3770.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3771)::ok_type>); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult3771.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); return tryResult3771.propagateErr(); }}; } return Ok{}; })" , tryResult3772.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult3772 .propagateErr(); } const auto& maybeStmt = tryResult3772. inspect(); | |||
19838 | }auto tryResult3772 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult3770)::ok_type> ); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult3770.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19833, mozilla::dom::quota::Severity::Error); return tryResult3770 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult3771)::ok_type >); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult3771.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19837, mozilla::dom::quota::Severity::Error); return tryResult3771 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3772.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3770)::ok_type>); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult3770.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19833, mozilla::dom::quota::Severity::Error); return tryResult3770.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3771)::ok_type>); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult3771.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); return tryResult3771.propagateErr(); }}; } return Ok{}; })" , tryResult3772.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult3772 .propagateErr(); } const auto& maybeStmt = tryResult3772. inspect(); | |||
19839 | ||||
19840 | return Ok{};auto tryResult3772 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult3770)::ok_type> ); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult3770.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19833, mozilla::dom::quota::Severity::Error); return tryResult3770 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult3771)::ok_type >); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult3771.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19837, mozilla::dom::quota::Severity::Error); return tryResult3771 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3772.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3770)::ok_type>); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult3770.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19833, mozilla::dom::quota::Severity::Error); return tryResult3770.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3771)::ok_type>); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult3771.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); return tryResult3771.propagateErr(); }}; } return Ok{}; })" , tryResult3772.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult3772 .propagateErr(); } const auto& maybeStmt = tryResult3772. inspect(); | |||
19841 | }))auto tryResult3772 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult3770)::ok_type> ); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult3770.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19833, mozilla::dom::quota::Severity::Error); return tryResult3770 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult3771)::ok_type >); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult3771.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19837, mozilla::dom::quota::Severity::Error); return tryResult3771 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult3772.isErr()), 0))) { mozilla::dom::quota::HandleError ("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult3770 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult3770)::ok_type>); if ((__builtin_expect(!!(tryResult3770.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult3770.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19833, mozilla::dom::quota::Severity::Error); return tryResult3770.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult3771 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult3771)::ok_type>); if ((__builtin_expect(!!(tryResult3771.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult3771.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19837, mozilla::dom::quota::Severity::Error); return tryResult3771.propagateErr(); }}; } return Ok{}; })" , tryResult3772.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19841, mozilla::dom::quota::Severity::Error); return tryResult3772 .propagateErr(); } const auto& maybeStmt = tryResult3772. inspect();; | |||
19842 | ||||
19843 | QM_TRY(OkIf(maybeStmt.isSome()), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult3773 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult3773)::ok_type >); if ((__builtin_expect(!!(tryResult3773.isErr()), 0))) { auto tryTempError = tryResult3773.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19849, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19847); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19847; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19848, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19844 | [](const auto) {{auto tryResult3773 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult3773)::ok_type >); if ((__builtin_expect(!!(tryResult3773.isErr()), 0))) { auto tryTempError = tryResult3773.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19849, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19847); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19847; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19848, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19845 | // XXX Why do we have an assertion here, but not at most other{auto tryResult3773 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult3773)::ok_type >); if ((__builtin_expect(!!(tryResult3773.isErr()), 0))) { auto tryTempError = tryResult3773.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19849, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19847); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19847; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19848, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19846 | // places using IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult3773 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult3773)::ok_type >); if ((__builtin_expect(!!(tryResult3773.isErr()), 0))) { auto tryTempError = tryResult3773.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19849, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19847); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19847; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19848, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19847 | MOZ_ASSERT(false, "This should never be possible!");{auto tryResult3773 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult3773)::ok_type >); if ((__builtin_expect(!!(tryResult3773.isErr()), 0))) { auto tryTempError = tryResult3773.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19849, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19847); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19847; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19848, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19848 | IDB_REPORT_INTERNAL_ERR();{auto tryResult3773 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult3773)::ok_type >); if ((__builtin_expect(!!(tryResult3773.isErr()), 0))) { auto tryTempError = tryResult3773.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19849, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19847); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19847; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19848, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19849 | }){auto tryResult3773 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult3773)::ok_type >); if ((__builtin_expect(!!(tryResult3773.isErr()), 0))) { auto tryTempError = tryResult3773.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19849, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19847); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19847; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19848, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())" , tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | |||
19850 | ||||
19851 | const auto& stmt = *maybeStmt; | |||
19852 | ||||
19853 | const int64_t count = stmt->AsInt64(0); | |||
19854 | QM_TRY(OkIf(count >= 0), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, [](const auto) {{auto tryResult3774 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult3774)::ok_type> ); if ((__builtin_expect(!!(tryResult3774.isErr()), 0))) { auto tryTempError = tryResult3774.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19859, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19857; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19858, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)", tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19855 | // XXX Why do we have an assertion here, but not at most other places using{auto tryResult3774 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult3774)::ok_type> ); if ((__builtin_expect(!!(tryResult3774.isErr()), 0))) { auto tryTempError = tryResult3774.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19859, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19857; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19858, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)", tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19856 | // IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult3774 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult3774)::ok_type> ); if ((__builtin_expect(!!(tryResult3774.isErr()), 0))) { auto tryTempError = tryResult3774.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19859, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19857; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19858, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)", tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19857 | MOZ_ASSERT(false, "This should never be possible!");{auto tryResult3774 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult3774)::ok_type> ); if ((__builtin_expect(!!(tryResult3774.isErr()), 0))) { auto tryTempError = tryResult3774.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19859, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19857; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19858, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)", tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19858 | IDB_REPORT_INTERNAL_ERR();{auto tryResult3774 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult3774)::ok_type> ); if ((__builtin_expect(!!(tryResult3774.isErr()), 0))) { auto tryTempError = tryResult3774.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19859, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19857; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19858, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)", tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }} | |||
19859 | }){auto tryResult3774 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult3774)::ok_type> ); if ((__builtin_expect(!!(tryResult3774.isErr()), 0))) { auto tryTempError = tryResult3774.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19859, mozilla::dom::quota::Severity::Error); [](const auto ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(false)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { *((volatile int* )__null) = 19857; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mozilla::dom::indexedDB::ReportInternalError ("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19858, "UnknownErr"); }(tryTempError); constexpr const auto & func __attribute__((__unused__)) = __func__; return mozilla ::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)", tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}; | |||
19860 | ||||
19861 | mResponse.count() = count; | |||
19862 | ||||
19863 | return NS_OK; | |||
19864 | } | |||
19865 | ||||
19866 | template <IDBCursorType CursorType> | |||
19867 | bool Cursor<CursorType>::CursorOpBase::SendFailureResult(nsresult aResultCode) { | |||
19868 | AssertIsOnOwningThread(); | |||
19869 | MOZ_ASSERT(NS_FAILED(aResultCode))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode )), 0))))>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl (aResultCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19869); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))" ")"); do { *((volatile int*)__null) = 19869; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19870 | MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19870); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")" ); do { *((volatile int*)__null) = 19870; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
19871 | MOZ_ASSERT(mCursor->mCurrentlyRunningOp == this)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor->mCurrentlyRunningOp == this)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mCursor->mCurrentlyRunningOp == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor->mCurrentlyRunningOp == this" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19871); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mCurrentlyRunningOp == this" ")"); do { *((volatile int*)__null) = 19871; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19872 | MOZ_ASSERT(!mResponseSent)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mResponseSent)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mResponseSent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mResponseSent" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19872); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponseSent" ")"); do { *((volatile int*)__null) = 19872; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
19873 | ||||
19874 | if (!IsActorDestroyed()) { | |||
19875 | mResponse = ClampResultCode(aResultCode); | |||
19876 | ||||
19877 | // This is an expected race when the transaction is invalidated after | |||
19878 | // data is retrieved from database. | |||
19879 | // | |||
19880 | // TODO: There seem to be other cases when mFiles is non-empty here, which | |||
19881 | // have been present before adding cursor preloading, but with cursor | |||
19882 | // preloading they have become more frequent (also during startup). One | |||
19883 | // possible cause with cursor preloading is to be addressed by Bug 1597191. | |||
19884 | NS_WARNING_ASSERTION(do { if (!(!mFiles.IsEmpty() && !Transaction().IsInvalidated ())) { NS_DebugBreak(NS_DEBUG_WARNING, "Expected empty mFiles when transaction has not been invalidated" , "!mFiles.IsEmpty() && !Transaction().IsInvalidated()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19886); } } while (false) | |||
19885 | !mFiles.IsEmpty() && !Transaction().IsInvalidated(),do { if (!(!mFiles.IsEmpty() && !Transaction().IsInvalidated ())) { NS_DebugBreak(NS_DEBUG_WARNING, "Expected empty mFiles when transaction has not been invalidated" , "!mFiles.IsEmpty() && !Transaction().IsInvalidated()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19886); } } while (false) | |||
19886 | "Expected empty mFiles when transaction has not been invalidated")do { if (!(!mFiles.IsEmpty() && !Transaction().IsInvalidated ())) { NS_DebugBreak(NS_DEBUG_WARNING, "Expected empty mFiles when transaction has not been invalidated" , "!mFiles.IsEmpty() && !Transaction().IsInvalidated()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19886); } } while (false); | |||
19887 | ||||
19888 | // SendResponseInternal will assert when mResponse.type() is | |||
19889 | // CursorResponse::Tnsresult and mFiles is non-empty, so we clear mFiles | |||
19890 | // here. | |||
19891 | mFiles.Clear(); | |||
19892 | ||||
19893 | mCursor->SendResponseInternal(mResponse, mFiles); | |||
19894 | } | |||
19895 | ||||
19896 | #ifdef DEBUG1 | |||
19897 | mResponseSent = true; | |||
19898 | #endif | |||
19899 | return false; | |||
19900 | } | |||
19901 | ||||
19902 | template <IDBCursorType CursorType> | |||
19903 | void Cursor<CursorType>::CursorOpBase::Cleanup() { | |||
19904 | AssertIsOnOwningThread(); | |||
19905 | MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19905); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")" ); do { *((volatile int*)__null) = 19905; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
19906 | MOZ_ASSERT_IF(!IsActorDestroyed(), mResponseSent)do { if (!IsActorDestroyed()) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mResponseSent)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(mResponseSent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mResponseSent", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19906); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponseSent" ")"); do { *((volatile int*)__null) = 19906; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19907 | ||||
19908 | mCursor = nullptr; | |||
19909 | ||||
19910 | #ifdef DEBUG1 | |||
19911 | // A bit hacky but the CursorOp request is not generated in response to a | |||
19912 | // child request like most other database operations. Do this to make our | |||
19913 | // assertions happy. | |||
19914 | NoteActorDestroyed(); | |||
19915 | #endif | |||
19916 | ||||
19917 | TransactionDatabaseOperationBase::Cleanup(); | |||
19918 | } | |||
19919 | ||||
19920 | template <IDBCursorType CursorType> | |||
19921 | ResponseSizeOrError | |||
19922 | CursorOpBaseHelperBase<CursorType>::PopulateResponseFromStatement( | |||
19923 | mozIStorageStatement* const aStmt, const bool aInitializeResponse, | |||
19924 | Key* const aOptOutSortKey) { | |||
19925 | mOp.Transaction().AssertIsOnConnectionThread(); | |||
19926 | MOZ_ASSERT_IF(aInitializeResponse,do { if (aInitializeResponse) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mOp.mResponse.type () == CursorResponse::T__None)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOp.mResponse.type() == CursorResponse ::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mOp.mResponse.type() == CursorResponse::T__None", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19927); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() == CursorResponse::T__None" ")"); do { *((volatile int*)__null) = 19927; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
19927 | mOp.mResponse.type() == CursorResponse::T__None)do { if (aInitializeResponse) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mOp.mResponse.type () == CursorResponse::T__None)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOp.mResponse.type() == CursorResponse ::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mOp.mResponse.type() == CursorResponse::T__None", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19927); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() == CursorResponse::T__None" ")"); do { *((volatile int*)__null) = 19927; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19928 | MOZ_ASSERT_IF(!aInitializeResponse,do { if (!aInitializeResponse) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mOp.mResponse.type () != CursorResponse::T__None)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOp.mResponse.type() != CursorResponse ::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mOp.mResponse.type() != CursorResponse::T__None", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19929); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() != CursorResponse::T__None" ")"); do { *((volatile int*)__null) = 19929; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
19929 | mOp.mResponse.type() != CursorResponse::T__None)do { if (!aInitializeResponse) { do { static_assert( mozilla:: detail::AssertionConditionType<decltype(mOp.mResponse.type () != CursorResponse::T__None)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOp.mResponse.type() != CursorResponse ::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mOp.mResponse.type() != CursorResponse::T__None", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19929); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() != CursorResponse::T__None" ")"); do { *((volatile int*)__null) = 19929; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19930 | MOZ_ASSERT_IF(do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type( ) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp .mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(aInitializeResponse)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19935); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { *((volatile int*)__null) = 19935; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
19931 | mOp.mFiles.IsEmpty() &&do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type( ) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp .mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(aInitializeResponse)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19935); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { *((volatile int*)__null) = 19935; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
19932 | (mOp.mResponse.type() ==do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type( ) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp .mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(aInitializeResponse)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19935); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { *((volatile int*)__null) = 19935; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
19933 | CursorResponse::TArrayOfObjectStoreCursorResponse ||do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type( ) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp .mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(aInitializeResponse)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19935); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { *((volatile int*)__null) = 19935; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
19934 | mOp.mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse),do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type( ) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp .mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(aInitializeResponse)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19935); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { *((volatile int*)__null) = 19935; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
19935 | aInitializeResponse)do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type( ) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp .mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse )) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(aInitializeResponse)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19935); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { *((volatile int*)__null) = 19935; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
19936 | ||||
19937 | auto populateResponseHelper = PopulateResponseHelper<CursorType>{mOp}; | |||
19938 | auto previousKey = aOptOutSortKey ? std::move(*aOptOutSortKey) : Key{}; | |||
19939 | ||||
19940 | QM_TRY(MOZ_TO_RESULT(populateResponseHelper.GetKeys(aStmt, aOptOutSortKey))){auto tryResult3775 = (ToResult(populateResponseHelper.GetKeys (aStmt, aOptOutSortKey))); static_assert(std::is_empty_v<typename decltype(tryResult3775)::ok_type>); if ((__builtin_expect (!!(tryResult3775.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(populateResponseHelper.GetKeys(aStmt, aOptOutSortKey))" , tryResult3775.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19940, mozilla::dom::quota::Severity::Error); return tryResult3775 .propagateErr(); }}; | |||
19941 | ||||
19942 | // aOptOutSortKey must be set iff the cursor is a unique cursor. For unique | |||
19943 | // cursors, we need to skip records with the same key. The SQL queries | |||
19944 | // currently do not filter these out. | |||
19945 | if (aOptOutSortKey && !previousKey.IsUnset() && | |||
19946 | previousKey == *aOptOutSortKey) { | |||
19947 | return 0; | |||
19948 | } | |||
19949 | ||||
19950 | QM_TRY(MOZ_TO_RESULT({auto tryResult3776 = (ToResult(populateResponseHelper.MaybeGetCloneInfo (aStmt, GetCursor()))); static_assert(std::is_empty_v<typename decltype(tryResult3776)::ok_type>); if ((__builtin_expect (!!(tryResult3776.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))" , tryResult3776.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19951, mozilla::dom::quota::Severity::Error); return tryResult3776 .propagateErr(); }} | |||
19951 | populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))){auto tryResult3776 = (ToResult(populateResponseHelper.MaybeGetCloneInfo (aStmt, GetCursor()))); static_assert(std::is_empty_v<typename decltype(tryResult3776)::ok_type>); if ((__builtin_expect (!!(tryResult3776.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))" , tryResult3776.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19951, mozilla::dom::quota::Severity::Error); return tryResult3776 .propagateErr(); }}; | |||
19952 | ||||
19953 | // CAUTION: It is important that only the part of the function above this | |||
19954 | // comment may fail, and modifications to the data structure (in particular | |||
19955 | // mResponse and mFiles) may only be made below. This is necessary to allow to | |||
19956 | // discard entries that were attempted to be preloaded without causing an | |||
19957 | // inconsistent state. | |||
19958 | ||||
19959 | if (aInitializeResponse) { | |||
19960 | mOp.mResponse = std::remove_reference_t< | |||
19961 | decltype(populateResponseHelper.GetTypedResponse(&mOp.mResponse))>(); | |||
19962 | } | |||
19963 | ||||
19964 | auto& responses = populateResponseHelper.GetTypedResponse(&mOp.mResponse); | |||
19965 | auto& response = *responses.AppendElement(); | |||
19966 | ||||
19967 | populateResponseHelper.FillKeys(response); | |||
19968 | if constexpr (!CursorTypeTraits<CursorType>::IsKeyOnlyCursor) { | |||
19969 | populateResponseHelper.MaybeFillCloneInfo(response, &mOp.mFiles); | |||
19970 | } | |||
19971 | ||||
19972 | return populateResponseHelper.GetKeySize(response) + | |||
19973 | populateResponseHelper.MaybeGetCloneInfoSize(response); | |||
19974 | } | |||
19975 | ||||
19976 | template <IDBCursorType CursorType> | |||
19977 | void CursorOpBaseHelperBase<CursorType>::PopulateExtraResponses( | |||
19978 | mozIStorageStatement* const aStmt, const uint32_t aMaxExtraCount, | |||
19979 | const size_t aInitialResponseSize, const nsACString& aOperation, | |||
19980 | Key* const aOptPreviousSortKey) { | |||
19981 | mOp.AssertIsOnConnectionThread(); | |||
19982 | ||||
19983 | const auto extraCount = [&]() -> uint32_t { | |||
19984 | auto accumulatedResponseSize = aInitialResponseSize; | |||
19985 | uint32_t extraCount = 0; | |||
19986 | ||||
19987 | do { | |||
19988 | bool hasResult; | |||
19989 | nsresult rv = aStmt->ExecuteStep(&hasResult); | |||
19990 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 19990)) { | |||
19991 | // In case of a failure on one step, do not attempt to execute further | |||
19992 | // steps, but use the results already populated. | |||
19993 | ||||
19994 | break; | |||
19995 | } | |||
19996 | ||||
19997 | if (!hasResult) { | |||
19998 | break; | |||
19999 | } | |||
20000 | ||||
20001 | // PopulateResponseFromStatement does not modify the data in case of | |||
20002 | // failure, so we can just use the results already populated, and discard | |||
20003 | // any remaining entries, and signal overall success. Probably, future | |||
20004 | // attempts to access the same entry will fail as well, but it might never | |||
20005 | // be accessed by the application. | |||
20006 | QM_TRY_INSPECT(auto tryResult3777 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult3777 .isErr()), 0))) { auto tryTempError = tryResult3777.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20017, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult3777.inspect(); | |||
20007 | const auto& responseSize,auto tryResult3777 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult3777 .isErr()), 0))) { auto tryTempError = tryResult3777.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20017, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult3777.inspect(); | |||
20008 | PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey),auto tryResult3777 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult3777 .isErr()), 0))) { auto tryTempError = tryResult3777.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20017, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult3777.inspect(); | |||
20009 | extraCount, [](const auto&) {auto tryResult3777 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult3777 .isErr()), 0))) { auto tryTempError = tryResult3777.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20017, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult3777.inspect(); | |||
20010 | // TODO: Maybe disable preloading for this cursor? The problem willauto tryResult3777 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult3777 .isErr()), 0))) { auto tryTempError = tryResult3777.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20017, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult3777.inspect(); | |||
20011 | // probably reoccur on the next attempt, and disabling preloadingauto tryResult3777 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult3777 .isErr()), 0))) { auto tryTempError = tryResult3777.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20017, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult3777.inspect(); | |||
20012 | // will reduce latency. However, if some problematic entry will beauto tryResult3777 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult3777 .isErr()), 0))) { auto tryTempError = tryResult3777.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20017, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult3777.inspect(); | |||
20013 | // skipped over, after that it might be fine again. To judge this,auto tryResult3777 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult3777 .isErr()), 0))) { auto tryTempError = tryResult3777.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20017, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult3777.inspect(); | |||
20014 | // the causes for such failures would need to be analyzed moreauto tryResult3777 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult3777 .isErr()), 0))) { auto tryTempError = tryResult3777.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20017, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult3777.inspect(); | |||
20015 | // thoroughly. Since this seems to be rare, maybe no further actionauto tryResult3777 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult3777 .isErr()), 0))) { auto tryTempError = tryResult3777.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20017, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult3777.inspect(); | |||
20016 | // is necessary at all.auto tryResult3777 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult3777 .isErr()), 0))) { auto tryTempError = tryResult3777.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20017, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult3777.inspect(); | |||
20017 | })auto tryResult3777 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult3777 .isErr()), 0))) { auto tryTempError = tryResult3777.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20017, mozilla::dom::quota::Severity::Error); [](const auto &) { }(tryTempError); constexpr const auto& func __attribute__ ((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, extraCount); } const auto& responseSize = tryResult3777.inspect();; | |||
20018 | ||||
20019 | // Check accumulated size of individual responses and maybe break early. | |||
20020 | accumulatedResponseSize += responseSize; | |||
20021 | if (accumulatedResponseSize > IPC::Channel::kMaximumMessageSize / 2) { | |||
20022 | IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: %s: Dropping entries because maximum message size is " "exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%" "u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true >(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber , mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation ).get(), extraCount, accumulatedResponseSize) | |||
20023 | "PRELOAD: %s: Dropping entries because maximum message size is "mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: %s: Dropping entries because maximum message size is " "exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%" "u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true >(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber , mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation ).get(), extraCount, accumulatedResponseSize) | |||
20024 | "exceeded: %" PRIu32 "/%zu bytes",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: %s: Dropping entries because maximum message size is " "exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%" "u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true >(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber , mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation ).get(), extraCount, accumulatedResponseSize) | |||
20025 | "%.0s Dropping too large (%" PRIu32 "/%zu)",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: %s: Dropping entries because maximum message size is " "exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%" "u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true >(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber , mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation ).get(), extraCount, accumulatedResponseSize) | |||
20026 | IDB_LOG_ID_STRING(mOp.mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: %s: Dropping entries because maximum message size is " "exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%" "u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true >(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber , mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation ).get(), extraCount, accumulatedResponseSize) | |||
20027 | mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber,mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: %s: Dropping entries because maximum message size is " "exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%" "u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true >(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber , mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation ).get(), extraCount, accumulatedResponseSize) | |||
20028 | PromiseFlatCString(aOperation).get(), extraCount,mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: %s: Dropping entries because maximum message size is " "exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%" "u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true >(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber , mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation ).get(), extraCount, accumulatedResponseSize) | |||
20029 | accumulatedResponseSize)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: %s: Dropping entries because maximum message size is " "exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%" "u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true >(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber , mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation ).get(), extraCount, accumulatedResponseSize); | |||
20030 | ||||
20031 | break; | |||
20032 | } | |||
20033 | ||||
20034 | // TODO: Do not count entries skipped for unique cursors. | |||
20035 | ++extraCount; | |||
20036 | } while (true); | |||
20037 | ||||
20038 | return extraCount; | |||
20039 | }(); | |||
20040 | ||||
20041 | IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: %s: Number of extra results populated: %" "u" "/%" "u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla:: dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId ).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber , TPromiseFlatString<char>(aOperation).get(), extraCount , aMaxExtraCount) | |||
20042 | "PRELOAD: %s: Number of extra results populated: %" PRIu32 "/%" PRIu32,mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: %s: Number of extra results populated: %" "u" "/%" "u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla:: dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId ).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber , TPromiseFlatString<char>(aOperation).get(), extraCount , aMaxExtraCount) | |||
20043 | "%.0s Populated (%" PRIu32 "/%" PRIu32 ")",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: %s: Number of extra results populated: %" "u" "/%" "u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla:: dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId ).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber , TPromiseFlatString<char>(aOperation).get(), extraCount , aMaxExtraCount) | |||
20044 | IDB_LOG_ID_STRING(mOp.mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: %s: Number of extra results populated: %" "u" "/%" "u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla:: dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId ).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber , TPromiseFlatString<char>(aOperation).get(), extraCount , aMaxExtraCount) | |||
20045 | mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber,mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: %s: Number of extra results populated: %" "u" "/%" "u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla:: dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId ).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber , TPromiseFlatString<char>(aOperation).get(), extraCount , aMaxExtraCount) | |||
20046 | PromiseFlatCString(aOperation).get(), extraCount, aMaxExtraCount)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent" " " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": " "PRELOAD: %s: Number of extra results populated: %" "u" "/%" "u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla:: dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId ).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber , TPromiseFlatString<char>(aOperation).get(), extraCount , aMaxExtraCount); | |||
20047 | } | |||
20048 | ||||
20049 | template <IDBCursorType CursorType> | |||
20050 | void Cursor<CursorType>::SetOptionalKeyRange( | |||
20051 | const Maybe<SerializedKeyRange>& aOptionalKeyRange, bool* const aOpen) { | |||
20052 | MOZ_ASSERT(aOpen)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aOpen)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(aOpen))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("aOpen", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20052); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpen" ")" ); do { *((volatile int*)__null) = 20052; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
20053 | ||||
20054 | Key localeAwareRangeBound; | |||
20055 | ||||
20056 | if (aOptionalKeyRange.isSome()) { | |||
20057 | const SerializedKeyRange& range = aOptionalKeyRange.ref(); | |||
20058 | ||||
20059 | const bool lowerBound = !IsIncreasingOrder(mDirection); | |||
20060 | *aOpen = | |||
20061 | !range.isOnly() && (lowerBound ? range.lowerOpen() : range.upperOpen()); | |||
20062 | ||||
20063 | const auto& bound = | |||
20064 | (range.isOnly() || lowerBound) ? range.lower() : range.upper(); | |||
20065 | if constexpr (IsIndexCursor) { | |||
20066 | if (this->IsLocaleAware()) { | |||
20067 | // XXX Don't we need to propagate the error? | |||
20068 | QM_TRY_UNWRAP(localeAwareRangeBound,auto tryResult3778 = (bound.ToLocaleAwareKey(this->mLocale )); if ((__builtin_expect(!!(tryResult3778.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3778.unwrapErr (); mozilla::dom::quota::HandleError("bound.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20069, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } localeAwareRangeBound = tryResult3778.unwrap(); | |||
20069 | bound.ToLocaleAwareKey(this->mLocale), QM_VOID)auto tryResult3778 = (bound.ToLocaleAwareKey(this->mLocale )); if ((__builtin_expect(!!(tryResult3778.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3778.unwrapErr (); mozilla::dom::quota::HandleError("bound.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20069, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return ; } localeAwareRangeBound = tryResult3778.unwrap();; | |||
20070 | } else { | |||
20071 | localeAwareRangeBound = bound; | |||
20072 | } | |||
20073 | } else { | |||
20074 | localeAwareRangeBound = bound; | |||
20075 | } | |||
20076 | } else { | |||
20077 | *aOpen = false; | |||
20078 | } | |||
20079 | ||||
20080 | this->mLocaleAwareRangeBound.init(std::move(localeAwareRangeBound)); | |||
20081 | } | |||
20082 | ||||
20083 | template <IDBCursorType CursorType> | |||
20084 | void ObjectStoreOpenOpHelper<CursorType>::PrepareKeyConditionClauses( | |||
20085 | const nsACString& aDirectionClause, const nsACString& aQueryStart) { | |||
20086 | const bool isIncreasingOrder = IsIncreasingOrder(GetCursor().mDirection); | |||
20087 | ||||
20088 | nsAutoCString keyRangeClause; | |||
20089 | nsAutoCString continueToKeyRangeClause; | |||
20090 | AppendConditionClause(kStmtParamNameKey, kStmtParamNameCurrentKey, | |||
20091 | !isIncreasingOrder, false, keyRangeClause); | |||
20092 | AppendConditionClause(kStmtParamNameKey, kStmtParamNameCurrentKey, | |||
20093 | !isIncreasingOrder, true, continueToKeyRangeClause); | |||
20094 | ||||
20095 | { | |||
20096 | bool open; | |||
20097 | GetCursor().SetOptionalKeyRange(GetOptionalKeyRange(), &open); | |||
20098 | ||||
20099 | if (GetOptionalKeyRange().isSome() && | |||
20100 | !GetCursor().mLocaleAwareRangeBound->IsUnset()) { | |||
20101 | AppendConditionClause(kStmtParamNameKey, kStmtParamNameRangeBound, | |||
20102 | isIncreasingOrder, !open, keyRangeClause); | |||
20103 | AppendConditionClause(kStmtParamNameKey, kStmtParamNameRangeBound, | |||
20104 | isIncreasingOrder, !open, continueToKeyRangeClause); | |||
20105 | } | |||
20106 | } | |||
20107 | ||||
20108 | const nsAutoCString suffix = | |||
20109 | aDirectionClause + kOpenLimit + ":"_ns + kStmtParamNameLimit; | |||
20110 | ||||
20111 | GetCursor().mContinueQueries.init( | |||
20112 | aQueryStart + keyRangeClause + suffix, | |||
20113 | aQueryStart + continueToKeyRangeClause + suffix); | |||
20114 | } | |||
20115 | ||||
20116 | template <IDBCursorType CursorType> | |||
20117 | void IndexOpenOpHelper<CursorType>::PrepareIndexKeyConditionClause( | |||
20118 | const nsACString& aDirectionClause, | |||
20119 | const nsLiteralCString& aObjectDataKeyPrefix, nsAutoCString aQueryStart) { | |||
20120 | const bool isIncreasingOrder = IsIncreasingOrder(GetCursor().mDirection); | |||
20121 | ||||
20122 | { | |||
20123 | bool open; | |||
20124 | GetCursor().SetOptionalKeyRange(GetOptionalKeyRange(), &open); | |||
20125 | if (GetOptionalKeyRange().isSome() && | |||
20126 | !GetCursor().mLocaleAwareRangeBound->IsUnset()) { | |||
20127 | AppendConditionClause(kColumnNameAliasSortKey, kStmtParamNameRangeBound, | |||
20128 | isIncreasingOrder, !open, aQueryStart); | |||
20129 | } | |||
20130 | } | |||
20131 | ||||
20132 | nsCString continueQuery, continueToQuery, continuePrimaryKeyQuery; | |||
20133 | ||||
20134 | continueToQuery = | |||
20135 | aQueryStart + " AND "_ns + | |||
20136 | GetSortKeyClause(isIncreasingOrder ? ComparisonOperator::GreaterOrEquals | |||
20137 | : ComparisonOperator::LessOrEquals, | |||
20138 | kStmtParamNameCurrentKey); | |||
20139 | ||||
20140 | switch (GetCursor().mDirection) { | |||
20141 | case IDBCursorDirection::Next: | |||
20142 | case IDBCursorDirection::Prev: | |||
20143 | continueQuery = | |||
20144 | aQueryStart + " AND "_ns + | |||
20145 | GetSortKeyClause(isIncreasingOrder | |||
20146 | ? ComparisonOperator::GreaterOrEquals | |||
20147 | : ComparisonOperator::LessOrEquals, | |||
20148 | kStmtParamNameCurrentKey) + | |||
20149 | " AND ( "_ns + | |||
20150 | GetSortKeyClause(isIncreasingOrder ? ComparisonOperator::GreaterThan | |||
20151 | : ComparisonOperator::LessThan, | |||
20152 | kStmtParamNameCurrentKey) + | |||
20153 | " OR "_ns + | |||
20154 | GetKeyClause(aObjectDataKeyPrefix + "object_data_key"_ns, | |||
20155 | isIncreasingOrder ? ComparisonOperator::GreaterThan | |||
20156 | : ComparisonOperator::LessThan, | |||
20157 | kStmtParamNameObjectStorePosition) + | |||
20158 | " ) "_ns; | |||
20159 | ||||
20160 | continuePrimaryKeyQuery = | |||
20161 | aQueryStart + | |||
20162 | " AND (" | |||
20163 | "("_ns + | |||
20164 | GetSortKeyClause(ComparisonOperator::Equals, | |||
20165 | kStmtParamNameCurrentKey) + | |||
20166 | " AND "_ns + | |||
20167 | GetKeyClause(aObjectDataKeyPrefix + "object_data_key"_ns, | |||
20168 | isIncreasingOrder ? ComparisonOperator::GreaterOrEquals | |||
20169 | : ComparisonOperator::LessOrEquals, | |||
20170 | kStmtParamNameObjectStorePosition) + | |||
20171 | ") OR "_ns + | |||
20172 | GetSortKeyClause(isIncreasingOrder ? ComparisonOperator::GreaterThan | |||
20173 | : ComparisonOperator::LessThan, | |||
20174 | kStmtParamNameCurrentKey) + | |||
20175 | ")"_ns; | |||
20176 | break; | |||
20177 | ||||
20178 | case IDBCursorDirection::Nextunique: | |||
20179 | case IDBCursorDirection::Prevunique: | |||
20180 | continueQuery = | |||
20181 | aQueryStart + " AND "_ns + | |||
20182 | GetSortKeyClause(isIncreasingOrder ? ComparisonOperator::GreaterThan | |||
20183 | : ComparisonOperator::LessThan, | |||
20184 | kStmtParamNameCurrentKey); | |||
20185 | break; | |||
20186 | ||||
20187 | default: | |||
20188 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20188); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 20188; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
20189 | } | |||
20190 | ||||
20191 | const nsAutoCString suffix = | |||
20192 | aDirectionClause + kOpenLimit + ":"_ns + kStmtParamNameLimit; | |||
20193 | continueQuery += suffix; | |||
20194 | continueToQuery += suffix; | |||
20195 | if (!continuePrimaryKeyQuery.IsEmpty()) { | |||
20196 | continuePrimaryKeyQuery += suffix; | |||
20197 | } | |||
20198 | ||||
20199 | GetCursor().mContinueQueries.init(std::move(continueQuery), | |||
20200 | std::move(continueToQuery), | |||
20201 | std::move(continuePrimaryKeyQuery)); | |||
20202 | } | |||
20203 | ||||
20204 | template <IDBCursorType CursorType> | |||
20205 | nsresult CommonOpenOpHelper<CursorType>::ProcessStatementSteps( | |||
20206 | mozIStorageStatement* const aStmt) { | |||
20207 | QM_TRY_INSPECT(const bool& hasResult,auto tryResult3779 = (::mozilla::ToResultInvokeMember( (aStmt ), &::mozilla::detail::DerefedType<decltype(aStmt)> ::ExecuteStep)); if ((__builtin_expect(!!(tryResult3779.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aStmt), &::mozilla::detail::DerefedType<decltype(aStmt)>::ExecuteStep)" , tryResult3779.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20208, mozilla::dom::quota::Severity::Error); return tryResult3779 .propagateErr(); } const bool& hasResult = tryResult3779. inspect(); | |||
20208 | MOZ_TO_RESULT_INVOKE_MEMBER(aStmt, ExecuteStep))auto tryResult3779 = (::mozilla::ToResultInvokeMember( (aStmt ), &::mozilla::detail::DerefedType<decltype(aStmt)> ::ExecuteStep)); if ((__builtin_expect(!!(tryResult3779.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aStmt), &::mozilla::detail::DerefedType<decltype(aStmt)>::ExecuteStep)" , tryResult3779.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20208, mozilla::dom::quota::Severity::Error); return tryResult3779 .propagateErr(); } const bool& hasResult = tryResult3779. inspect();; | |||
20209 | ||||
20210 | if (!hasResult) { | |||
20211 | SetResponse(void_t{}); | |||
20212 | return NS_OK; | |||
20213 | } | |||
20214 | ||||
20215 | Key previousKey; | |||
20216 | auto* optPreviousKey = | |||
20217 | IsUnique(GetCursor().mDirection) ? &previousKey : nullptr; | |||
20218 | ||||
20219 | QM_TRY_INSPECT(const auto& responseSize,auto tryResult3780 = (PopulateResponseFromStatement(aStmt, true , optPreviousKey)); if ((__builtin_expect(!!(tryResult3780.isErr ()), 0))) { mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, true, optPreviousKey)" , tryResult3780.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20220, mozilla::dom::quota::Severity::Error); return tryResult3780 .propagateErr(); } const auto& responseSize = tryResult3780 .inspect(); | |||
20220 | PopulateResponseFromStatement(aStmt, true, optPreviousKey))auto tryResult3780 = (PopulateResponseFromStatement(aStmt, true , optPreviousKey)); if ((__builtin_expect(!!(tryResult3780.isErr ()), 0))) { mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, true, optPreviousKey)" , tryResult3780.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20220, mozilla::dom::quota::Severity::Error); return tryResult3780 .propagateErr(); } const auto& responseSize = tryResult3780 .inspect();; | |||
20221 | ||||
20222 | // The degree to which extra responses on OpenOp can actually be used depends | |||
20223 | // on the parameters of subsequent ContinueOp operations, see also comment in | |||
20224 | // ContinueOp::DoDatabaseWork. | |||
20225 | // | |||
20226 | // TODO: We should somehow evaluate the effects of this. Maybe use a smaller | |||
20227 | // extra count than for ContinueOp? | |||
20228 | PopulateExtraResponses(aStmt, GetCursor().mMaxExtraCount, responseSize, | |||
20229 | "OpenOp"_ns, optPreviousKey); | |||
20230 | ||||
20231 | return NS_OK; | |||
20232 | } | |||
20233 | ||||
20234 | nsresult OpenOpHelper<IDBCursorType::ObjectStore>::DoDatabaseWork( | |||
20235 | DatabaseConnection* aConnection) { | |||
20236 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20236); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 20236; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20237 | aConnection->AssertIsOnConnectionThread(); | |||
20238 | MOZ_ASSERT(GetCursor().mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(GetCursor().mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(GetCursor().mObjectStoreId)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mObjectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20238); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId" ")"); do { *((volatile int*)__null) = 20238; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20239 | ||||
20240 | AUTO_PROFILER_LABEL("Cursor::OpenOp::DoObjectStoreDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20240( "Cursor::OpenOp::DoObjectStoreDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
20241 | ||||
20242 | const bool usingKeyRange = GetOptionalKeyRange().isSome(); | |||
20243 | ||||
20244 | const nsCString queryStart = "SELECT "_ns + kColumnNameKey + | |||
20245 | ", file_ids, data " | |||
20246 | "FROM object_data " | |||
20247 | "WHERE object_store_id = :"_ns + | |||
20248 | kStmtParamNameId; | |||
20249 | ||||
20250 | const auto keyRangeClause = | |||
20251 | DatabaseOperationBase::MaybeGetBindingClauseForKeyRange( | |||
20252 | GetOptionalKeyRange(), kColumnNameKey); | |||
20253 | ||||
20254 | const auto& directionClause = MakeDirectionClause(GetCursor().mDirection); | |||
20255 | ||||
20256 | // Note: Changing the number or order of SELECT columns in the query will | |||
20257 | // require changes to CursorOpBase::PopulateResponseFromStatement. | |||
20258 | const nsCString firstQuery = queryStart + keyRangeClause + directionClause + | |||
20259 | kOpenLimit + | |||
20260 | IntToCString(1 + GetCursor().mMaxExtraCount); | |||
20261 | ||||
20262 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3781 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult3781.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult3781.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20263, mozilla::dom::quota::Severity::Error); return tryResult3781 .propagateErr(); } const auto& stmt = tryResult3781.inspect (); | |||
20263 | aConnection->BorrowCachedStatement(firstQuery))auto tryResult3781 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult3781.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult3781.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20263, mozilla::dom::quota::Severity::Error); return tryResult3781 .propagateErr(); } const auto& stmt = tryResult3781.inspect ();; | |||
20264 | ||||
20265 | QM_TRY(MOZ_TO_RESULT({auto tryResult3782 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mObjectStoreId))); static_assert(std::is_empty_v <typename decltype(tryResult3782)::ok_type>); if ((__builtin_expect (!!(tryResult3782.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))" , tryResult3782.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20266, mozilla::dom::quota::Severity::Error); return tryResult3782 .propagateErr(); }} | |||
20266 | stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))){auto tryResult3782 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mObjectStoreId))); static_assert(std::is_empty_v <typename decltype(tryResult3782)::ok_type>); if ((__builtin_expect (!!(tryResult3782.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))" , tryResult3782.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20266, mozilla::dom::quota::Severity::Error); return tryResult3782 .propagateErr(); }}; | |||
20267 | ||||
20268 | if (usingKeyRange) { | |||
20269 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult3783 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult3783)::ok_type> ); if ((__builtin_expect(!!(tryResult3783.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult3783.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20270, mozilla::dom::quota::Severity::Error); return tryResult3783 .propagateErr(); }} | |||
20270 | GetOptionalKeyRange().ref(), &*stmt))){auto tryResult3783 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult3783)::ok_type> ); if ((__builtin_expect(!!(tryResult3783.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult3783.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20270, mozilla::dom::quota::Severity::Error); return tryResult3783 .propagateErr(); }}; | |||
20271 | } | |||
20272 | ||||
20273 | // Now we need to make the query for ContinueOp. | |||
20274 | PrepareKeyConditionClauses(directionClause, queryStart); | |||
20275 | ||||
20276 | return ProcessStatementSteps(&*stmt); | |||
20277 | } | |||
20278 | ||||
20279 | nsresult OpenOpHelper<IDBCursorType::ObjectStoreKey>::DoDatabaseWork( | |||
20280 | DatabaseConnection* aConnection) { | |||
20281 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20281); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 20281; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20282 | aConnection->AssertIsOnConnectionThread(); | |||
20283 | MOZ_ASSERT(GetCursor().mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(GetCursor().mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(GetCursor().mObjectStoreId)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mObjectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20283); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId" ")"); do { *((volatile int*)__null) = 20283; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20284 | ||||
20285 | AUTO_PROFILER_LABEL("Cursor::OpenOp::DoObjectStoreKeyDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20285( "Cursor::OpenOp::DoObjectStoreKeyDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
20286 | ||||
20287 | const bool usingKeyRange = GetOptionalKeyRange().isSome(); | |||
20288 | ||||
20289 | const nsCString queryStart = "SELECT "_ns + kColumnNameKey + | |||
20290 | " FROM object_data " | |||
20291 | "WHERE object_store_id = :"_ns + | |||
20292 | kStmtParamNameId; | |||
20293 | ||||
20294 | const auto keyRangeClause = | |||
20295 | DatabaseOperationBase::MaybeGetBindingClauseForKeyRange( | |||
20296 | GetOptionalKeyRange(), kColumnNameKey); | |||
20297 | ||||
20298 | const auto& directionClause = MakeDirectionClause(GetCursor().mDirection); | |||
20299 | ||||
20300 | // Note: Changing the number or order of SELECT columns in the query will | |||
20301 | // require changes to CursorOpBase::PopulateResponseFromStatement. | |||
20302 | const nsCString firstQuery = | |||
20303 | queryStart + keyRangeClause + directionClause + kOpenLimit + "1"_ns; | |||
20304 | ||||
20305 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3784 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult3784.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult3784.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20306, mozilla::dom::quota::Severity::Error); return tryResult3784 .propagateErr(); } const auto& stmt = tryResult3784.inspect (); | |||
20306 | aConnection->BorrowCachedStatement(firstQuery))auto tryResult3784 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult3784.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult3784.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20306, mozilla::dom::quota::Severity::Error); return tryResult3784 .propagateErr(); } const auto& stmt = tryResult3784.inspect ();; | |||
20307 | ||||
20308 | QM_TRY(MOZ_TO_RESULT({auto tryResult3785 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mObjectStoreId))); static_assert(std::is_empty_v <typename decltype(tryResult3785)::ok_type>); if ((__builtin_expect (!!(tryResult3785.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))" , tryResult3785.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20309, mozilla::dom::quota::Severity::Error); return tryResult3785 .propagateErr(); }} | |||
20309 | stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))){auto tryResult3785 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mObjectStoreId))); static_assert(std::is_empty_v <typename decltype(tryResult3785)::ok_type>); if ((__builtin_expect (!!(tryResult3785.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))" , tryResult3785.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20309, mozilla::dom::quota::Severity::Error); return tryResult3785 .propagateErr(); }}; | |||
20310 | ||||
20311 | if (usingKeyRange) { | |||
20312 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult3786 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult3786)::ok_type> ); if ((__builtin_expect(!!(tryResult3786.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult3786.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20313, mozilla::dom::quota::Severity::Error); return tryResult3786 .propagateErr(); }} | |||
20313 | GetOptionalKeyRange().ref(), &*stmt))){auto tryResult3786 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult3786)::ok_type> ); if ((__builtin_expect(!!(tryResult3786.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult3786.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20313, mozilla::dom::quota::Severity::Error); return tryResult3786 .propagateErr(); }}; | |||
20314 | } | |||
20315 | ||||
20316 | // Now we need to make the query to get the next match. | |||
20317 | PrepareKeyConditionClauses(directionClause, queryStart); | |||
20318 | ||||
20319 | return ProcessStatementSteps(&*stmt); | |||
20320 | } | |||
20321 | ||||
20322 | nsresult OpenOpHelper<IDBCursorType::Index>::DoDatabaseWork( | |||
20323 | DatabaseConnection* aConnection) { | |||
20324 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20324); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 20324; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20325 | aConnection->AssertIsOnConnectionThread(); | |||
20326 | MOZ_ASSERT(GetCursor().mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(GetCursor().mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(GetCursor().mObjectStoreId)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mObjectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20326); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId" ")"); do { *((volatile int*)__null) = 20326; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20327 | MOZ_ASSERT(GetCursor().mIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(GetCursor().mIndexId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(GetCursor().mIndexId))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mIndexId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20327); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mIndexId" ")"); do { *((volatile int*)__null) = 20327; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20328 | ||||
20329 | AUTO_PROFILER_LABEL("Cursor::OpenOp::DoIndexDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20329( "Cursor::OpenOp::DoIndexDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
20330 | ||||
20331 | const bool usingKeyRange = GetOptionalKeyRange().isSome(); | |||
20332 | ||||
20333 | const auto indexTable = | |||
20334 | GetCursor().mUniqueIndex ? "unique_index_data"_ns : "index_data"_ns; | |||
20335 | ||||
20336 | // The result of MakeColumnPairSelectionList is stored in a local variable, | |||
20337 | // since inlining it into the next statement causes a crash on some Mac OS X | |||
20338 | // builds (see https://bugzilla.mozilla.org/show_bug.cgi?id=1168606#c110). | |||
20339 | const auto columnPairSelectionList = MakeColumnPairSelectionList( | |||
20340 | "index_table.value"_ns, "index_table.value_locale"_ns, | |||
20341 | kColumnNameAliasSortKey, GetCursor().IsLocaleAware()); | |||
20342 | const nsCString sortColumnAlias = | |||
20343 | "SELECT "_ns + columnPairSelectionList + ", "_ns; | |||
20344 | ||||
20345 | const nsAutoCString queryStart = sortColumnAlias + | |||
20346 | "index_table.object_data_key, " | |||
20347 | "object_data.file_ids, " | |||
20348 | "object_data.data " | |||
20349 | "FROM "_ns + | |||
20350 | indexTable + | |||
20351 | " AS index_table " | |||
20352 | "JOIN object_data " | |||
20353 | "ON index_table.object_store_id = " | |||
20354 | "object_data.object_store_id " | |||
20355 | "AND index_table.object_data_key = " | |||
20356 | "object_data.key " | |||
20357 | "WHERE index_table.index_id = :"_ns + | |||
20358 | kStmtParamNameId; | |||
20359 | ||||
20360 | const auto keyRangeClause = | |||
20361 | DatabaseOperationBase::MaybeGetBindingClauseForKeyRange( | |||
20362 | GetOptionalKeyRange(), kColumnNameAliasSortKey); | |||
20363 | ||||
20364 | nsAutoCString directionClause = " ORDER BY "_ns + kColumnNameAliasSortKey; | |||
20365 | ||||
20366 | switch (GetCursor().mDirection) { | |||
20367 | case IDBCursorDirection::Next: | |||
20368 | case IDBCursorDirection::Nextunique: | |||
20369 | directionClause.AppendLiteral(" ASC, index_table.object_data_key ASC"); | |||
20370 | break; | |||
20371 | ||||
20372 | case IDBCursorDirection::Prev: | |||
20373 | directionClause.AppendLiteral(" DESC, index_table.object_data_key DESC"); | |||
20374 | break; | |||
20375 | ||||
20376 | case IDBCursorDirection::Prevunique: | |||
20377 | directionClause.AppendLiteral(" DESC, index_table.object_data_key ASC"); | |||
20378 | break; | |||
20379 | ||||
20380 | default: | |||
20381 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20381); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 20381; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
20382 | } | |||
20383 | ||||
20384 | // Note: Changing the number or order of SELECT columns in the query will | |||
20385 | // require changes to CursorOpBase::PopulateResponseFromStatement. | |||
20386 | const nsCString firstQuery = queryStart + keyRangeClause + directionClause + | |||
20387 | kOpenLimit + | |||
20388 | IntToCString(1 + GetCursor().mMaxExtraCount); | |||
20389 | ||||
20390 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3787 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult3787.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult3787.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20391, mozilla::dom::quota::Severity::Error); return tryResult3787 .propagateErr(); } const auto& stmt = tryResult3787.inspect (); | |||
20391 | aConnection->BorrowCachedStatement(firstQuery))auto tryResult3787 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult3787.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult3787.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20391, mozilla::dom::quota::Severity::Error); return tryResult3787 .propagateErr(); } const auto& stmt = tryResult3787.inspect ();; | |||
20392 | ||||
20393 | QM_TRY(MOZ_TO_RESULT({auto tryResult3788 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3788)::ok_type>); if ((__builtin_expect (!!(tryResult3788.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))" , tryResult3788.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20394, mozilla::dom::quota::Severity::Error); return tryResult3788 .propagateErr(); }} | |||
20394 | stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))){auto tryResult3788 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3788)::ok_type>); if ((__builtin_expect (!!(tryResult3788.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))" , tryResult3788.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20394, mozilla::dom::quota::Severity::Error); return tryResult3788 .propagateErr(); }}; | |||
20395 | ||||
20396 | if (usingKeyRange) { | |||
20397 | if (GetCursor().IsLocaleAware()) { | |||
20398 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult3789 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3789 )::ok_type>); if ((__builtin_expect(!!(tryResult3789.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))" , tryResult3789.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20399, mozilla::dom::quota::Severity::Error); return tryResult3789 .propagateErr(); }} | |||
20399 | GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))){auto tryResult3789 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3789 )::ok_type>); if ((__builtin_expect(!!(tryResult3789.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))" , tryResult3789.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20399, mozilla::dom::quota::Severity::Error); return tryResult3789 .propagateErr(); }}; | |||
20400 | } else { | |||
20401 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult3790 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult3790)::ok_type> ); if ((__builtin_expect(!!(tryResult3790.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult3790.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20402, mozilla::dom::quota::Severity::Error); return tryResult3790 .propagateErr(); }} | |||
20402 | GetOptionalKeyRange().ref(), &*stmt))){auto tryResult3790 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult3790)::ok_type> ); if ((__builtin_expect(!!(tryResult3790.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult3790.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20402, mozilla::dom::quota::Severity::Error); return tryResult3790 .propagateErr(); }}; | |||
20403 | } | |||
20404 | } | |||
20405 | ||||
20406 | // TODO: At least the last two statements are almost the same in all | |||
20407 | // DoDatabaseWork variants, consider removing this duplication. | |||
20408 | ||||
20409 | // Now we need to make the query to get the next match. | |||
20410 | PrepareKeyConditionClauses(directionClause, std::move(queryStart)); | |||
20411 | ||||
20412 | return ProcessStatementSteps(&*stmt); | |||
20413 | } | |||
20414 | ||||
20415 | nsresult OpenOpHelper<IDBCursorType::IndexKey>::DoDatabaseWork( | |||
20416 | DatabaseConnection* aConnection) { | |||
20417 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20417); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 20417; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20418 | aConnection->AssertIsOnConnectionThread(); | |||
20419 | MOZ_ASSERT(GetCursor().mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(GetCursor().mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(GetCursor().mObjectStoreId)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mObjectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20419); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId" ")"); do { *((volatile int*)__null) = 20419; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20420 | MOZ_ASSERT(GetCursor().mIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(GetCursor().mIndexId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(GetCursor().mIndexId))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mIndexId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20420); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mIndexId" ")"); do { *((volatile int*)__null) = 20420; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20421 | ||||
20422 | AUTO_PROFILER_LABEL("Cursor::OpenOp::DoIndexKeyDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20422( "Cursor::OpenOp::DoIndexKeyDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
20423 | ||||
20424 | const bool usingKeyRange = GetOptionalKeyRange().isSome(); | |||
20425 | ||||
20426 | const auto table = | |||
20427 | GetCursor().mUniqueIndex ? "unique_index_data"_ns : "index_data"_ns; | |||
20428 | ||||
20429 | // The result of MakeColumnPairSelectionList is stored in a local variable, | |||
20430 | // since inlining it into the next statement causes a crash on some Mac OS X | |||
20431 | // builds (see https://bugzilla.mozilla.org/show_bug.cgi?id=1168606#c110). | |||
20432 | const auto columnPairSelectionList = MakeColumnPairSelectionList( | |||
20433 | "value"_ns, "value_locale"_ns, kColumnNameAliasSortKey, | |||
20434 | GetCursor().IsLocaleAware()); | |||
20435 | const nsCString sortColumnAlias = | |||
20436 | "SELECT "_ns + columnPairSelectionList + ", "_ns; | |||
20437 | ||||
20438 | const nsAutoCString queryStart = sortColumnAlias + | |||
20439 | "object_data_key " | |||
20440 | " FROM "_ns + | |||
20441 | table + " WHERE index_id = :"_ns + | |||
20442 | kStmtParamNameId; | |||
20443 | ||||
20444 | const auto keyRangeClause = | |||
20445 | DatabaseOperationBase::MaybeGetBindingClauseForKeyRange( | |||
20446 | GetOptionalKeyRange(), kColumnNameAliasSortKey); | |||
20447 | ||||
20448 | nsAutoCString directionClause = " ORDER BY "_ns + kColumnNameAliasSortKey; | |||
20449 | ||||
20450 | switch (GetCursor().mDirection) { | |||
20451 | case IDBCursorDirection::Next: | |||
20452 | case IDBCursorDirection::Nextunique: | |||
20453 | directionClause.AppendLiteral(" ASC, object_data_key ASC"); | |||
20454 | break; | |||
20455 | ||||
20456 | case IDBCursorDirection::Prev: | |||
20457 | directionClause.AppendLiteral(" DESC, object_data_key DESC"); | |||
20458 | break; | |||
20459 | ||||
20460 | case IDBCursorDirection::Prevunique: | |||
20461 | directionClause.AppendLiteral(" DESC, object_data_key ASC"); | |||
20462 | break; | |||
20463 | ||||
20464 | default: | |||
20465 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20465); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 20465; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
20466 | } | |||
20467 | ||||
20468 | // Note: Changing the number or order of SELECT columns in the query will | |||
20469 | // require changes to CursorOpBase::PopulateResponseFromStatement. | |||
20470 | const nsCString firstQuery = | |||
20471 | queryStart + keyRangeClause + directionClause + kOpenLimit + "1"_ns; | |||
20472 | ||||
20473 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3791 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult3791.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult3791.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20474, mozilla::dom::quota::Severity::Error); return tryResult3791 .propagateErr(); } const auto& stmt = tryResult3791.inspect (); | |||
20474 | aConnection->BorrowCachedStatement(firstQuery))auto tryResult3791 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult3791.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult3791.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20474, mozilla::dom::quota::Severity::Error); return tryResult3791 .propagateErr(); } const auto& stmt = tryResult3791.inspect ();; | |||
20475 | ||||
20476 | QM_TRY(MOZ_TO_RESULT({auto tryResult3792 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3792)::ok_type>); if ((__builtin_expect (!!(tryResult3792.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))" , tryResult3792.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20477, mozilla::dom::quota::Severity::Error); return tryResult3792 .propagateErr(); }} | |||
20477 | stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))){auto tryResult3792 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult3792)::ok_type>); if ((__builtin_expect (!!(tryResult3792.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))" , tryResult3792.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20477, mozilla::dom::quota::Severity::Error); return tryResult3792 .propagateErr(); }}; | |||
20478 | ||||
20479 | if (usingKeyRange) { | |||
20480 | if (GetCursor().IsLocaleAware()) { | |||
20481 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult3793 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3793 )::ok_type>); if ((__builtin_expect(!!(tryResult3793.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))" , tryResult3793.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20482, mozilla::dom::quota::Severity::Error); return tryResult3793 .propagateErr(); }} | |||
20482 | GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))){auto tryResult3793 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult3793 )::ok_type>); if ((__builtin_expect(!!(tryResult3793.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))" , tryResult3793.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20482, mozilla::dom::quota::Severity::Error); return tryResult3793 .propagateErr(); }}; | |||
20483 | } else { | |||
20484 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult3794 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult3794)::ok_type> ); if ((__builtin_expect(!!(tryResult3794.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult3794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20485, mozilla::dom::quota::Severity::Error); return tryResult3794 .propagateErr(); }} | |||
20485 | GetOptionalKeyRange().ref(), &*stmt))){auto tryResult3794 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult3794)::ok_type> ); if ((__builtin_expect(!!(tryResult3794.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult3794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20485, mozilla::dom::quota::Severity::Error); return tryResult3794 .propagateErr(); }}; | |||
20486 | } | |||
20487 | } | |||
20488 | ||||
20489 | // Now we need to make the query to get the next match. | |||
20490 | PrepareKeyConditionClauses(directionClause, std::move(queryStart)); | |||
20491 | ||||
20492 | return ProcessStatementSteps(&*stmt); | |||
20493 | } | |||
20494 | ||||
20495 | template <IDBCursorType CursorType> | |||
20496 | nsresult Cursor<CursorType>::OpenOp::DoDatabaseWork( | |||
20497 | DatabaseConnection* aConnection) { | |||
20498 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20498); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 20498; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20499 | aConnection->AssertIsOnConnectionThread(); | |||
20500 | MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20500); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")" ); do { *((volatile int*)__null) = 20500; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
20501 | MOZ_ASSERT(!mCursor->mContinueQueries)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCursor->mContinueQueries)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mCursor->mContinueQueries ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!mCursor->mContinueQueries", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20501); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries" ")"); do { *((volatile int*)__null) = 20501; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20502 | ||||
20503 | AUTO_PROFILER_LABEL("Cursor::OpenOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20503( "Cursor::OpenOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
20504 | ||||
20505 | auto helper = OpenOpHelper<CursorType>{*this}; | |||
20506 | const auto rv = helper.DoDatabaseWork(aConnection); | |||
20507 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20507)) { | |||
20508 | return rv; | |||
20509 | } | |||
20510 | ||||
20511 | return NS_OK; | |||
20512 | } | |||
20513 | ||||
20514 | template <IDBCursorType CursorType> | |||
20515 | nsresult Cursor<CursorType>::CursorOpBase::SendSuccessResult() { | |||
20516 | AssertIsOnOwningThread(); | |||
20517 | MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20517); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")" ); do { *((volatile int*)__null) = 20517; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
20518 | MOZ_ASSERT(mCursor->mCurrentlyRunningOp == this)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor->mCurrentlyRunningOp == this)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mCursor->mCurrentlyRunningOp == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor->mCurrentlyRunningOp == this" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20518); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mCurrentlyRunningOp == this" ")"); do { *((volatile int*)__null) = 20518; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20519 | MOZ_ASSERT(mResponse.type() != CursorResponse::T__None)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mResponse.type() != CursorResponse::T__None)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mResponse.type() != CursorResponse::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.type() != CursorResponse::T__None" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20519); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.type() != CursorResponse::T__None" ")"); do { *((volatile int*)__null) = 20519; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20520 | ||||
20521 | if (IsActorDestroyed()) { | |||
20522 | return NS_ERROR_DOM_INDEXEDDB_ABORT_ERR; | |||
20523 | } | |||
20524 | ||||
20525 | mCursor->SendResponseInternal(mResponse, mFiles); | |||
20526 | ||||
20527 | #ifdef DEBUG1 | |||
20528 | mResponseSent = true; | |||
20529 | #endif | |||
20530 | return NS_OK; | |||
20531 | } | |||
20532 | ||||
20533 | template <IDBCursorType CursorType> | |||
20534 | nsresult Cursor<CursorType>::ContinueOp::DoDatabaseWork( | |||
20535 | DatabaseConnection* aConnection) { | |||
20536 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20536); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { *((volatile int*)__null) = 20536; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20537 | aConnection->AssertIsOnConnectionThread(); | |||
20538 | MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20538); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")" ); do { *((volatile int*)__null) = 20538; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
20539 | MOZ_ASSERT(mCursor->mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor->mObjectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCursor->mObjectStoreId)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor->mObjectStoreId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20539); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mObjectStoreId" ")"); do { *((volatile int*)__null) = 20539; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20540 | MOZ_ASSERT(!mCursor->mContinueQueries->mContinueQuery.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCursor->mContinueQueries->mContinueQuery.IsEmpty ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mCursor->mContinueQueries->mContinueQuery.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mCursor->mContinueQueries->mContinueQuery.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20540); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinueQuery.IsEmpty()" ")"); do { *((volatile int*)__null) = 20540; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20541 | MOZ_ASSERT(!mCursor->mContinueQueries->mContinueToQuery.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCursor->mContinueQueries->mContinueToQuery.IsEmpty ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mCursor->mContinueQueries->mContinueToQuery.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mCursor->mContinueQueries->mContinueToQuery.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinueToQuery.IsEmpty()" ")"); do { *((volatile int*)__null) = 20541; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20542 | MOZ_ASSERT(!mCurrentPosition.mKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCurrentPosition.mKey.IsUnset())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mCurrentPosition.mKey.IsUnset ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mCurrentPosition.mKey.IsUnset()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20542); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCurrentPosition.mKey.IsUnset()" ")"); do { *((volatile int*)__null) = 20542; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20543 | ||||
20544 | if constexpr (IsIndexCursor) { | |||
20545 | MOZ_ASSERT_IF(do { if (mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(!mCursor ->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mCursor->mContinueQueries->mContinuePrimaryKeyQuery .IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20548); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" ")"); do { *((volatile int*)__null) = 20548; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
20546 | mCursor->mDirection == IDBCursorDirection::Next ||do { if (mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(!mCursor ->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mCursor->mContinueQueries->mContinuePrimaryKeyQuery .IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20548); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" ")"); do { *((volatile int*)__null) = 20548; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
20547 | mCursor->mDirection == IDBCursorDirection::Prev,do { if (mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(!mCursor ->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mCursor->mContinueQueries->mContinuePrimaryKeyQuery .IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20548); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" ")"); do { *((volatile int*)__null) = 20548; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
20548 | !mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty())do { if (mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev) { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(!mCursor ->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()) >::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mCursor->mContinueQueries->mContinuePrimaryKeyQuery .IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20548); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" ")"); do { *((volatile int*)__null) = 20548; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
20549 | MOZ_ASSERT(mCursor->mIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor->mIndexId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mCursor->mIndexId))), 0)) ) { do { } while (false); MOZ_ReportAssertionFailure("mCursor->mIndexId" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20549); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mIndexId" ")"); do { *((volatile int*)__null) = 20549; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20550 | MOZ_ASSERT(!mCurrentPosition.mObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCurrentPosition.mObjectStoreKey.IsUnset())>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(!mCurrentPosition.mObjectStoreKey.IsUnset()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mCurrentPosition.mObjectStoreKey.IsUnset()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20550); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCurrentPosition.mObjectStoreKey.IsUnset()" ")"); do { *((volatile int*)__null) = 20550; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20551 | } | |||
20552 | ||||
20553 | AUTO_PROFILER_LABEL("Cursor::ContinueOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20553( "Cursor::ContinueOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
20554 | ||||
20555 | // We need to pick a query based on whether or not a key was passed to the | |||
20556 | // continue function. If not we'll grab the next item in the database that | |||
20557 | // is greater than (or less than, if we're running a PREV cursor) the current | |||
20558 | // key. If a key was passed we'll grab the next item in the database that is | |||
20559 | // greater than (or less than, if we're running a PREV cursor) or equal to the | |||
20560 | // key that was specified. | |||
20561 | // | |||
20562 | // TODO: The description above is not complete, it does not take account of | |||
20563 | // ContinuePrimaryKey nor Advance. | |||
20564 | // | |||
20565 | // Note: Changing the number or order of SELECT columns in the query will | |||
20566 | // require changes to CursorOpBase::PopulateResponseFromStatement. | |||
20567 | ||||
20568 | const uint32_t advanceCount = | |||
20569 | mParams.type() == CursorRequestParams::TAdvanceParams | |||
20570 | ? mParams.get_AdvanceParams().count() | |||
20571 | : 1; | |||
20572 | MOZ_ASSERT(advanceCount > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(advanceCount > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(advanceCount > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("advanceCount > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20572); AnnotateMozCrashReason("MOZ_ASSERT" "(" "advanceCount > 0" ")"); do { *((volatile int*)__null) = 20572; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20573 | ||||
20574 | bool hasContinueKey = false; | |||
20575 | bool hasContinuePrimaryKey = false; | |||
20576 | ||||
20577 | auto explicitContinueKey = Key{}; | |||
20578 | ||||
20579 | switch (mParams.type()) { | |||
20580 | case CursorRequestParams::TContinueParams: | |||
20581 | if (!mParams.get_ContinueParams().key().IsUnset()) { | |||
20582 | hasContinueKey = true; | |||
20583 | explicitContinueKey = mParams.get_ContinueParams().key(); | |||
20584 | } | |||
20585 | break; | |||
20586 | case CursorRequestParams::TContinuePrimaryKeyParams: | |||
20587 | MOZ_ASSERT(!mParams.get_ContinuePrimaryKeyParams().key().IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mParams.get_ContinuePrimaryKeyParams().key().IsUnset ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!mParams.get_ContinuePrimaryKeyParams().key().IsUnset ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mParams.get_ContinuePrimaryKeyParams().key().IsUnset()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20587); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().key().IsUnset()" ")"); do { *((volatile int*)__null) = 20587; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20588 | MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mParams.get_ContinuePrimaryKeyParams().primaryKey() .IsUnset())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!mParams.get_ContinuePrimaryKeyParams ().primaryKey().IsUnset()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20589); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()" ")"); do { *((volatile int*)__null) = 20589; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
20589 | !mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mParams.get_ContinuePrimaryKeyParams().primaryKey() .IsUnset())>::isValid, "invalid assertion condition"); if ( (__builtin_expect(!!(!(!!(!mParams.get_ContinuePrimaryKeyParams ().primaryKey().IsUnset()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20589); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()" ")"); do { *((volatile int*)__null) = 20589; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20590 | MOZ_ASSERT(mCursor->mDirection == IDBCursorDirection::Next ||do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mCursor->mDirection == IDBCursorDirection::Next || mCursor ->mDirection == IDBCursorDirection::Prev))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20591); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev" ")"); do { *((volatile int*)__null) = 20591; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | |||
20591 | mCursor->mDirection == IDBCursorDirection::Prev)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mCursor->mDirection == IDBCursorDirection::Next || mCursor ->mDirection == IDBCursorDirection::Prev))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20591); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev" ")"); do { *((volatile int*)__null) = 20591; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20592 | hasContinueKey = true; | |||
20593 | hasContinuePrimaryKey = true; | |||
20594 | explicitContinueKey = mParams.get_ContinuePrimaryKeyParams().key(); | |||
20595 | break; | |||
20596 | case CursorRequestParams::TAdvanceParams: | |||
20597 | break; | |||
20598 | default: | |||
20599 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20599); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { *((volatile int*)__null) = 20599; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | |||
20600 | } | |||
20601 | ||||
20602 | // TODO: Whether it makes sense to preload depends on the kind of the | |||
20603 | // subsequent operations, not of the current operation. We could assume that | |||
20604 | // the subsequent operations are: | |||
20605 | // - the same as the current operation (with the same parameter values) | |||
20606 | // - as above, except for Advance, where we assume the count will be 1 on the | |||
20607 | // next call | |||
20608 | // - basic operations (Advance with count 1 or Continue-without-key) | |||
20609 | // | |||
20610 | // For now, we implement the second option for now (which correspond to | |||
20611 | // !hasContinueKey). | |||
20612 | // | |||
20613 | // Based on that, we could in both cases either preload for any assumed | |||
20614 | // subsequent operations, or only for the basic operations. For now, we | |||
20615 | // preload only for an assumed basic operation. Other operations would require | |||
20616 | // more work on the client side for invalidation, and may not make any sense | |||
20617 | // at all. | |||
20618 | const uint32_t maxExtraCount = hasContinueKey ? 0 : mCursor->mMaxExtraCount; | |||
20619 | ||||
20620 | QM_TRY_INSPECT(const auto& stmt,auto tryResult3795 = (aConnection->BorrowCachedStatement( mCursor ->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey ))); if ((__builtin_expect(!!(tryResult3795.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))" , tryResult3795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult3795 .propagateErr(); } const auto& stmt = tryResult3795.inspect (); | |||
20621 | aConnection->BorrowCachedStatement(auto tryResult3795 = (aConnection->BorrowCachedStatement( mCursor ->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey ))); if ((__builtin_expect(!!(tryResult3795.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))" , tryResult3795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult3795 .propagateErr(); } const auto& stmt = tryResult3795.inspect (); | |||
20622 | mCursor->mContinueQueries->GetContinueQuery(auto tryResult3795 = (aConnection->BorrowCachedStatement( mCursor ->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey ))); if ((__builtin_expect(!!(tryResult3795.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))" , tryResult3795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult3795 .propagateErr(); } const auto& stmt = tryResult3795.inspect (); | |||
20623 | hasContinueKey, hasContinuePrimaryKey)))auto tryResult3795 = (aConnection->BorrowCachedStatement( mCursor ->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey ))); if ((__builtin_expect(!!(tryResult3795.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))" , tryResult3795.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult3795 .propagateErr(); } const auto& stmt = tryResult3795.inspect ();; | |||
20624 | ||||
20625 | QM_TRY(MOZ_TO_RESULT(stmt->BindUTF8StringByName({auto tryResult3796 = (ToResult(stmt->BindUTF8StringByName ( kStmtParamNameLimit, IntToCString(advanceCount + mCursor-> mMaxExtraCount)))); static_assert(std::is_empty_v<typename decltype(tryResult3796)::ok_type>); if ((__builtin_expect (!!(tryResult3796.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))" , tryResult3796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20627, mozilla::dom::quota::Severity::Error); return tryResult3796 .propagateErr(); }} | |||
20626 | kStmtParamNameLimit,{auto tryResult3796 = (ToResult(stmt->BindUTF8StringByName ( kStmtParamNameLimit, IntToCString(advanceCount + mCursor-> mMaxExtraCount)))); static_assert(std::is_empty_v<typename decltype(tryResult3796)::ok_type>); if ((__builtin_expect (!!(tryResult3796.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))" , tryResult3796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20627, mozilla::dom::quota::Severity::Error); return tryResult3796 .propagateErr(); }} | |||
20627 | IntToCString(advanceCount + mCursor->mMaxExtraCount)))){auto tryResult3796 = (ToResult(stmt->BindUTF8StringByName ( kStmtParamNameLimit, IntToCString(advanceCount + mCursor-> mMaxExtraCount)))); static_assert(std::is_empty_v<typename decltype(tryResult3796)::ok_type>); if ((__builtin_expect (!!(tryResult3796.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))" , tryResult3796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20627, mozilla::dom::quota::Severity::Error); return tryResult3796 .propagateErr(); }}; | |||
20628 | ||||
20629 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameId, mCursor->Id()))){auto tryResult3797 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , mCursor->Id()))); static_assert(std::is_empty_v<typename decltype(tryResult3797)::ok_type>); if ((__builtin_expect (!!(tryResult3797.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, mCursor->Id()))" , tryResult3797.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20629, mozilla::dom::quota::Severity::Error); return tryResult3797 .propagateErr(); }}; | |||
20630 | ||||
20631 | // Bind current key. | |||
20632 | const auto& continueKey = | |||
20633 | hasContinueKey ? explicitContinueKey | |||
20634 | : mCurrentPosition.GetSortKey(mCursor->IsLocaleAware()); | |||
20635 | QM_TRY(MOZ_TO_RESULT({auto tryResult3798 = (ToResult(continueKey.BindToStatement(& *stmt, kStmtParamNameCurrentKey))); static_assert(std::is_empty_v <typename decltype(tryResult3798)::ok_type>); if ((__builtin_expect (!!(tryResult3798.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))" , tryResult3798.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20636, mozilla::dom::quota::Severity::Error); return tryResult3798 .propagateErr(); }} | |||
20636 | continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))){auto tryResult3798 = (ToResult(continueKey.BindToStatement(& *stmt, kStmtParamNameCurrentKey))); static_assert(std::is_empty_v <typename decltype(tryResult3798)::ok_type>); if ((__builtin_expect (!!(tryResult3798.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))" , tryResult3798.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20636, mozilla::dom::quota::Severity::Error); return tryResult3798 .propagateErr(); }}; | |||
20637 | ||||
20638 | // Bind range bound if it is specified. | |||
20639 | if (!mCursor->mLocaleAwareRangeBound->IsUnset()) { | |||
20640 | QM_TRY(MOZ_TO_RESULT(mCursor->mLocaleAwareRangeBound->BindToStatement({auto tryResult3799 = (ToResult(mCursor->mLocaleAwareRangeBound ->BindToStatement( &*stmt, kStmtParamNameRangeBound))) ; static_assert(std::is_empty_v<typename decltype(tryResult3799 )::ok_type>); if ((__builtin_expect(!!(tryResult3799.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCursor->mLocaleAwareRangeBound->BindToStatement( &*stmt, kStmtParamNameRangeBound))" , tryResult3799.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20641, mozilla::dom::quota::Severity::Error); return tryResult3799 .propagateErr(); }} | |||
20641 | &*stmt, kStmtParamNameRangeBound))){auto tryResult3799 = (ToResult(mCursor->mLocaleAwareRangeBound ->BindToStatement( &*stmt, kStmtParamNameRangeBound))) ; static_assert(std::is_empty_v<typename decltype(tryResult3799 )::ok_type>); if ((__builtin_expect(!!(tryResult3799.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCursor->mLocaleAwareRangeBound->BindToStatement( &*stmt, kStmtParamNameRangeBound))" , tryResult3799.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20641, mozilla::dom::quota::Severity::Error); return tryResult3799 .propagateErr(); }}; | |||
20642 | } | |||
20643 | ||||
20644 | // Bind object store position if duplicates are allowed and we're not | |||
20645 | // continuing to a specific key. | |||
20646 | if constexpr (IsIndexCursor) { | |||
20647 | if (!hasContinueKey && (mCursor->mDirection == IDBCursorDirection::Next || | |||
20648 | mCursor->mDirection == IDBCursorDirection::Prev)) { | |||
20649 | QM_TRY(MOZ_TO_RESULT(mCurrentPosition.mObjectStoreKey.BindToStatement({auto tryResult3800 = (ToResult(mCurrentPosition.mObjectStoreKey .BindToStatement( &*stmt, kStmtParamNameObjectStorePosition ))); static_assert(std::is_empty_v<typename decltype(tryResult3800 )::ok_type>); if ((__builtin_expect(!!(tryResult3800.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCurrentPosition.mObjectStoreKey.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))" , tryResult3800.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20650, mozilla::dom::quota::Severity::Error); return tryResult3800 .propagateErr(); }} | |||
20650 | &*stmt, kStmtParamNameObjectStorePosition))){auto tryResult3800 = (ToResult(mCurrentPosition.mObjectStoreKey .BindToStatement( &*stmt, kStmtParamNameObjectStorePosition ))); static_assert(std::is_empty_v<typename decltype(tryResult3800 )::ok_type>); if ((__builtin_expect(!!(tryResult3800.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCurrentPosition.mObjectStoreKey.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))" , tryResult3800.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20650, mozilla::dom::quota::Severity::Error); return tryResult3800 .propagateErr(); }}; | |||
20651 | } else if (hasContinuePrimaryKey) { | |||
20652 | QM_TRY(MOZ_TO_RESULT({auto tryResult3801 = (ToResult(mParams.get_ContinuePrimaryKeyParams ().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition ))); static_assert(std::is_empty_v<typename decltype(tryResult3801 )::ok_type>); if ((__builtin_expect(!!(tryResult3801.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))" , tryResult3801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20654, mozilla::dom::quota::Severity::Error); return tryResult3801 .propagateErr(); }} | |||
20653 | mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement({auto tryResult3801 = (ToResult(mParams.get_ContinuePrimaryKeyParams ().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition ))); static_assert(std::is_empty_v<typename decltype(tryResult3801 )::ok_type>); if ((__builtin_expect(!!(tryResult3801.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))" , tryResult3801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20654, mozilla::dom::quota::Severity::Error); return tryResult3801 .propagateErr(); }} | |||
20654 | &*stmt, kStmtParamNameObjectStorePosition))){auto tryResult3801 = (ToResult(mParams.get_ContinuePrimaryKeyParams ().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition ))); static_assert(std::is_empty_v<typename decltype(tryResult3801 )::ok_type>); if ((__builtin_expect(!!(tryResult3801.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))" , tryResult3801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20654, mozilla::dom::quota::Severity::Error); return tryResult3801 .propagateErr(); }}; | |||
20655 | } | |||
20656 | } | |||
20657 | ||||
20658 | // TODO: Why do we query the records we don't need and skip them here, rather | |||
20659 | // than using a OFFSET clause in the query? | |||
20660 | for (uint32_t index = 0; index < advanceCount; index++) { | |||
20661 | QM_TRY_INSPECT(const bool& hasResult,auto tryResult3802 = (::mozilla::ToResultInvokeMember( (& *stmt), &::mozilla::detail::DerefedType<decltype(& *stmt)>::ExecuteStep)); if ((__builtin_expect(!!(tryResult3802 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (&*stmt), &::mozilla::detail::DerefedType<decltype(&*stmt)>::ExecuteStep)" , tryResult3802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20662, mozilla::dom::quota::Severity::Error); return tryResult3802 .propagateErr(); } const bool& hasResult = tryResult3802. inspect(); | |||
20662 | MOZ_TO_RESULT_INVOKE_MEMBER(&*stmt, ExecuteStep))auto tryResult3802 = (::mozilla::ToResultInvokeMember( (& *stmt), &::mozilla::detail::DerefedType<decltype(& *stmt)>::ExecuteStep)); if ((__builtin_expect(!!(tryResult3802 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (&*stmt), &::mozilla::detail::DerefedType<decltype(&*stmt)>::ExecuteStep)" , tryResult3802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20662, mozilla::dom::quota::Severity::Error); return tryResult3802 .propagateErr(); } const bool& hasResult = tryResult3802. inspect();; | |||
20663 | ||||
20664 | if (!hasResult) { | |||
20665 | mResponse = void_t(); | |||
20666 | return NS_OK; | |||
20667 | } | |||
20668 | } | |||
20669 | ||||
20670 | Key previousKey; | |||
20671 | auto* const optPreviousKey = | |||
20672 | IsUnique(mCursor->mDirection) ? &previousKey : nullptr; | |||
20673 | ||||
20674 | auto helper = CursorOpBaseHelperBase<CursorType>{*this}; | |||
20675 | QM_TRY_INSPECT(const auto& responseSize, helper.PopulateResponseFromStatement(auto tryResult3803 = (helper.PopulateResponseFromStatement( & *stmt, true, optPreviousKey)); if ((__builtin_expect(!!(tryResult3803 .isErr()), 0))) { mozilla::dom::quota::HandleError("helper.PopulateResponseFromStatement( &*stmt, true, optPreviousKey)" , tryResult3803.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20676, mozilla::dom::quota::Severity::Error); return tryResult3803 .propagateErr(); } const auto& responseSize = tryResult3803 .inspect(); | |||
20676 | &*stmt, true, optPreviousKey))auto tryResult3803 = (helper.PopulateResponseFromStatement( & *stmt, true, optPreviousKey)); if ((__builtin_expect(!!(tryResult3803 .isErr()), 0))) { mozilla::dom::quota::HandleError("helper.PopulateResponseFromStatement( &*stmt, true, optPreviousKey)" , tryResult3803.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20676, mozilla::dom::quota::Severity::Error); return tryResult3803 .propagateErr(); } const auto& responseSize = tryResult3803 .inspect();; | |||
20677 | ||||
20678 | helper.PopulateExtraResponses(&*stmt, maxExtraCount, responseSize, | |||
20679 | "ContinueOp"_ns, optPreviousKey); | |||
20680 | ||||
20681 | return NS_OK; | |||
20682 | } | |||
20683 | ||||
20684 | Utils::Utils() | |||
20685 | #ifdef DEBUG1 | |||
20686 | : mActorDestroyed(false) | |||
20687 | #endif | |||
20688 | { | |||
20689 | AssertIsOnBackgroundThread(); | |||
20690 | } | |||
20691 | ||||
20692 | Utils::~Utils() { MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mActorDestroyed" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20692); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")"); do { *((volatile int*)__null) = 20692; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } | |||
20693 | ||||
20694 | void Utils::ActorDestroy(ActorDestroyReason aWhy) { | |||
20695 | AssertIsOnBackgroundThread(); | |||
20696 | MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20696); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"); do { *((volatile int*)__null) = 20696; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20697 | ||||
20698 | #ifdef DEBUG1 | |||
20699 | mActorDestroyed = true; | |||
20700 | #endif | |||
20701 | } | |||
20702 | ||||
20703 | mozilla::ipc::IPCResult Utils::RecvDeleteMe() { | |||
20704 | AssertIsOnBackgroundThread(); | |||
20705 | MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"); do { *((volatile int*)__null) = 20705; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20706 | ||||
20707 | QM_WARNONLY_TRY(OkIf(PBackgroundIndexedDBUtilsParent::Send__delete__(this))){auto tryResult3804 = (OkIf(PBackgroundIndexedDBUtilsParent:: Send__delete__(this))); static_assert(std::is_empty_v<typename decltype(tryResult3804)::ok_type>); if ((__builtin_expect (!!(tryResult3804.isErr()), 0))) { mozilla::dom::quota::HandleError ("OkIf(PBackgroundIndexedDBUtilsParent::Send__delete__(this))" , tryResult3804.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20707, mozilla::dom::quota::Severity::Warning); }}; | |||
20708 | ||||
20709 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
20710 | } | |||
20711 | ||||
20712 | mozilla::ipc::IPCResult Utils::RecvGetFileReferences( | |||
20713 | const PersistenceType& aPersistenceType, const nsACString& aOrigin, | |||
20714 | const nsAString& aDatabaseName, const int64_t& aFileId, int32_t* aRefCnt, | |||
20715 | int32_t* aDBRefCnt, bool* aResult) { | |||
20716 | AssertIsOnBackgroundThread(); | |||
20717 | MOZ_ASSERT(aRefCnt)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aRefCnt)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aRefCnt))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aRefCnt", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20717); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRefCnt" ")" ); do { *((volatile int*)__null) = 20717; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
20718 | MOZ_ASSERT(aDBRefCnt)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDBRefCnt)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDBRefCnt))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDBRefCnt", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20718); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDBRefCnt" ")"); do { *((volatile int*)__null) = 20718; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20719 | MOZ_ASSERT(aResult)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aResult)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aResult))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aResult", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20719); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResult" ")" ); do { *((volatile int*)__null) = 20719; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
20720 | MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20720); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"); do { *((volatile int*)__null) = 20720; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20721 | ||||
20722 | if (NS_WARN_IF(!IndexedDatabaseManager::Get())NS_warn_if_impl(!IndexedDatabaseManager::Get(), "!IndexedDatabaseManager::Get()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20722)) { | |||
20723 | return IPC_FAIL(this, "No IndexedDatabaseManager active!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No IndexedDatabaseManager active!" )); | |||
20724 | } | |||
20725 | ||||
20726 | if (NS_WARN_IF(!QuotaManager::Get())NS_warn_if_impl(!QuotaManager::Get(), "!QuotaManager::Get()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20726)) { | |||
20727 | return IPC_FAIL(this, "No QuotaManager active!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No QuotaManager active!" )); | |||
20728 | } | |||
20729 | ||||
20730 | if (NS_WARN_IF(!StaticPrefs::dom_indexedDB_testing())NS_warn_if_impl(!StaticPrefs::dom_indexedDB_testing(), "!StaticPrefs::dom_indexedDB_testing()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20730)) { | |||
20731 | return IPC_FAIL(this, "IndexedDB is not in testing mode!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("IndexedDB is not in testing mode!" )); | |||
20732 | } | |||
20733 | ||||
20734 | if (NS_WARN_IF(!IsValidPersistenceType(aPersistenceType))NS_warn_if_impl(!IsValidPersistenceType(aPersistenceType), "!IsValidPersistenceType(aPersistenceType)" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20734)) { | |||
20735 | return IPC_FAIL(this, "PersistenceType is not valid!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("PersistenceType is not valid!" )); | |||
20736 | } | |||
20737 | ||||
20738 | if (NS_WARN_IF(aOrigin.IsEmpty())NS_warn_if_impl(aOrigin.IsEmpty(), "aOrigin.IsEmpty()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20738)) { | |||
20739 | return IPC_FAIL(this, "Origin is empty!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Origin is empty!" )); | |||
20740 | } | |||
20741 | ||||
20742 | if (NS_WARN_IF(aDatabaseName.IsEmpty())NS_warn_if_impl(aDatabaseName.IsEmpty(), "aDatabaseName.IsEmpty()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20742)) { | |||
20743 | return IPC_FAIL(this, "DatabaseName is empty!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("DatabaseName is empty!" )); | |||
20744 | } | |||
20745 | ||||
20746 | if (NS_WARN_IF(aFileId == 0)NS_warn_if_impl(aFileId == 0, "aFileId == 0", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20746)) { | |||
20747 | return IPC_FAIL(this, "No FileId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No FileId!" )); | |||
20748 | } | |||
20749 | ||||
20750 | nsresult rv = | |||
20751 | DispatchAndReturnFileReferences(aPersistenceType, aOrigin, aDatabaseName, | |||
20752 | aFileId, aRefCnt, aDBRefCnt, aResult); | |||
20753 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20753)) { | |||
20754 | return IPC_FAIL(this, "DispatchAndReturnFileReferences failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("DispatchAndReturnFileReferences failed!" )); | |||
20755 | } | |||
20756 | ||||
20757 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
20758 | } | |||
20759 | ||||
20760 | mozilla::ipc::IPCResult Utils::RecvDoMaintenance( | |||
20761 | DoMaintenanceResolver&& aResolver) { | |||
20762 | AssertIsOnBackgroundThread(); | |||
20763 | ||||
20764 | QM_TRY(MOZ_TO_RESULT(!QuotaManager::IsShuttingDown()),{auto tryResult3805 = (ToResult(!QuotaManager::IsShuttingDown ())); static_assert(std::is_empty_v<typename decltype(tryResult3805 )::ok_type>); if ((__builtin_expect(!!(tryResult3805.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3805 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaManager::IsShuttingDown())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20765, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaManager::IsShuttingDown())" , tryTempError, ResolveNSResultResponseAndReturn(aResolver)); }} | |||
20765 | ResolveNSResultResponseAndReturn(aResolver)){auto tryResult3805 = (ToResult(!QuotaManager::IsShuttingDown ())); static_assert(std::is_empty_v<typename decltype(tryResult3805 )::ok_type>); if ((__builtin_expect(!!(tryResult3805.isErr ()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3805 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaManager::IsShuttingDown())" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20765, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaManager::IsShuttingDown())" , tryTempError, ResolveNSResultResponseAndReturn(aResolver)); }}; | |||
20766 | ||||
20767 | QM_TRY(QuotaManager::EnsureCreated(),{auto tryResult3806 = (QuotaManager::EnsureCreated()); static_assert (std::is_empty_v<typename decltype(tryResult3806)::ok_type >); if ((__builtin_expect(!!(tryResult3806.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3806 .unwrapErr(); mozilla::dom::quota::HandleError("QuotaManager::EnsureCreated()" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20768, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "QuotaManager::EnsureCreated()" , tryTempError, ResolveNSResultResponseAndReturn(aResolver)); }} | |||
20768 | ResolveNSResultResponseAndReturn(aResolver)){auto tryResult3806 = (QuotaManager::EnsureCreated()); static_assert (std::is_empty_v<typename decltype(tryResult3806)::ok_type >); if ((__builtin_expect(!!(tryResult3806.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3806 .unwrapErr(); mozilla::dom::quota::HandleError("QuotaManager::EnsureCreated()" , tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20768, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "QuotaManager::EnsureCreated()" , tryTempError, ResolveNSResultResponseAndReturn(aResolver)); }}; | |||
20769 | ||||
20770 | QuotaClient* quotaClient = QuotaClient::GetInstance(); | |||
20771 | QM_TRY(MOZ_TO_RESULT(quotaClient), QM_IPC_FAIL(this)){auto tryResult3807 = (ToResult(quotaClient)); static_assert( std::is_empty_v<typename decltype(tryResult3807)::ok_type> ); if ((__builtin_expect(!!(tryResult3807.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3807.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(quotaClient)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20771, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaClient)" , tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal (mozilla::WrapNotNull(this))); }}; | |||
20772 | ||||
20773 | quotaClient->DoMaintenance()->Then( | |||
20774 | GetCurrentSerialEventTarget(), __func__, | |||
20775 | [self = RefPtr(this), resolver = std::move(aResolver)]( | |||
20776 | const BoolPromise::ResolveOrRejectValue& aValue) { | |||
20777 | if (!self->CanSend()) { | |||
20778 | return; | |||
20779 | } | |||
20780 | ||||
20781 | if (aValue.IsResolve()) { | |||
20782 | resolver(NS_OK); | |||
20783 | } else { | |||
20784 | resolver(aValue.RejectValue()); | |||
20785 | } | |||
20786 | }); | |||
20787 | ||||
20788 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | |||
20789 | } | |||
20790 | ||||
20791 | #ifdef DEBUG1 | |||
20792 | ||||
20793 | NS_IMPL_ISUPPORTS(DEBUGThreadSlower, nsIThreadObserver)MozExternalRefCountType DEBUGThreadSlower::AddRef(void) { static_assert (!std::is_destructible_v<DEBUGThreadSlower>, "Reference-counted class " "DEBUGThreadSlower" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20793); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 20793; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("DEBUGThreadSlower" != nullptr)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!("DEBUGThreadSlower" != nullptr ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "\"DEBUGThreadSlower\" != nullptr" " (" "Must specify a name" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20793); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DEBUGThreadSlower\" != nullptr" ") (" "Must specify a name" ")"); do { *((volatile int*)__null ) = 20793; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("DEBUGThreadSlower" " not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count), ("DEBUGThreadSlower" ), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType DEBUGThreadSlower::Release(void) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(int32_t(mRefCnt) > 0))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20793); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 20793 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("DEBUGThreadSlower" != nullptr)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!("DEBUGThreadSlower" != nullptr ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "\"DEBUGThreadSlower\" != nullptr" " (" "Must specify a name" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20793); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DEBUGThreadSlower\" != nullptr" ") (" "Must specify a name" ")"); do { *((volatile int*)__null ) = 20793; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("DEBUGThreadSlower" " not thread-safe"); const char* const nametmp = "DEBUGThreadSlower"; nsrefcnt count = -- mRefCnt; NS_LogRelease((this), (count), (nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return 0; } return count ; } nsresult DEBUGThreadSlower::QueryInterface(const nsIID& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak (NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!" , "aInstancePtr", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20793); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE" ); static const QITableEntry table[] = { {&mozilla::detail ::kImplementedIID<DEBUGThreadSlower, nsIThreadObserver> , int32_t( reinterpret_cast<char*>(static_cast<nsIThreadObserver *>((DEBUGThreadSlower*)0x1000)) - reinterpret_cast<char *>((DEBUGThreadSlower*)0x1000))}, {&mozilla::detail::kImplementedIID <DEBUGThreadSlower, nsISupports>, int32_t(reinterpret_cast <char*>(static_cast<nsISupports*>( static_cast< nsIThreadObserver*>((DEBUGThreadSlower*)0x1000))) - reinterpret_cast <char*>((DEBUGThreadSlower*)0x1000))}, { nullptr, 0 } } ; static_assert((sizeof(table) / sizeof(table[0])) > 1, "need at least 1 interface" ); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID , aInstancePtr, table); return rv; } | |||
20794 | ||||
20795 | NS_IMETHODIMPnsresult | |||
20796 | DEBUGThreadSlower::OnDispatchedEvent() { MOZ_CRASH("Should never be called!")do { do { } while (false); MOZ_ReportCrash("" "Should never be called!" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20796); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be called!" ")"); do { *((volatile int*)__null) = 20796; __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } | |||
20797 | ||||
20798 | NS_IMETHODIMPnsresult | |||
20799 | DEBUGThreadSlower::OnProcessNextEvent(nsIThreadInternal* /* aThread */, | |||
20800 | bool /* aMayWait */) { | |||
20801 | return NS_OK; | |||
20802 | } | |||
20803 | ||||
20804 | NS_IMETHODIMPnsresult | |||
20805 | DEBUGThreadSlower::AfterProcessNextEvent(nsIThreadInternal* /* aThread */, | |||
20806 | bool /* aEventWasProcessed */) { | |||
20807 | MOZ_ASSERT(kDEBUGThreadSleepMS)do { static_assert( mozilla::detail::AssertionConditionType< decltype(kDEBUGThreadSleepMS)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(kDEBUGThreadSleepMS))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("kDEBUGThreadSleepMS" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20807); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGThreadSleepMS" ")"); do { *((volatile int*)__null) = 20807; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20808 | ||||
20809 | MOZ_ALWAYS_TRUE(PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) ==do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval (kDEBUGThreadSleepMS)) == PR_SUCCESS), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20810); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS" ")"); do { *((volatile int*)__null) = 20810; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | |||
20810 | PR_SUCCESS)do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval (kDEBUGThreadSleepMS)) == PR_SUCCESS), 1))) { } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(false)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20810); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false" ") (" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS" ")"); do { *((volatile int*)__null) = 20810; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | |||
20811 | return NS_OK; | |||
20812 | } | |||
20813 | ||||
20814 | #endif // DEBUG | |||
20815 | ||||
20816 | nsresult FileHelper::Init() { | |||
20817 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20817); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 20817; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20818 | ||||
20819 | auto fileDirectory = mFileManager->GetCheckedDirectory(); | |||
20820 | if (NS_WARN_IF(!fileDirectory)NS_warn_if_impl(!fileDirectory, "!fileDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20820)) { | |||
20821 | return NS_ERROR_FAILURE; | |||
20822 | } | |||
20823 | ||||
20824 | auto journalDirectory = mFileManager->EnsureJournalDirectory(); | |||
20825 | if (NS_WARN_IF(!journalDirectory)NS_warn_if_impl(!journalDirectory, "!journalDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20825)) { | |||
20826 | return NS_ERROR_FAILURE; | |||
20827 | } | |||
20828 | ||||
20829 | DebugOnly<bool> exists; | |||
20830 | MOZ_ASSERT(NS_SUCCEEDED(journalDirectory->Exists(&exists)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory ->Exists(&exists))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(journalDirectory->Exists(&exists))), 1 )))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->Exists(&exists))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20830); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->Exists(&exists))), 1)))" ")"); do { *((volatile int*)__null) = 20830; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20831 | MOZ_ASSERT(exists)do { static_assert( mozilla::detail::AssertionConditionType< decltype(exists)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(exists))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("exists", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20831); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")" ); do { *((volatile int*)__null) = 20831; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
20832 | ||||
20833 | DebugOnly<bool> isDirectory; | |||
20834 | MOZ_ASSERT(NS_SUCCEEDED(journalDirectory->IsDirectory(&isDirectory)))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory ->IsDirectory(&isDirectory))), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(journalDirectory->IsDirectory(&isDirectory ))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->IsDirectory(&isDirectory))), 1)))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20834); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->IsDirectory(&isDirectory))), 1)))" ")"); do { *((volatile int*)__null) = 20834; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20835 | MOZ_ASSERT(isDirectory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(isDirectory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20835); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { *((volatile int*)__null) = 20835; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20836 | ||||
20837 | mFileDirectory.init(WrapNotNullUnchecked(std::move(fileDirectory))); | |||
20838 | mJournalDirectory.init(WrapNotNullUnchecked(std::move(journalDirectory))); | |||
20839 | ||||
20840 | return NS_OK; | |||
20841 | } | |||
20842 | ||||
20843 | nsCOMPtr<nsIFile> FileHelper::GetFile(const DatabaseFileInfo& aFileInfo) { | |||
20844 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20844); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 20844; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20845 | ||||
20846 | return mFileManager->GetFileForId(mFileDirectory->get(), aFileInfo.Id()); | |||
20847 | } | |||
20848 | ||||
20849 | nsCOMPtr<nsIFile> FileHelper::GetJournalFile( | |||
20850 | const DatabaseFileInfo& aFileInfo) { | |||
20851 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20851); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 20851; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20852 | ||||
20853 | return mFileManager->GetFileForId(mJournalDirectory->get(), aFileInfo.Id()); | |||
20854 | } | |||
20855 | ||||
20856 | nsresult FileHelper::CreateFileFromStream(nsIFile& aFile, nsIFile& aJournalFile, | |||
20857 | nsIInputStream& aInputStream, | |||
20858 | bool aCompress, | |||
20859 | const Maybe<CipherKey>& aMaybeKey) { | |||
20860 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20860); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 20860; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20861 | ||||
20862 | QM_TRY_INSPECT(const auto& exists,auto tryResult3808 = (::mozilla::ToResultInvokeMember( (aFile ), &::mozilla::detail::DerefedType<decltype(aFile)> ::Exists)); if ((__builtin_expect(!!(tryResult3808.isErr()), 0 ))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::Exists)" , tryResult3808.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20863, mozilla::dom::quota::Severity::Error); return tryResult3808 .propagateErr(); } const auto& exists = tryResult3808.inspect (); | |||
20863 | MOZ_TO_RESULT_INVOKE_MEMBER(aFile, Exists))auto tryResult3808 = (::mozilla::ToResultInvokeMember( (aFile ), &::mozilla::detail::DerefedType<decltype(aFile)> ::Exists)); if ((__builtin_expect(!!(tryResult3808.isErr()), 0 ))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::Exists)" , tryResult3808.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20863, mozilla::dom::quota::Severity::Error); return tryResult3808 .propagateErr(); } const auto& exists = tryResult3808.inspect ();; | |||
20864 | ||||
20865 | // DOM blobs that are being stored in IDB are cached by calling | |||
20866 | // IDBDatabase::GetOrCreateFileActorForBlob. So if the same DOM blob is stored | |||
20867 | // again under a different key or in a different object store, we just add | |||
20868 | // a new reference instead of creating a new copy (all such stored blobs share | |||
20869 | // the same id). | |||
20870 | // However, it can happen that CreateFileFromStream failed due to quota | |||
20871 | // exceeded error and for some reason the orphaned file couldn't be deleted | |||
20872 | // immediately. Now, if the operation is being repeated, the DOM blob is | |||
20873 | // already cached, so it has the same file id which clashes with the orphaned | |||
20874 | // file. We could do some tricks to restore previous copy loop, but it's safer | |||
20875 | // to just delete the orphaned file and start from scratch. | |||
20876 | // This corner case is partially simulated in test_file_copy_failure.js | |||
20877 | if (exists) { | |||
20878 | QM_TRY_INSPECT(const auto& isFile,auto tryResult3809 = (::mozilla::ToResultInvokeMember( (aFile ), &::mozilla::detail::DerefedType<decltype(aFile)> ::IsFile)); if ((__builtin_expect(!!(tryResult3809.isErr()), 0 ))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::IsFile)" , tryResult3809.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20879, mozilla::dom::quota::Severity::Error); return tryResult3809 .propagateErr(); } const auto& isFile = tryResult3809.inspect (); | |||
20879 | MOZ_TO_RESULT_INVOKE_MEMBER(aFile, IsFile))auto tryResult3809 = (::mozilla::ToResultInvokeMember( (aFile ), &::mozilla::detail::DerefedType<decltype(aFile)> ::IsFile)); if ((__builtin_expect(!!(tryResult3809.isErr()), 0 ))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::IsFile)" , tryResult3809.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20879, mozilla::dom::quota::Severity::Error); return tryResult3809 .propagateErr(); } const auto& isFile = tryResult3809.inspect ();; | |||
20880 | ||||
20881 | QM_TRY(OkIf(isFile), NS_ERROR_FAILURE){auto tryResult3810 = (OkIf(isFile)); static_assert(std::is_empty_v <typename decltype(tryResult3810)::ok_type>); if ((__builtin_expect (!!(tryResult3810.isErr()), 0))) { auto tryTempError __attribute__ ((__unused__)) = tryResult3810.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(isFile)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20881, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isFile)" , tryTempError, NS_ERROR_FAILURE); }}; | |||
20882 | ||||
20883 | QM_TRY_INSPECT(const auto& journalExists,auto tryResult3811 = (::mozilla::ToResultInvokeMember( (aJournalFile ), &::mozilla::detail::DerefedType<decltype(aJournalFile )>::Exists)); if ((__builtin_expect(!!(tryResult3811.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::Exists)" , tryResult3811.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20884, mozilla::dom::quota::Severity::Error); return tryResult3811 .propagateErr(); } const auto& journalExists = tryResult3811 .inspect(); | |||
20884 | MOZ_TO_RESULT_INVOKE_MEMBER(aJournalFile, Exists))auto tryResult3811 = (::mozilla::ToResultInvokeMember( (aJournalFile ), &::mozilla::detail::DerefedType<decltype(aJournalFile )>::Exists)); if ((__builtin_expect(!!(tryResult3811.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::Exists)" , tryResult3811.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20884, mozilla::dom::quota::Severity::Error); return tryResult3811 .propagateErr(); } const auto& journalExists = tryResult3811 .inspect();; | |||
20885 | ||||
20886 | QM_TRY(OkIf(journalExists), NS_ERROR_FAILURE){auto tryResult3812 = (OkIf(journalExists)); static_assert(std ::is_empty_v<typename decltype(tryResult3812)::ok_type> ); if ((__builtin_expect(!!(tryResult3812.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3812.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(journalExists)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20886, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalExists)" , tryTempError, NS_ERROR_FAILURE); }}; | |||
20887 | ||||
20888 | QM_TRY_INSPECT(const auto& journalIsFile,auto tryResult3813 = (::mozilla::ToResultInvokeMember( (aJournalFile ), &::mozilla::detail::DerefedType<decltype(aJournalFile )>::IsFile)); if ((__builtin_expect(!!(tryResult3813.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::IsFile)" , tryResult3813.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20889, mozilla::dom::quota::Severity::Error); return tryResult3813 .propagateErr(); } const auto& journalIsFile = tryResult3813 .inspect(); | |||
20889 | MOZ_TO_RESULT_INVOKE_MEMBER(aJournalFile, IsFile))auto tryResult3813 = (::mozilla::ToResultInvokeMember( (aJournalFile ), &::mozilla::detail::DerefedType<decltype(aJournalFile )>::IsFile)); if ((__builtin_expect(!!(tryResult3813.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::IsFile)" , tryResult3813.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20889, mozilla::dom::quota::Severity::Error); return tryResult3813 .propagateErr(); } const auto& journalIsFile = tryResult3813 .inspect();; | |||
20890 | ||||
20891 | QM_TRY(OkIf(journalIsFile), NS_ERROR_FAILURE){auto tryResult3814 = (OkIf(journalIsFile)); static_assert(std ::is_empty_v<typename decltype(tryResult3814)::ok_type> ); if ((__builtin_expect(!!(tryResult3814.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult3814.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(journalIsFile)", tryTempError , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20891, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalIsFile)" , tryTempError, NS_ERROR_FAILURE); }}; | |||
20892 | ||||
20893 | IDB_WARNING("Deleting orphaned file!")do { nsPrintfCString s("Deleting orphaned file!"); mozilla::dom ::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20893, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20893); } while (0); | |||
20894 | ||||
20895 | QM_TRY(MOZ_TO_RESULT(mFileManager->SyncDeleteFile(aFile, aJournalFile))){auto tryResult3815 = (ToResult(mFileManager->SyncDeleteFile (aFile, aJournalFile))); static_assert(std::is_empty_v<typename decltype(tryResult3815)::ok_type>); if ((__builtin_expect (!!(tryResult3815.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(mFileManager->SyncDeleteFile(aFile, aJournalFile))" , tryResult3815.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20895, mozilla::dom::quota::Severity::Error); return tryResult3815 .propagateErr(); }}; | |||
20896 | } | |||
20897 | ||||
20898 | // Create a journal file first. | |||
20899 | QM_TRY(MOZ_TO_RESULT(aJournalFile.Create(nsIFile::NORMAL_FILE_TYPE, 0644))){auto tryResult3816 = (ToResult(aJournalFile.Create(nsIFile:: NORMAL_FILE_TYPE, 0644))); static_assert(std::is_empty_v<typename decltype(tryResult3816)::ok_type>); if ((__builtin_expect (!!(tryResult3816.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aJournalFile.Create(nsIFile::NORMAL_FILE_TYPE, 0644))" , tryResult3816.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20899, mozilla::dom::quota::Severity::Error); return tryResult3816 .propagateErr(); }}; | |||
20900 | ||||
20901 | // Now try to copy the stream. | |||
20902 | QM_TRY_UNWRAP(nsCOMPtr<nsIOutputStream> fileOutputStream,auto tryResult3817 = (CreateFileOutputStream(mFileManager-> Type(), mFileManager->OriginMetadata(), Client::IDB, & aFile)); if ((__builtin_expect(!!(tryResult3817.isErr()), 0)) ) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)" , tryResult3817.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20905, mozilla::dom::quota::Severity::Error); return tryResult3817 .propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream = tryResult3817.unwrap(); | |||
20903 | CreateFileOutputStream(mFileManager->Type(),auto tryResult3817 = (CreateFileOutputStream(mFileManager-> Type(), mFileManager->OriginMetadata(), Client::IDB, & aFile)); if ((__builtin_expect(!!(tryResult3817.isErr()), 0)) ) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)" , tryResult3817.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20905, mozilla::dom::quota::Severity::Error); return tryResult3817 .propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream = tryResult3817.unwrap(); | |||
20904 | mFileManager->OriginMetadata(),auto tryResult3817 = (CreateFileOutputStream(mFileManager-> Type(), mFileManager->OriginMetadata(), Client::IDB, & aFile)); if ((__builtin_expect(!!(tryResult3817.isErr()), 0)) ) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)" , tryResult3817.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20905, mozilla::dom::quota::Severity::Error); return tryResult3817 .propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream = tryResult3817.unwrap(); | |||
20905 | Client::IDB, &aFile))auto tryResult3817 = (CreateFileOutputStream(mFileManager-> Type(), mFileManager->OriginMetadata(), Client::IDB, & aFile)); if ((__builtin_expect(!!(tryResult3817.isErr()), 0)) ) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)" , tryResult3817.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20905, mozilla::dom::quota::Severity::Error); return tryResult3817 .propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream = tryResult3817.unwrap();; | |||
20906 | ||||
20907 | AutoTArray<char, kFileCopyBufferSize> buffer; | |||
20908 | const auto actualOutputStream = | |||
20909 | [aCompress, &aMaybeKey, &buffer, | |||
20910 | baseOutputStream = | |||
20911 | std::move(fileOutputStream)]() mutable -> nsCOMPtr<nsIOutputStream> { | |||
20912 | if (aMaybeKey) { | |||
20913 | baseOutputStream = | |||
20914 | MakeRefPtr<EncryptingOutputStream<IndexedDBCipherStrategy>>( | |||
20915 | std::move(baseOutputStream), kEncryptedStreamBlockSize, | |||
20916 | *aMaybeKey); | |||
20917 | } | |||
20918 | ||||
20919 | if (aCompress) { | |||
20920 | auto snappyOutputStream = | |||
20921 | MakeRefPtr<SnappyCompressOutputStream>(baseOutputStream); | |||
20922 | ||||
20923 | buffer.SetLength(snappyOutputStream->BlockSize()); | |||
20924 | ||||
20925 | return snappyOutputStream; | |||
20926 | } | |||
20927 | ||||
20928 | buffer.SetLength(kFileCopyBufferSize); | |||
20929 | return std::move(baseOutputStream); | |||
20930 | }(); | |||
20931 | ||||
20932 | QM_TRY(MOZ_TO_RESULT(SyncCopy(aInputStream, *actualOutputStream,{auto tryResult3818 = (ToResult(SyncCopy(aInputStream, *actualOutputStream , buffer.Elements(), buffer.Length()))); static_assert(std::is_empty_v <typename decltype(tryResult3818)::ok_type>); if ((__builtin_expect (!!(tryResult3818.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(SyncCopy(aInputStream, *actualOutputStream, buffer.Elements(), buffer.Length()))" , tryResult3818.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20933, mozilla::dom::quota::Severity::Error); return tryResult3818 .propagateErr(); }} | |||
20933 | buffer.Elements(), buffer.Length()))){auto tryResult3818 = (ToResult(SyncCopy(aInputStream, *actualOutputStream , buffer.Elements(), buffer.Length()))); static_assert(std::is_empty_v <typename decltype(tryResult3818)::ok_type>); if ((__builtin_expect (!!(tryResult3818.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(SyncCopy(aInputStream, *actualOutputStream, buffer.Elements(), buffer.Length()))" , tryResult3818.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20933, mozilla::dom::quota::Severity::Error); return tryResult3818 .propagateErr(); }}; | |||
20934 | ||||
20935 | return NS_OK; | |||
20936 | } | |||
20937 | ||||
20938 | class FileHelper::ReadCallback final : public nsIInputStreamCallback { | |||
20939 | public: | |||
20940 | NS_DECL_THREADSAFE_ISUPPORTSpublic: virtual nsresult QueryInterface(const nsIID& aIID , void** aInstancePtr) override; virtual MozExternalRefCountType AddRef(void) override; virtual MozExternalRefCountType Release (void) override; using HasThreadSafeRefCnt = std::true_type; protected : ::mozilla::ThreadSafeAutoRefCnt mRefCnt; nsAutoOwningThread _mOwningThread; public: | |||
20941 | ||||
20942 | ReadCallback() | |||
20943 | : mMutex("ReadCallback::mMutex"), | |||
20944 | mCondVar(mMutex, "ReadCallback::mCondVar"), | |||
20945 | mInputAvailable(false) {} | |||
20946 | ||||
20947 | NS_IMETHODvirtual nsresult | |||
20948 | OnInputStreamReady(nsIAsyncInputStream* aStream) override { | |||
20949 | mozilla::MutexAutoLock autolock(mMutex); | |||
20950 | ||||
20951 | mInputAvailable = true; | |||
20952 | mCondVar.Notify(); | |||
20953 | ||||
20954 | return NS_OK; | |||
20955 | } | |||
20956 | ||||
20957 | nsresult AsyncWait(nsIAsyncInputStream* aStream, uint32_t aBufferSize, | |||
20958 | nsIEventTarget* aTarget) { | |||
20959 | MOZ_ASSERT(aStream)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aStream)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aStream))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aStream", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20959); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStream" ")" ); do { *((volatile int*)__null) = 20959; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
20960 | mozilla::MutexAutoLock autolock(mMutex); | |||
20961 | ||||
20962 | nsresult rv = aStream->AsyncWait(this, 0, aBufferSize, aTarget); | |||
20963 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20963)) { | |||
20964 | return rv; | |||
20965 | } | |||
20966 | ||||
20967 | mInputAvailable = false; | |||
20968 | while (!mInputAvailable) { | |||
20969 | mCondVar.Wait(); | |||
20970 | } | |||
20971 | ||||
20972 | return NS_OK; | |||
20973 | } | |||
20974 | ||||
20975 | private: | |||
20976 | ~ReadCallback() = default; | |||
20977 | ||||
20978 | mozilla::Mutex mMutex MOZ_UNANNOTATED; | |||
20979 | mozilla::CondVar mCondVar; | |||
20980 | bool mInputAvailable; | |||
20981 | }; | |||
20982 | ||||
20983 | NS_IMPL_ADDREF(FileHelper::ReadCallback)MozExternalRefCountType FileHelper::ReadCallback::AddRef(void ) { static_assert(!std::is_destructible_v<FileHelper::ReadCallback >, "Reference-counted class " "FileHelper::ReadCallback" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20983); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { *((volatile int*)__null) = 20983; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("FileHelper::ReadCallback" != nullptr)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!("FileHelper::ReadCallback" != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("\"FileHelper::ReadCallback\" != nullptr" " (" "Must specify a name" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20983); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"FileHelper::ReadCallback\" != nullptr" ") (" "Must specify a name" ")"); do { *((volatile int*)__null ) = 20983; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("FileHelper::ReadCallback" " not thread-safe" ); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count), ( "FileHelper::ReadCallback"), (uint32_t)(sizeof(*this))); return count; }; | |||
20984 | NS_IMPL_RELEASE(FileHelper::ReadCallback)MozExternalRefCountType FileHelper::ReadCallback::Release(void ) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { *((volatile int*)__null) = 20984 ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType <decltype("FileHelper::ReadCallback" != nullptr)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!("FileHelper::ReadCallback" != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("\"FileHelper::ReadCallback\" != nullptr" " (" "Must specify a name" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20984); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"FileHelper::ReadCallback\" != nullptr" ") (" "Must specify a name" ")"); do { *((volatile int*)__null ) = 20984; __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread .AssertOwnership("FileHelper::ReadCallback" " not thread-safe" ); const char* const nametmp = "FileHelper::ReadCallback"; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), (nametmp)) ; if (count == 0) { mRefCnt = 1; delete (this); return 0; } return count; }; | |||
20985 | ||||
20986 | NS_INTERFACE_MAP_BEGIN(FileHelper::ReadCallback)nsresult FileHelper::ReadCallback::QueryInterface(const nsIID & aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!" , "aInstancePtr", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20986); MOZ_PretendNoReturn(); } } while (0); nsISupports* foundInterface ; | |||
20987 | NS_INTERFACE_MAP_ENTRY(nsIInputStreamCallback)if (aIID.Equals(mozilla::detail::kImplementedIID<std::remove_reference_t <decltype(*this)>, nsIInputStreamCallback>)) foundInterface = static_cast<nsIInputStreamCallback*>(this); else | |||
20988 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIInputStreamCallback)if (aIID.Equals(mozilla::detail::kImplementedIID<std::remove_reference_t <decltype(*this)>, nsISupports>)) foundInterface = static_cast <nsISupports*>(static_cast<nsIInputStreamCallback*> (this)); else | |||
20989 | NS_INTERFACE_MAP_ENDfoundInterface = 0; nsresult status; if (!foundInterface) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aIID.Equals((nsISupports::COMTypeInfo<nsISupports , void>::kIID)))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aIID.Equals((nsISupports::COMTypeInfo <nsISupports, void>::kIID))))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("!aIID.Equals((nsISupports::COMTypeInfo<nsISupports, void>::kIID))" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20989); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIID.Equals((nsISupports::COMTypeInfo<nsISupports, void>::kIID))" ")"); do { *((volatile int*)__null) = 20989; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); status = NS_NOINTERFACE; } else { (foundInterface)->AddRef(); status = NS_OK; } *aInstancePtr = foundInterface; return status; } | |||
20990 | ||||
20991 | nsresult FileHelper::SyncRead(nsIInputStream& aInputStream, char* const aBuffer, | |||
20992 | const uint32_t aBufferSize, | |||
20993 | uint32_t* const aRead) { | |||
20994 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 20994); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 20994; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
20995 | ||||
20996 | // Let's try to read, directly. | |||
20997 | nsresult rv = aInputStream.Read(aBuffer, aBufferSize, aRead); | |||
20998 | if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) || rv != NS_BASE_STREAM_WOULD_BLOCK) { | |||
20999 | return rv; | |||
21000 | } | |||
21001 | ||||
21002 | // We need to proceed async. | |||
21003 | nsCOMPtr<nsIAsyncInputStream> asyncStream = do_QueryInterface(&aInputStream); | |||
21004 | if (!asyncStream) { | |||
21005 | return rv; | |||
21006 | } | |||
21007 | ||||
21008 | if (!mReadCallback) { | |||
21009 | mReadCallback.init(MakeNotNull<RefPtr<ReadCallback>>()); | |||
21010 | } | |||
21011 | ||||
21012 | // We just need any thread with an event loop for receiving the | |||
21013 | // OnInputStreamReady callback. Let's use the I/O thread. | |||
21014 | nsCOMPtr<nsIEventTarget> target = | |||
21015 | do_GetService(NS_STREAMTRANSPORTSERVICE_CONTRACTID"@mozilla.org/network/stream-transport-service;1"); | |||
21016 | MOZ_ASSERT(target)do { static_assert( mozilla::detail::AssertionConditionType< decltype(target)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(target))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("target", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 21016); AnnotateMozCrashReason("MOZ_ASSERT" "(" "target" ")" ); do { *((volatile int*)__null) = 21016; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | |||
21017 | ||||
21018 | rv = (*mReadCallback)->AsyncWait(asyncStream, aBufferSize, target); | |||
21019 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 21019)) { | |||
21020 | return rv; | |||
21021 | } | |||
21022 | ||||
21023 | return SyncRead(aInputStream, aBuffer, aBufferSize, aRead); | |||
21024 | } | |||
21025 | ||||
21026 | nsresult FileHelper::SyncCopy(nsIInputStream& aInputStream, | |||
21027 | nsIOutputStream& aOutputStream, | |||
21028 | char* const aBuffer, const uint32_t aBufferSize) { | |||
21029 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 21029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { *((volatile int*)__null) = 21029; __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | |||
21030 | ||||
21031 | AUTO_PROFILER_LABEL("FileHelper::SyncCopy", DOM)mozilla::AutoProfilerLabel raiiObject21031( "FileHelper::SyncCopy" , nullptr, JS::ProfilingCategoryPair::DOM); | |||
21032 | ||||
21033 | nsresult rv; | |||
21034 | ||||
21035 | do { | |||
21036 | uint32_t numRead; | |||
21037 | rv = SyncRead(aInputStream, aBuffer, aBufferSize, &numRead); | |||
21038 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 21038)) { | |||
21039 | break; | |||
21040 | } | |||
21041 | ||||
21042 | if (!numRead) { | |||
21043 | break; | |||
21044 | } | |||
21045 | ||||
21046 | uint32_t numWrite; | |||
21047 | rv = aOutputStream.Write(aBuffer, numRead, &numWrite); | |||
21048 | if (rv == NS_ERROR_FILE_NO_DEVICE_SPACE) { | |||
21049 | rv = NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR; | |||
21050 | } | |||
21051 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 21051)) { | |||
21052 | break; | |||
21053 | } | |||
21054 | ||||
21055 | if (NS_WARN_IF(numWrite != numRead)NS_warn_if_impl(numWrite != numRead, "numWrite != numRead", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 21055)) { | |||
21056 | rv = NS_ERROR_FAILURE; | |||
21057 | break; | |||
21058 | } | |||
21059 | } while (true); | |||
21060 | ||||
21061 | if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { | |||
21062 | rv = aOutputStream.Flush(); | |||
21063 | if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv )), 0))), "NS_FAILED(rv)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 21063)) { | |||
21064 | return rv; | |||
21065 | } | |||
21066 | } | |||
21067 | ||||
21068 | nsresult rv2 = aOutputStream.Close(); | |||
21069 | if (NS_WARN_IF(NS_FAILED(rv2))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv2 )), 0))), "NS_FAILED(rv2)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp" , 21069)) { | |||
21070 | return NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? rv2 : rv; | |||
21071 | } | |||
21072 | ||||
21073 | return rv; | |||
21074 | } | |||
21075 | ||||
21076 | } // namespace dom::indexedDB | |||
21077 | } // namespace mozilla | |||
21078 | ||||
21079 | #undef IDB_MOBILE | |||
21080 | #undef IDB_DEBUG_LOG |
1 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | ||||||||
2 | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ | ||||||||
3 | /* This Source Code Form is subject to the terms of the Mozilla Public | ||||||||
4 | * License, v. 2.0. If a copy of the MPL was not distributed with this | ||||||||
5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||||||||
6 | |||||||||
7 | #ifndef mozilla_saferefptr_h__ | ||||||||
8 | #define mozilla_saferefptr_h__ | ||||||||
9 | |||||||||
10 | #include "mozilla/ArrayAlgorithm.h" | ||||||||
11 | #include "mozilla/Maybe.h" | ||||||||
12 | #include "mozilla/NotNull.h" | ||||||||
13 | #include "mozilla/RefCounted.h" | ||||||||
14 | #include "mozilla/RefPtr.h" | ||||||||
15 | #include "nsCOMPtr.h" | ||||||||
16 | #include "nsTObserverArray.h" | ||||||||
17 | |||||||||
18 | namespace mozilla { | ||||||||
19 | template <typename T> | ||||||||
20 | class SafeRefPtr; | ||||||||
21 | |||||||||
22 | template <typename T, typename... Args> | ||||||||
23 | SafeRefPtr<T> MakeSafeRefPtr(Args&&... aArgs); | ||||||||
24 | |||||||||
25 | namespace detail { | ||||||||
26 | struct InitialConstructionTag {}; | ||||||||
27 | |||||||||
28 | class SafeRefCountedBase { | ||||||||
29 | template <typename U, typename... Args> | ||||||||
30 | friend SafeRefPtr<U> mozilla::MakeSafeRefPtr(Args&&... aArgs); | ||||||||
31 | |||||||||
32 | template <typename T> | ||||||||
33 | friend class SafeRefPtr; | ||||||||
34 | |||||||||
35 | void* operator new(size_t aSize) { return ::operator new(aSize); } | ||||||||
36 | |||||||||
37 | protected: | ||||||||
38 | void operator delete(void* aPtr) { ::operator delete(aPtr); } | ||||||||
39 | |||||||||
40 | public: | ||||||||
41 | void* operator new[](size_t) = delete; | ||||||||
42 | }; | ||||||||
43 | |||||||||
44 | // SafeRefCounted is similar to RefCounted, but they differ in their initial | ||||||||
45 | // refcount (here 1), and the visibility of operator new (here private). The | ||||||||
46 | // rest is mostly a copy of RefCounted. | ||||||||
47 | template <typename T, RefCountAtomicity Atomicity> | ||||||||
48 | class SafeRefCounted : public SafeRefCountedBase { | ||||||||
49 | protected: | ||||||||
50 | SafeRefCounted() = default; | ||||||||
51 | #ifdef DEBUG1 | ||||||||
52 | ~SafeRefCounted() { MOZ_ASSERT(mRefCnt == detail::DEAD)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mRefCnt == detail::DEAD)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mRefCnt == detail::DEAD))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("mRefCnt == detail::DEAD" , "/var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/SafeRefPtr.h" , 52); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRefCnt == detail::DEAD" ")"); do { *((volatile int*)__null) = 52; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | ||||||||
53 | #endif | ||||||||
54 | |||||||||
55 | public: | ||||||||
56 | // Compatibility with nsRefPtr. | ||||||||
57 | MozRefCountType AddRef() const { | ||||||||
58 | // Note: this method must be thread safe for AtomicRefCounted. | ||||||||
59 | MOZ_ASSERT(int32_t(mRefCnt) >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" , "/var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/SafeRefPtr.h" , 59); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ")"); do { *((volatile int*)__null) = 59; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||||||
60 | const MozRefCountType cnt = ++mRefCnt; | ||||||||
61 | detail::RefCountLogger::logAddRef(static_cast<const T*>(this), cnt); | ||||||||
62 | return cnt; | ||||||||
63 | } | ||||||||
64 | |||||||||
65 | MozRefCountType Release() const { | ||||||||
66 | // Note: this method must be thread safe for AtomicRefCounted. | ||||||||
67 | MOZ_ASSERT(int32_t(mRefCnt) > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/SafeRefPtr.h" , 67); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ")"); do { *((volatile int*)__null) = 67; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||||||
68 | detail::RefCountLogger::ReleaseLogger logger(static_cast<const T*>(this)); | ||||||||
69 | const MozRefCountType cnt = --mRefCnt; | ||||||||
70 | // Note: it's not safe to touch |this| after decrementing the refcount, | ||||||||
71 | // except for below. | ||||||||
72 | logger.logRelease(cnt); | ||||||||
73 | if (0 == cnt
| ||||||||
74 | // Because we have atomically decremented the refcount above, only | ||||||||
75 | // one thread can get a 0 count here, so as long as we can assume that | ||||||||
76 | // everything else in the system is accessing this object through | ||||||||
77 | // RefPtrs, it's safe to access |this| here. | ||||||||
78 | #ifdef DEBUG1 | ||||||||
79 | mRefCnt = detail::DEAD; | ||||||||
80 | #endif | ||||||||
81 | delete static_cast<const T*>(this); | ||||||||
82 | } | ||||||||
83 | return cnt; | ||||||||
84 | } | ||||||||
85 | |||||||||
86 | // Compatibility with wtf::RefPtr. | ||||||||
87 | void ref() { AddRef(); } | ||||||||
88 | void deref() { Release(); } | ||||||||
89 | MozRefCountType refCount() const { return mRefCnt; } | ||||||||
90 | bool hasOneRef() const { | ||||||||
91 | MOZ_ASSERT(mRefCnt > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mRefCnt > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mRefCnt > 0" , "/var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/SafeRefPtr.h" , 91); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRefCnt > 0" ")"); do { *((volatile int*)__null) = 91; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||||||
92 | return mRefCnt == 1; | ||||||||
93 | } | ||||||||
94 | |||||||||
95 | protected: | ||||||||
96 | SafeRefPtr<T> SafeRefPtrFromThis(); | ||||||||
97 | |||||||||
98 | private: | ||||||||
99 | mutable RC<MozRefCountType, Atomicity> mRefCnt = | ||||||||
100 | RC<MozRefCountType, Atomicity>{1}; | ||||||||
101 | }; | ||||||||
102 | } // namespace detail | ||||||||
103 | |||||||||
104 | template <typename T> | ||||||||
105 | class SafeRefCounted | ||||||||
106 | : public detail::SafeRefCounted<T, detail::NonAtomicRefCount> { | ||||||||
107 | public: | ||||||||
108 | ~SafeRefCounted() { | ||||||||
109 | static_assert(std::is_base_of<SafeRefCounted, T>::value, | ||||||||
110 | "T must derive from SafeRefCounted<T>"); | ||||||||
111 | } | ||||||||
112 | }; | ||||||||
113 | |||||||||
114 | template <typename T> | ||||||||
115 | class AtomicSafeRefCounted | ||||||||
116 | : public detail::SafeRefCounted<T, detail::AtomicRefCount> { | ||||||||
117 | public: | ||||||||
118 | ~AtomicSafeRefCounted() { | ||||||||
119 | static_assert(std::is_base_of<AtomicSafeRefCounted, T>::value, | ||||||||
120 | "T must derive from AtomicSafeRefCounted<T>"); | ||||||||
121 | } | ||||||||
122 | }; | ||||||||
123 | |||||||||
124 | struct AcquireStrongRefFromRawPtr {}; | ||||||||
125 | |||||||||
126 | // XXX for Apple, clang::trivial_abi is probably also supported, but we need to | ||||||||
127 | // find out the correct version number | ||||||||
128 | #if defined(__clang__1) && !defined(__apple_build_version__) && \ | ||||||||
129 | __clang_major__18 >= 7 | ||||||||
130 | # define MOZ_TRIVIAL_ABI[[clang::trivial_abi]] [[clang::trivial_abi]] | ||||||||
131 | #else | ||||||||
132 | # define MOZ_TRIVIAL_ABI[[clang::trivial_abi]] | ||||||||
133 | #endif | ||||||||
134 | |||||||||
135 | // A restricted variant of mozilla::RefPtr<T>, which prohibits some unsafe or | ||||||||
136 | // unperformant misuses, in particular: | ||||||||
137 | // * It is not implicitly convertible from a raw pointer. Unsafe acquisitions | ||||||||
138 | // from a raw pointer must be made using the verbose | ||||||||
139 | // AcquireStrongRefFromRawPtr. To create a new object on the heap, use | ||||||||
140 | // MakeSafeRefPtr. | ||||||||
141 | // * It does not implicitly decay to a raw pointer. unsafeGetRawPtr() must be | ||||||||
142 | // called | ||||||||
143 | // explicitly. | ||||||||
144 | // * It is not copyable, but must be explicitly copied using clonePtr(). | ||||||||
145 | // * Temporaries cannot be dereferenced using operator* or operator->. | ||||||||
146 | template <typename T> | ||||||||
147 | class MOZ_IS_REFPTR MOZ_TRIVIAL_ABI[[clang::trivial_abi]] SafeRefPtr { | ||||||||
148 | template <typename U> | ||||||||
149 | friend class SafeRefPtr; | ||||||||
150 | |||||||||
151 | template <typename U, typename... Args> | ||||||||
152 | friend SafeRefPtr<U> mozilla::MakeSafeRefPtr(Args&&... aArgs); | ||||||||
153 | |||||||||
154 | T* MOZ_OWNING_REF mRawPtr = nullptr; | ||||||||
155 | |||||||||
156 | // BEGIN Some things copied from RefPtr. | ||||||||
157 | // We cannot simply use a RefPtr member because we want to be trivial_abi, | ||||||||
158 | // which RefPtr is not. | ||||||||
159 | void assign_with_AddRef(T* aRawPtr) { | ||||||||
160 | if (aRawPtr) { | ||||||||
161 | ConstRemovingRefPtrTraits<T>::AddRef(aRawPtr); | ||||||||
162 | } | ||||||||
163 | assign_assuming_AddRef(aRawPtr); | ||||||||
164 | } | ||||||||
165 | |||||||||
166 | void assign_assuming_AddRef(T* aNewPtr) { | ||||||||
167 | T* oldPtr = mRawPtr; | ||||||||
168 | mRawPtr = aNewPtr; | ||||||||
169 | if (oldPtr
| ||||||||
170 | ConstRemovingRefPtrTraits<T>::Release(oldPtr); | ||||||||
171 | } | ||||||||
172 | } | ||||||||
173 | |||||||||
174 | template <class U> | ||||||||
175 | struct ConstRemovingRefPtrTraits { | ||||||||
176 | static void AddRef(U* aPtr) { mozilla::RefPtrTraits<U>::AddRef(aPtr); } | ||||||||
177 | static void Release(U* aPtr) { mozilla::RefPtrTraits<U>::Release(aPtr); } | ||||||||
178 | }; | ||||||||
179 | template <class U> | ||||||||
180 | struct ConstRemovingRefPtrTraits<const U> { | ||||||||
181 | static void AddRef(const U* aPtr) { | ||||||||
182 | mozilla::RefPtrTraits<U>::AddRef(const_cast<U*>(aPtr)); | ||||||||
183 | } | ||||||||
184 | static void Release(const U* aPtr) { | ||||||||
185 | mozilla::RefPtrTraits<U>::Release(const_cast<U*>(aPtr)); | ||||||||
186 | } | ||||||||
187 | }; | ||||||||
188 | // END Some things copied from RefPtr. | ||||||||
189 | |||||||||
190 | SafeRefPtr(T* aRawPtr, mozilla::detail::InitialConstructionTag); | ||||||||
191 | |||||||||
192 | public: | ||||||||
193 | SafeRefPtr() = default; | ||||||||
194 | |||||||||
195 | template <typename U, | ||||||||
196 | typename = std::enable_if_t<std::is_convertible_v<U*, T*>>> | ||||||||
197 | MOZ_IMPLICIT SafeRefPtr(SafeRefPtr<U>&& aSrc) : mRawPtr(aSrc.mRawPtr) { | ||||||||
198 | aSrc.mRawPtr = nullptr; | ||||||||
199 | } | ||||||||
200 | |||||||||
201 | explicit SafeRefPtr(RefPtr<T>&& aRefPtr) : mRawPtr(aRefPtr.forget().take()) {} | ||||||||
202 | |||||||||
203 | // To prevent implicit conversion of raw pointer to RefPtr and then | ||||||||
204 | // calling the previous overload. | ||||||||
205 | SafeRefPtr(T* const aRawPtr) = delete; | ||||||||
206 | |||||||||
207 | SafeRefPtr(T* const aRawPtr, const AcquireStrongRefFromRawPtr&) { | ||||||||
208 | assign_with_AddRef(aRawPtr); | ||||||||
209 | } | ||||||||
210 | |||||||||
211 | MOZ_IMPLICIT SafeRefPtr(std::nullptr_t) {} | ||||||||
212 | |||||||||
213 | // Prevent implicit copying, use clonePtr() instead. | ||||||||
214 | SafeRefPtr(const SafeRefPtr&) = delete; | ||||||||
215 | SafeRefPtr& operator=(const SafeRefPtr&) = delete; | ||||||||
216 | |||||||||
217 | // Allow moving. | ||||||||
218 | SafeRefPtr(SafeRefPtr&& aOther) noexcept : mRawPtr(aOther.mRawPtr) { | ||||||||
219 | aOther.mRawPtr = nullptr; | ||||||||
220 | } | ||||||||
221 | SafeRefPtr& operator=(SafeRefPtr&& aOther) noexcept { | ||||||||
222 | assign_assuming_AddRef(aOther.forget().take()); | ||||||||
223 | return *this; | ||||||||
224 | } | ||||||||
225 | |||||||||
226 | ~SafeRefPtr() { | ||||||||
227 | static_assert(!std::is_copy_constructible_v<T>); | ||||||||
228 | static_assert(!std::is_copy_assignable_v<T>); | ||||||||
229 | static_assert(!std::is_move_constructible_v<T>); | ||||||||
230 | static_assert(!std::is_move_assignable_v<T>); | ||||||||
231 | |||||||||
232 | if (mRawPtr) { | ||||||||
233 | ConstRemovingRefPtrTraits<T>::Release(mRawPtr); | ||||||||
234 | } | ||||||||
235 | } | ||||||||
236 | |||||||||
237 | typedef T element_type; | ||||||||
238 | |||||||||
239 | explicit operator bool() const { return mRawPtr; } | ||||||||
240 | bool operator!() const { return !mRawPtr; } | ||||||||
241 | |||||||||
242 | T& operator*() const&& = delete; | ||||||||
243 | |||||||||
244 | T& operator*() const& { | ||||||||
245 | MOZ_ASSERT(mRawPtr)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mRawPtr)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mRawPtr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mRawPtr", "/var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/SafeRefPtr.h" , 245); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr" ")" ); do { *((volatile int*)__null) = 245; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||||||
246 | return *mRawPtr; | ||||||||
247 | } | ||||||||
248 | |||||||||
249 | T* operator->() const&& = delete; | ||||||||
250 | |||||||||
251 | T* operator->() const& MOZ_NO_ADDREF_RELEASE_ON_RETURN { | ||||||||
252 | MOZ_ASSERT(mRawPtr)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mRawPtr)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mRawPtr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mRawPtr", "/var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/SafeRefPtr.h" , 252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr" ")" ); do { *((volatile int*)__null) = 252; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||||||
253 | return mRawPtr; | ||||||||
254 | } | ||||||||
255 | |||||||||
256 | Maybe<T&> maybeDeref() const { return ToMaybeRef(mRawPtr); } | ||||||||
257 | |||||||||
258 | T* unsafeGetRawPtr() const { return mRawPtr; } | ||||||||
259 | |||||||||
260 | SafeRefPtr<T> clonePtr() const { | ||||||||
261 | return SafeRefPtr{mRawPtr, AcquireStrongRefFromRawPtr{}}; | ||||||||
262 | } | ||||||||
263 | |||||||||
264 | already_AddRefed<T> forget() { | ||||||||
265 | auto* const res = mRawPtr; | ||||||||
266 | mRawPtr = nullptr; | ||||||||
267 | return dont_AddRef(res); | ||||||||
268 | } | ||||||||
269 | |||||||||
270 | bool operator==(const SafeRefPtr<T>& aOther) const { | ||||||||
271 | return mRawPtr == aOther.mRawPtr; | ||||||||
272 | } | ||||||||
273 | |||||||||
274 | bool operator!=(const SafeRefPtr<T>& aOther) const { | ||||||||
275 | return mRawPtr != aOther.mRawPtr; | ||||||||
276 | } | ||||||||
277 | |||||||||
278 | template <typename U, typename = std::enable_if_t<std::is_base_of_v<T, U>>> | ||||||||
279 | SafeRefPtr<U> downcast() && { | ||||||||
280 | SafeRefPtr<U> res; | ||||||||
281 | res.mRawPtr = static_cast<U*>(mRawPtr); | ||||||||
282 | mRawPtr = nullptr; | ||||||||
283 | return res; | ||||||||
284 | } | ||||||||
285 | |||||||||
286 | template <typename U> | ||||||||
287 | friend RefPtr<U> AsRefPtr(SafeRefPtr<U>&& aSafeRefPtr); | ||||||||
288 | }; | ||||||||
289 | |||||||||
290 | template <typename T> | ||||||||
291 | SafeRefPtr(RefPtr<T>&&) -> SafeRefPtr<T>; | ||||||||
292 | |||||||||
293 | template <typename T> | ||||||||
294 | SafeRefPtr(already_AddRefed<T>&&) -> SafeRefPtr<T>; | ||||||||
295 | |||||||||
296 | template <typename T> | ||||||||
297 | class CheckedUnsafePtr; | ||||||||
298 | |||||||||
299 | template <typename T> | ||||||||
300 | SafeRefPtr(const CheckedUnsafePtr<T>&, | ||||||||
301 | const AcquireStrongRefFromRawPtr&) -> SafeRefPtr<T>; | ||||||||
302 | |||||||||
303 | template <typename T> | ||||||||
304 | SafeRefPtr<T>::SafeRefPtr(T* aRawPtr, detail::InitialConstructionTag) | ||||||||
305 | : mRawPtr(aRawPtr) { | ||||||||
306 | if (!std::is_base_of_v<detail::SafeRefCountedBase, T> && mRawPtr) { | ||||||||
307 | ConstRemovingRefPtrTraits<T>::AddRef(mRawPtr); | ||||||||
308 | } | ||||||||
309 | } | ||||||||
310 | |||||||||
311 | template <typename T> | ||||||||
312 | bool operator==(std::nullptr_t aLhs, const SafeRefPtr<T>& aRhs) { | ||||||||
313 | return !aRhs; | ||||||||
314 | } | ||||||||
315 | |||||||||
316 | template <typename T> | ||||||||
317 | bool operator!=(std::nullptr_t aLhs, const SafeRefPtr<T>& aRhs) { | ||||||||
318 | return static_cast<bool>(aRhs); | ||||||||
319 | } | ||||||||
320 | |||||||||
321 | template <typename T> | ||||||||
322 | bool operator==(const SafeRefPtr<T>& aLhs, std::nullptr_t aRhs) { | ||||||||
323 | return !aLhs; | ||||||||
324 | } | ||||||||
325 | |||||||||
326 | template <typename T> | ||||||||
327 | bool operator!=(const SafeRefPtr<T>& aLhs, std::nullptr_t aRhs) { | ||||||||
328 | return static_cast<bool>(aLhs); | ||||||||
329 | } | ||||||||
330 | |||||||||
331 | template <typename T, typename U, typename = std::common_type_t<T*, U*>> | ||||||||
332 | bool operator==(T* const aLhs, const SafeRefPtr<U>& aRhs) { | ||||||||
333 | return aLhs == aRhs.unsafeGetRawPtr(); | ||||||||
334 | } | ||||||||
335 | |||||||||
336 | template <typename T, typename U, typename = std::common_type_t<T*, U*>> | ||||||||
337 | bool operator!=(T* const aLhs, const SafeRefPtr<U>& aRhs) { | ||||||||
338 | return !(aLhs == aRhs); | ||||||||
339 | } | ||||||||
340 | |||||||||
341 | template <typename T, typename U, typename = std::common_type_t<T*, U*>> | ||||||||
342 | bool operator==(const SafeRefPtr<T>& aLhs, U* const aRhs) { | ||||||||
343 | return aRhs == aLhs; | ||||||||
344 | } | ||||||||
345 | |||||||||
346 | template <typename T, typename U, typename = std::common_type_t<T*, U*>> | ||||||||
347 | bool operator!=(const SafeRefPtr<T>& aLhs, U* const aRhs) { | ||||||||
348 | return aRhs != aLhs; | ||||||||
349 | } | ||||||||
350 | |||||||||
351 | template <typename T, typename U, typename = std::common_type_t<T*, U*>> | ||||||||
352 | bool operator==(const Maybe<T&> aLhs, const SafeRefPtr<U>& aRhs) { | ||||||||
353 | return &aLhs.ref() == aRhs.unsafeGetRawPtr(); | ||||||||
354 | } | ||||||||
355 | |||||||||
356 | template <typename T, typename U, typename = std::common_type_t<T*, U*>> | ||||||||
357 | bool operator!=(const Maybe<T&> aLhs, const SafeRefPtr<U>& aRhs) { | ||||||||
358 | return !(aLhs == aRhs); | ||||||||
359 | } | ||||||||
360 | |||||||||
361 | template <typename T, typename U, typename = std::common_type_t<T*, U*>> | ||||||||
362 | bool operator==(const SafeRefPtr<T>& aLhs, const Maybe<U&> aRhs) { | ||||||||
363 | return aRhs == aLhs; | ||||||||
364 | } | ||||||||
365 | |||||||||
366 | template <typename T, typename U, typename = std::common_type_t<T*, U*>> | ||||||||
367 | bool operator!=(const SafeRefPtr<T>& aLhs, const Maybe<U&> aRhs) { | ||||||||
368 | return aRhs != aLhs; | ||||||||
369 | } | ||||||||
370 | |||||||||
371 | template <typename T> | ||||||||
372 | RefPtr<T> AsRefPtr(SafeRefPtr<T>&& aSafeRefPtr) { | ||||||||
373 | return aSafeRefPtr.forget(); | ||||||||
374 | } | ||||||||
375 | |||||||||
376 | template <typename T, typename... Args> | ||||||||
377 | SafeRefPtr<T> MakeSafeRefPtr(Args&&... aArgs) { | ||||||||
378 | return SafeRefPtr{new T(std::forward<Args>(aArgs)...), | ||||||||
379 | detail::InitialConstructionTag{}}; | ||||||||
380 | } | ||||||||
381 | |||||||||
382 | template <typename T> | ||||||||
383 | void ImplCycleCollectionTraverse(nsCycleCollectionTraversalCallback& aCallback, | ||||||||
384 | const SafeRefPtr<T>& aField, const char* aName, | ||||||||
385 | uint32_t aFlags = 0) { | ||||||||
386 | CycleCollectionNoteChild(aCallback, aField.unsafeGetRawPtr(), aName, aFlags); | ||||||||
387 | } | ||||||||
388 | |||||||||
389 | template <typename T> | ||||||||
390 | void ImplCycleCollectionUnlink(SafeRefPtr<T>& aField) { | ||||||||
391 | aField = nullptr; | ||||||||
392 | } | ||||||||
393 | |||||||||
394 | namespace detail { | ||||||||
395 | |||||||||
396 | template <typename T, RefCountAtomicity Atomicity> | ||||||||
397 | SafeRefPtr<T> SafeRefCounted<T, Atomicity>::SafeRefPtrFromThis() { | ||||||||
398 | // this actually is safe | ||||||||
399 | return {static_cast<T*>(this), AcquireStrongRefFromRawPtr{}}; | ||||||||
400 | } | ||||||||
401 | |||||||||
402 | template <typename T> | ||||||||
403 | struct CopyablePtr<SafeRefPtr<T>> { | ||||||||
404 | SafeRefPtr<T> mPtr; | ||||||||
405 | |||||||||
406 | explicit CopyablePtr(SafeRefPtr<T> aPtr) : mPtr{std::move(aPtr)} {} | ||||||||
407 | |||||||||
408 | CopyablePtr(const CopyablePtr& aOther) : mPtr{aOther.mPtr.clonePtr()} {} | ||||||||
409 | CopyablePtr& operator=(const CopyablePtr& aOther) { | ||||||||
410 | if (this != &aOther) { | ||||||||
411 | mPtr = aOther.mPtr.clonePtr(); | ||||||||
412 | } | ||||||||
413 | return *this; | ||||||||
414 | } | ||||||||
415 | CopyablePtr(CopyablePtr&&) = default; | ||||||||
416 | CopyablePtr& operator=(CopyablePtr&&) = default; | ||||||||
417 | }; | ||||||||
418 | |||||||||
419 | } // namespace detail | ||||||||
420 | |||||||||
421 | namespace dom { | ||||||||
422 | /// XXX Move this to BindingUtils.h later on | ||||||||
423 | template <class T, class S> | ||||||||
424 | inline RefPtr<T> StrongOrRawPtr(SafeRefPtr<S>&& aPtr) { | ||||||||
425 | return AsRefPtr(std::move(aPtr)); | ||||||||
426 | } | ||||||||
427 | |||||||||
428 | } // namespace dom | ||||||||
429 | |||||||||
430 | } // namespace mozilla | ||||||||
431 | |||||||||
432 | template <class T> | ||||||||
433 | class nsTObserverArray<mozilla::SafeRefPtr<T>> | ||||||||
434 | : public nsAutoTObserverArray<mozilla::SafeRefPtr<T>, 0> { | ||||||||
435 | public: | ||||||||
436 | using base_type = nsAutoTObserverArray<mozilla::SafeRefPtr<T>, 0>; | ||||||||
437 | using size_type = nsTObserverArray_base::size_type; | ||||||||
438 | |||||||||
439 | // Initialization methods | ||||||||
440 | nsTObserverArray() = default; | ||||||||
441 | |||||||||
442 | // Initialize this array and pre-allocate some number of elements. | ||||||||
443 | explicit nsTObserverArray(size_type aCapacity) { | ||||||||
444 | base_type::mArray.SetCapacity(aCapacity); | ||||||||
445 | } | ||||||||
446 | |||||||||
447 | nsTObserverArray Clone() const { | ||||||||
448 | auto result = nsTObserverArray{}; | ||||||||
449 | result.mArray = mozilla::TransformIntoNewArray( | ||||||||
450 | this->mArray, [](const auto& ptr) { return ptr.clonePtr(); }); | ||||||||
451 | return result; | ||||||||
452 | } | ||||||||
453 | }; | ||||||||
454 | |||||||||
455 | // Use MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED in a 'Class' derived from a | ||||||||
456 | // 'Super' class which derives from (Atomic)SafeRefCounted, and from some other | ||||||||
457 | // class using NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING. | ||||||||
458 | #if defined(NS_BUILD_REFCNT_LOGGING1) | ||||||||
459 | # define MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED(Class, Super)template <typename T, ::mozilla::detail::RefCountAtomicity Atomicity> friend class ::mozilla::detail::SafeRefCounted ; virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<Class>, "Reference-counted class " "Class" " should not have a public destructor. " "Make this class's destructor non-public" ); nsrefcnt r = Super::AddRef(); if constexpr (::mozilla::detail ::ShouldLogInheritedRefcnt<Class>) { NS_LogAddRef((this ), (r), ("Class"), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = Super ::Release(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <Class>) { NS_LogRelease((this), (r), ("Class")); } return r; } \ | ||||||||
460 | template <typename T, ::mozilla::detail::RefCountAtomicity Atomicity> \ | ||||||||
461 | friend class ::mozilla::detail::SafeRefCounted; \ | ||||||||
462 | NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType AddRef() override { \ | ||||||||
463 | NS_IMPL_ADDREF_INHERITED_GUTS(Class, Super)static_assert(!std::is_destructible_v<Class>, "Reference-counted class " "Class" " should not have a public destructor. " "Make this class's destructor non-public" ); nsrefcnt r = Super::AddRef(); if constexpr (::mozilla::detail ::ShouldLogInheritedRefcnt<Class>) { NS_LogAddRef((this ), (r), ("Class"), (uint32_t)(sizeof(*this))); } return r; \ | ||||||||
464 | } \ | ||||||||
465 | NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType Release() override { \ | ||||||||
466 | NS_IMPL_RELEASE_INHERITED_GUTS(Class, Super)nsrefcnt r = Super::Release(); if constexpr (::mozilla::detail ::ShouldLogInheritedRefcnt<Class>) { NS_LogRelease((this ), (r), ("Class")); } return r; \ | ||||||||
467 | } | ||||||||
468 | #else // NS_BUILD_REFCNT_LOGGING | ||||||||
469 | # define MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED(Class, Super)template <typename T, ::mozilla::detail::RefCountAtomicity Atomicity> friend class ::mozilla::detail::SafeRefCounted ; virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<Class>, "Reference-counted class " "Class" " should not have a public destructor. " "Make this class's destructor non-public" ); nsrefcnt r = Super::AddRef(); if constexpr (::mozilla::detail ::ShouldLogInheritedRefcnt<Class>) { NS_LogAddRef((this ), (r), ("Class"), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = Super ::Release(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <Class>) { NS_LogRelease((this), (r), ("Class")); } return r; } \ | ||||||||
470 | template <typename T, ::mozilla::detail::RefCountAtomicity Atomicity> \ | ||||||||
471 | friend class ::mozilla::detail::SafeRefCounted; \ | ||||||||
472 | NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType AddRef() override { \ | ||||||||
473 | return Super::AddRef(); \ | ||||||||
474 | } \ | ||||||||
475 | NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType Release() override { \ | ||||||||
476 | return Super::Release(); \ | ||||||||
477 | } | ||||||||
478 | #endif | ||||||||
479 | |||||||||
480 | #endif |
1 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 | |
7 | #ifndef mozilla_RefPtr_h |
8 | #define mozilla_RefPtr_h |
9 | |
10 | #include "mozilla/AlreadyAddRefed.h" |
11 | #include "mozilla/Assertions.h" |
12 | #include "mozilla/Attributes.h" |
13 | #include "mozilla/DbgMacro.h" |
14 | |
15 | #include <type_traits> |
16 | |
17 | /*****************************************************************************/ |
18 | |
19 | // template <class T> class RefPtrGetterAddRefs; |
20 | |
21 | class nsQueryReferent; |
22 | class nsCOMPtr_helper; |
23 | class nsISupports; |
24 | |
25 | namespace mozilla { |
26 | template <class T> |
27 | class MovingNotNull; |
28 | template <class T> |
29 | class NotNull; |
30 | template <class T> |
31 | class OwningNonNull; |
32 | template <class T> |
33 | class StaticLocalRefPtr; |
34 | template <class T> |
35 | class StaticRefPtr; |
36 | |
37 | // Traditionally, RefPtr supports automatic refcounting of any pointer type |
38 | // with AddRef() and Release() methods that follow the traditional semantics. |
39 | // |
40 | // This traits class can be specialized to operate on other pointer types. For |
41 | // example, we specialize this trait for opaque FFI types that represent |
42 | // refcounted objects in Rust. |
43 | // |
44 | // Given the use of ConstRemovingRefPtrTraits below, U should not be a const- |
45 | // qualified type. |
46 | template <class U> |
47 | struct RefPtrTraits { |
48 | static void AddRef(U* aPtr) { aPtr->AddRef(); } |
49 | static void Release(U* aPtr) { aPtr->Release(); } |
50 | }; |
51 | |
52 | } // namespace mozilla |
53 | |
54 | template <class T> |
55 | class MOZ_IS_REFPTR RefPtr { |
56 | private: |
57 | void assign_with_AddRef(T* aRawPtr) { |
58 | if (aRawPtr) { |
59 | ConstRemovingRefPtrTraits<T>::AddRef(aRawPtr); |
60 | } |
61 | assign_assuming_AddRef(aRawPtr); |
62 | } |
63 | |
64 | void assign_assuming_AddRef(T* aNewPtr) { |
65 | T* oldPtr = mRawPtr; |
66 | mRawPtr = aNewPtr; |
67 | if (oldPtr) { |
68 | ConstRemovingRefPtrTraits<T>::Release(oldPtr); |
69 | } |
70 | } |
71 | |
72 | private: |
73 | T* MOZ_OWNING_REF mRawPtr; |
74 | |
75 | public: |
76 | typedef T element_type; |
77 | |
78 | ~RefPtr() { |
79 | if (mRawPtr) { |
80 | ConstRemovingRefPtrTraits<T>::Release(mRawPtr); |
81 | } |
82 | } |
83 | |
84 | // Constructors |
85 | |
86 | RefPtr() |
87 | : mRawPtr(nullptr) |
88 | // default constructor |
89 | {} |
90 | |
91 | RefPtr(const RefPtr<T>& aSmartPtr) |
92 | : mRawPtr(aSmartPtr.mRawPtr) |
93 | // copy-constructor |
94 | { |
95 | if (mRawPtr) { |
96 | ConstRemovingRefPtrTraits<T>::AddRef(mRawPtr); |
97 | } |
98 | } |
99 | |
100 | RefPtr(RefPtr<T>&& aRefPtr) noexcept : mRawPtr(aRefPtr.mRawPtr) { |
101 | aRefPtr.mRawPtr = nullptr; |
102 | } |
103 | |
104 | // construct from a raw pointer (of the right type) |
105 | |
106 | MOZ_IMPLICIT RefPtr(T* aRawPtr) : mRawPtr(aRawPtr) { |
107 | if (mRawPtr) { |
108 | ConstRemovingRefPtrTraits<T>::AddRef(mRawPtr); |
109 | } |
110 | } |
111 | |
112 | MOZ_IMPLICIT RefPtr(decltype(nullptr)) : mRawPtr(nullptr) {} |
113 | |
114 | template <typename I, |
115 | typename = std::enable_if_t<std::is_convertible_v<I*, T*>>> |
116 | MOZ_IMPLICIT RefPtr(already_AddRefed<I>& aSmartPtr) |
117 | : mRawPtr(aSmartPtr.take()) |
118 | // construct from |already_AddRefed| |
119 | {} |
120 | |
121 | template <typename I, |
122 | typename = std::enable_if_t<std::is_convertible_v<I*, T*>>> |
123 | MOZ_IMPLICIT RefPtr(already_AddRefed<I>&& aSmartPtr) |
124 | : mRawPtr(aSmartPtr.take()) |
125 | // construct from |otherRefPtr.forget()| |
126 | {} |
127 | |
128 | template <typename I, |
129 | typename = std::enable_if_t<std::is_convertible_v<I*, T*>>> |
130 | MOZ_IMPLICIT RefPtr(const RefPtr<I>& aSmartPtr) |
131 | : mRawPtr(aSmartPtr.get()) |
132 | // copy-construct from a smart pointer with a related pointer type |
133 | { |
134 | if (mRawPtr) { |
135 | ConstRemovingRefPtrTraits<T>::AddRef(mRawPtr); |
136 | } |
137 | } |
138 | |
139 | template <typename I, |
140 | typename = std::enable_if_t<std::is_convertible_v<I*, T*>>> |
141 | MOZ_IMPLICIT RefPtr(RefPtr<I>&& aSmartPtr) |
142 | : mRawPtr(aSmartPtr.forget().take()) |
143 | // construct from |Move(RefPtr<SomeSubclassOfT>)|. |
144 | {} |
145 | |
146 | template <typename I, |
147 | typename = std::enable_if_t<!std::is_same_v<I, RefPtr<T>> && |
148 | std::is_convertible_v<I, RefPtr<T>>>> |
149 | MOZ_IMPLICIT RefPtr(const mozilla::NotNull<I>& aSmartPtr) |
150 | : mRawPtr(RefPtr<T>(aSmartPtr.get()).forget().take()) |
151 | // construct from |mozilla::NotNull|. |
152 | {} |
153 | |
154 | template <typename I, |
155 | typename = std::enable_if_t<!std::is_same_v<I, RefPtr<T>> && |
156 | std::is_convertible_v<I, RefPtr<T>>>> |
157 | MOZ_IMPLICIT RefPtr(mozilla::MovingNotNull<I>&& aSmartPtr) |
158 | : mRawPtr(RefPtr<T>(std::move(aSmartPtr).unwrapBasePtr()).forget().take()) |
159 | // construct from |mozilla::MovingNotNull|. |
160 | {} |
161 | |
162 | MOZ_IMPLICIT RefPtr(const nsQueryReferent& aHelper); |
163 | MOZ_IMPLICIT RefPtr(const nsCOMPtr_helper& aHelper); |
164 | |
165 | // Defined in OwningNonNull.h |
166 | template <class U> |
167 | MOZ_IMPLICIT RefPtr(const mozilla::OwningNonNull<U>& aOther); |
168 | |
169 | // Defined in StaticLocalPtr.h |
170 | template <class U> |
171 | MOZ_IMPLICIT RefPtr(const mozilla::StaticLocalRefPtr<U>& aOther); |
172 | |
173 | // Defined in StaticPtr.h |
174 | template <class U> |
175 | MOZ_IMPLICIT RefPtr(const mozilla::StaticRefPtr<U>& aOther); |
176 | |
177 | // Assignment operators |
178 | |
179 | RefPtr<T>& operator=(decltype(nullptr)) { |
180 | assign_assuming_AddRef(nullptr); |
181 | return *this; |
182 | } |
183 | |
184 | RefPtr<T>& operator=(const RefPtr<T>& aRhs) |
185 | // copy assignment operator |
186 | { |
187 | assign_with_AddRef(aRhs.mRawPtr); |
188 | return *this; |
189 | } |
190 | |
191 | template <typename I> |
192 | RefPtr<T>& operator=(const RefPtr<I>& aRhs) |
193 | // assign from an RefPtr of a related pointer type |
194 | { |
195 | assign_with_AddRef(aRhs.get()); |
196 | return *this; |
197 | } |
198 | |
199 | RefPtr<T>& operator=(T* aRhs) |
200 | // assign from a raw pointer (of the right type) |
201 | { |
202 | assign_with_AddRef(aRhs); |
203 | return *this; |
204 | } |
205 | |
206 | template <typename I> |
207 | RefPtr<T>& operator=(already_AddRefed<I>& aRhs) |
208 | // assign from |already_AddRefed| |
209 | { |
210 | assign_assuming_AddRef(aRhs.take()); |
211 | return *this; |
212 | } |
213 | |
214 | template <typename I> |
215 | RefPtr<T>& operator=(already_AddRefed<I>&& aRhs) |
216 | // assign from |otherRefPtr.forget()| |
217 | { |
218 | assign_assuming_AddRef(aRhs.take()); |
219 | return *this; |
220 | } |
221 | |
222 | RefPtr<T>& operator=(const nsQueryReferent& aQueryReferent); |
223 | RefPtr<T>& operator=(const nsCOMPtr_helper& aHelper); |
224 | |
225 | template <typename I, |
226 | typename = std::enable_if_t<std::is_convertible_v<I*, T*>>> |
227 | RefPtr<T>& operator=(RefPtr<I>&& aRefPtr) noexcept { |
228 | assign_assuming_AddRef(aRefPtr.forget().take()); |
229 | return *this; |
230 | } |
231 | |
232 | template <typename I, |
233 | typename = std::enable_if_t<std::is_convertible_v<I, RefPtr<T>>>> |
234 | RefPtr<T>& operator=(const mozilla::NotNull<I>& aSmartPtr) |
235 | // assign from |mozilla::NotNull|. |
236 | { |
237 | assign_assuming_AddRef(RefPtr<T>(aSmartPtr.get()).forget().take()); |
238 | return *this; |
239 | } |
240 | |
241 | template <typename I, |
242 | typename = std::enable_if_t<std::is_convertible_v<I, RefPtr<T>>>> |
243 | RefPtr<T>& operator=(mozilla::MovingNotNull<I>&& aSmartPtr) |
244 | // assign from |mozilla::MovingNotNull|. |
245 | { |
246 | assign_assuming_AddRef( |
247 | RefPtr<T>(std::move(aSmartPtr).unwrapBasePtr()).forget().take()); |
248 | return *this; |
249 | } |
250 | |
251 | // Defined in OwningNonNull.h |
252 | template <class U> |
253 | RefPtr<T>& operator=(const mozilla::OwningNonNull<U>& aOther); |
254 | |
255 | // Defined in StaticLocalPtr.h |
256 | template <class U> |
257 | RefPtr<T>& operator=(const mozilla::StaticLocalRefPtr<U>& aOther); |
258 | |
259 | // Defined in StaticPtr.h |
260 | template <class U> |
261 | RefPtr<T>& operator=(const mozilla::StaticRefPtr<U>& aOther); |
262 | |
263 | // Other pointer operators |
264 | |
265 | void swap(RefPtr<T>& aRhs) |
266 | // ...exchange ownership with |aRhs|; can save a pair of refcount operations |
267 | { |
268 | T* temp = aRhs.mRawPtr; |
269 | aRhs.mRawPtr = mRawPtr; |
270 | mRawPtr = temp; |
271 | } |
272 | |
273 | void swap(T*& aRhs) |
274 | // ...exchange ownership with |aRhs|; can save a pair of refcount operations |
275 | { |
276 | T* temp = aRhs; |
277 | aRhs = mRawPtr; |
278 | mRawPtr = temp; |
279 | } |
280 | |
281 | already_AddRefed<T> MOZ_MAY_CALL_AFTER_MUST_RETURN forget() |
282 | // return the value of mRawPtr and null out mRawPtr. Useful for |
283 | // already_AddRefed return values. |
284 | { |
285 | T* temp = nullptr; |
286 | swap(temp); |
287 | return already_AddRefed<T>(temp); |
288 | } |
289 | |
290 | template <typename I> |
291 | void forget(I** aRhs) |
292 | // Set the target of aRhs to the value of mRawPtr and null out mRawPtr. |
293 | // Useful to avoid unnecessary AddRef/Release pairs with "out" |
294 | // parameters where aRhs bay be a T** or an I** where I is a base class |
295 | // of T. |
296 | { |
297 | MOZ_ASSERT(aRhs, "Null pointer passed to forget!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(aRhs)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(aRhs))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("aRhs" " (" "Null pointer passed to forget!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h" , 297); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRhs" ") (" "Null pointer passed to forget!" ")"); do { *((volatile int*)__null) = 297; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); |
298 | *aRhs = mRawPtr; |
299 | mRawPtr = nullptr; |
300 | } |
301 | |
302 | void forget(nsISupports** aRhs) { |
303 | MOZ_ASSERT(aRhs, "Null pointer passed to forget!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(aRhs)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(aRhs))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("aRhs" " (" "Null pointer passed to forget!" ")", "/var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h" , 303); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRhs" ") (" "Null pointer passed to forget!" ")"); do { *((volatile int*)__null) = 303; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); |
304 | *aRhs = ToSupports(mRawPtr); |
305 | mRawPtr = nullptr; |
306 | } |
307 | |
308 | T* get() const |
309 | /* |
310 | Prefer the implicit conversion provided automatically by |operator T*() |
311 | const|. Use |get()| to resolve ambiguity or to get a castable pointer. |
312 | */ |
313 | { |
314 | return const_cast<T*>(mRawPtr); |
315 | } |
316 | |
317 | operator T*() const& |
318 | /* |
319 | ...makes an |RefPtr| act like its underlying raw pointer type whenever it |
320 | is used in a context where a raw pointer is expected. It is this operator |
321 | that makes an |RefPtr| substitutable for a raw pointer. |
322 | |
323 | Prefer the implicit use of this operator to calling |get()|, except where |
324 | necessary to resolve ambiguity. |
325 | */ |
326 | { |
327 | return get(); |
328 | } |
329 | |
330 | // Don't allow implicit conversion of temporary RefPtr to raw pointer, |
331 | // because the refcount might be one and the pointer will immediately become |
332 | // invalid. |
333 | operator T*() const&& = delete; |
334 | |
335 | // These are needed to avoid the deleted operator above. XXX Why is operator! |
336 | // needed separately? Shouldn't the compiler prefer using the non-deleted |
337 | // operator bool instead of the deleted operator T*? |
338 | explicit operator bool() const { return !!mRawPtr; } |
339 | bool operator!() const { return !mRawPtr; } |
340 | |
341 | T* operator->() const MOZ_NO_ADDREF_RELEASE_ON_RETURN { |
342 | MOZ_ASSERT(mRawPtr != nullptr,do { static_assert( mozilla::detail::AssertionConditionType< decltype(mRawPtr != nullptr)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mRawPtr != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mRawPtr != nullptr" " (" "You can't dereference a NULL RefPtr with operator->()." ")", "/var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h" , 343); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr != nullptr" ") (" "You can't dereference a NULL RefPtr with operator->()." ")"); do { *((volatile int*)__null) = 343; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) |
343 | "You can't dereference a NULL RefPtr with operator->().")do { static_assert( mozilla::detail::AssertionConditionType< decltype(mRawPtr != nullptr)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mRawPtr != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mRawPtr != nullptr" " (" "You can't dereference a NULL RefPtr with operator->()." ")", "/var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h" , 343); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr != nullptr" ") (" "You can't dereference a NULL RefPtr with operator->()." ")"); do { *((volatile int*)__null) = 343; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); |
344 | return get(); |
345 | } |
346 | |
347 | template <typename R, typename... Args> |
348 | class Proxy { |
349 | typedef R (T::*member_function)(Args...); |
350 | T* mRawPtr; |
351 | member_function mFunction; |
352 | |
353 | public: |
354 | Proxy(T* aRawPtr, member_function aFunction) |
355 | : mRawPtr(aRawPtr), mFunction(aFunction) {} |
356 | template <typename... ActualArgs> |
357 | R operator()(ActualArgs&&... aArgs) { |
358 | return ((*mRawPtr).*mFunction)(std::forward<ActualArgs>(aArgs)...); |
359 | } |
360 | }; |
361 | |
362 | template <typename R, typename... Args> |
363 | Proxy<R, Args...> operator->*(R (T::*aFptr)(Args...)) const { |
364 | MOZ_ASSERT(mRawPtr != nullptr,do { static_assert( mozilla::detail::AssertionConditionType< decltype(mRawPtr != nullptr)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mRawPtr != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mRawPtr != nullptr" " (" "You can't dereference a NULL RefPtr with operator->*()." ")", "/var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h" , 365); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr != nullptr" ") (" "You can't dereference a NULL RefPtr with operator->*()." ")"); do { *((volatile int*)__null) = 365; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) |
365 | "You can't dereference a NULL RefPtr with operator->*().")do { static_assert( mozilla::detail::AssertionConditionType< decltype(mRawPtr != nullptr)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mRawPtr != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mRawPtr != nullptr" " (" "You can't dereference a NULL RefPtr with operator->*()." ")", "/var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h" , 365); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr != nullptr" ") (" "You can't dereference a NULL RefPtr with operator->*()." ")"); do { *((volatile int*)__null) = 365; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); |
366 | return Proxy<R, Args...>(get(), aFptr); |
367 | } |
368 | |
369 | RefPtr<T>* get_address() |
370 | // This is not intended to be used by clients. See |address_of| |
371 | // below. |
372 | { |
373 | return this; |
374 | } |
375 | |
376 | const RefPtr<T>* get_address() const |
377 | // This is not intended to be used by clients. See |address_of| |
378 | // below. |
379 | { |
380 | return this; |
381 | } |
382 | |
383 | public: |
384 | T& operator*() const { |
385 | MOZ_ASSERT(mRawPtr != nullptr,do { static_assert( mozilla::detail::AssertionConditionType< decltype(mRawPtr != nullptr)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mRawPtr != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mRawPtr != nullptr" " (" "You can't dereference a NULL RefPtr with operator*()." ")", "/var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h" , 386); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr != nullptr" ") (" "You can't dereference a NULL RefPtr with operator*()." ")"); do { *((volatile int*)__null) = 386; __attribute__((nomerge )) ::abort(); } while (false); } } while (false) |
386 | "You can't dereference a NULL RefPtr with operator*().")do { static_assert( mozilla::detail::AssertionConditionType< decltype(mRawPtr != nullptr)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mRawPtr != nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mRawPtr != nullptr" " (" "You can't dereference a NULL RefPtr with operator*()." ")", "/var/lib/jenkins/workspace/firefox-scan-build/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h" , 386); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr != nullptr" ") (" "You can't dereference a NULL RefPtr with operator*()." ")"); do { *((volatile int*)__null) = 386; __attribute__((nomerge )) ::abort(); } while (false); } } while (false); |
387 | return *get(); |
388 | } |
389 | |
390 | T** StartAssignment() { |
391 | assign_assuming_AddRef(nullptr); |
392 | return reinterpret_cast<T**>(&mRawPtr); |
393 | } |
394 | |
395 | private: |
396 | // This helper class makes |RefPtr<const T>| possible by casting away |
397 | // the constness from the pointer when calling AddRef() and Release(). |
398 | // |
399 | // This is necessary because AddRef() and Release() implementations can't |
400 | // generally expected to be const themselves (without heavy use of |mutable| |
401 | // and |const_cast| in their own implementations). |
402 | // |
403 | // This should be sound because while |RefPtr<const T>| provides a |
404 | // const view of an object, the object itself should not be const (it |
405 | // would have to be allocated as |new const T| or similar to be const). |
406 | template <class U> |
407 | struct ConstRemovingRefPtrTraits { |
408 | static void AddRef(U* aPtr) { mozilla::RefPtrTraits<U>::AddRef(aPtr); } |
409 | static void Release(U* aPtr) { mozilla::RefPtrTraits<U>::Release(aPtr); } |
410 | }; |
411 | template <class U> |
412 | struct ConstRemovingRefPtrTraits<const U> { |
413 | static void AddRef(const U* aPtr) { |
414 | mozilla::RefPtrTraits<U>::AddRef(const_cast<U*>(aPtr)); |
415 | } |
416 | static void Release(const U* aPtr) { |
417 | mozilla::RefPtrTraits<U>::Release(const_cast<U*>(aPtr)); |
418 | } |
419 | }; |
420 | }; |
421 | |
422 | class nsCycleCollectionTraversalCallback; |
423 | template <typename T> |
424 | void CycleCollectionNoteChild(nsCycleCollectionTraversalCallback& aCallback, |
425 | T* aChild, const char* aName, uint32_t aFlags); |
426 | |
427 | template <typename T> |
428 | inline void ImplCycleCollectionUnlink(RefPtr<T>& aField) { |
429 | aField = nullptr; |
430 | } |
431 | |
432 | template <typename T> |
433 | inline void ImplCycleCollectionTraverse( |
434 | nsCycleCollectionTraversalCallback& aCallback, RefPtr<T>& aField, |
435 | const char* aName, uint32_t aFlags = 0) { |
436 | CycleCollectionNoteChild(aCallback, aField.get(), aName, aFlags); |
437 | } |
438 | |
439 | template <class T> |
440 | inline RefPtr<T>* address_of(RefPtr<T>& aPtr) { |
441 | return aPtr.get_address(); |
442 | } |
443 | |
444 | template <class T> |
445 | inline const RefPtr<T>* address_of(const RefPtr<T>& aPtr) { |
446 | return aPtr.get_address(); |
447 | } |
448 | |
449 | template <class T> |
450 | class RefPtrGetterAddRefs |
451 | /* |
452 | ... |
453 | |
454 | This class is designed to be used for anonymous temporary objects in the |
455 | argument list of calls that return COM interface pointers, e.g., |
456 | |
457 | RefPtr<IFoo> fooP; |
458 | ...->GetAddRefedPointer(getter_AddRefs(fooP)) |
459 | |
460 | DO NOT USE THIS TYPE DIRECTLY IN YOUR CODE. Use |getter_AddRefs()| instead. |
461 | |
462 | When initialized with a |RefPtr|, as in the example above, it returns |
463 | a |void**|, a |T**|, or an |nsISupports**| as needed, that the |
464 | outer call (|GetAddRefedPointer| in this case) can fill in. |
465 | |
466 | This type should be a nested class inside |RefPtr<T>|. |
467 | */ |
468 | { |
469 | public: |
470 | explicit RefPtrGetterAddRefs(RefPtr<T>& aSmartPtr) |
471 | : mTargetSmartPtr(aSmartPtr) { |
472 | // nothing else to do |
473 | } |
474 | |
475 | operator void**() { |
476 | return reinterpret_cast<void**>(mTargetSmartPtr.StartAssignment()); |
477 | } |
478 | |
479 | operator T**() { return mTargetSmartPtr.StartAssignment(); } |
480 | |
481 | T*& operator*() { return *(mTargetSmartPtr.StartAssignment()); } |
482 | |
483 | private: |
484 | RefPtr<T>& mTargetSmartPtr; |
485 | }; |
486 | |
487 | template <class T> |
488 | inline RefPtrGetterAddRefs<T> getter_AddRefs(RefPtr<T>& aSmartPtr) |
489 | /* |
490 | Used around a |RefPtr| when |
491 | ...makes the class |RefPtrGetterAddRefs<T>| invisible. |
492 | */ |
493 | { |
494 | return RefPtrGetterAddRefs<T>(aSmartPtr); |
495 | } |
496 | |
497 | // Comparing two |RefPtr|s |
498 | |
499 | template <class T, class U> |
500 | inline bool operator==(const RefPtr<T>& aLhs, const RefPtr<U>& aRhs) { |
501 | return static_cast<const T*>(aLhs.get()) == static_cast<const U*>(aRhs.get()); |
502 | } |
503 | |
504 | template <class T, class U> |
505 | inline bool operator!=(const RefPtr<T>& aLhs, const RefPtr<U>& aRhs) { |
506 | return static_cast<const T*>(aLhs.get()) != static_cast<const U*>(aRhs.get()); |
507 | } |
508 | |
509 | // Comparing an |RefPtr| to a raw pointer |
510 | |
511 | template <class T, class U> |
512 | inline bool operator==(const RefPtr<T>& aLhs, const U* aRhs) { |
513 | return static_cast<const T*>(aLhs.get()) == static_cast<const U*>(aRhs); |
514 | } |
515 | |
516 | template <class T, class U> |
517 | inline bool operator==(const U* aLhs, const RefPtr<T>& aRhs) { |
518 | return static_cast<const U*>(aLhs) == static_cast<const T*>(aRhs.get()); |
519 | } |
520 | |
521 | template <class T, class U> |
522 | inline bool operator!=(const RefPtr<T>& aLhs, const U* aRhs) { |
523 | return static_cast<const T*>(aLhs.get()) != static_cast<const U*>(aRhs); |
524 | } |
525 | |
526 | template <class T, class U> |
527 | inline bool operator!=(const U* aLhs, const RefPtr<T>& aRhs) { |
528 | return static_cast<const U*>(aLhs) != static_cast<const T*>(aRhs.get()); |
529 | } |
530 | |
531 | template <class T, class U> |
532 | inline bool operator==(const RefPtr<T>& aLhs, U* aRhs) { |
533 | return static_cast<const T*>(aLhs.get()) == const_cast<const U*>(aRhs); |
534 | } |
535 | |
536 | template <class T, class U> |
537 | inline bool operator==(U* aLhs, const RefPtr<T>& aRhs) { |
538 | return const_cast<const U*>(aLhs) == static_cast<const T*>(aRhs.get()); |
539 | } |
540 | |
541 | template <class T, class U> |
542 | inline bool operator!=(const RefPtr<T>& aLhs, U* aRhs) { |
543 | return static_cast<const T*>(aLhs.get()) != const_cast<const U*>(aRhs); |
544 | } |
545 | |
546 | template <class T, class U> |
547 | inline bool operator!=(U* aLhs, const RefPtr<T>& aRhs) { |
548 | return const_cast<const U*>(aLhs) != static_cast<const T*>(aRhs.get()); |
549 | } |
550 | |
551 | // Comparing an |RefPtr| to |nullptr| |
552 | |
553 | template <class T> |
554 | inline bool operator==(const RefPtr<T>& aLhs, decltype(nullptr)) { |
555 | return aLhs.get() == nullptr; |
556 | } |
557 | |
558 | template <class T> |
559 | inline bool operator==(decltype(nullptr), const RefPtr<T>& aRhs) { |
560 | return nullptr == aRhs.get(); |
561 | } |
562 | |
563 | template <class T> |
564 | inline bool operator!=(const RefPtr<T>& aLhs, decltype(nullptr)) { |
565 | return aLhs.get() != nullptr; |
566 | } |
567 | |
568 | template <class T> |
569 | inline bool operator!=(decltype(nullptr), const RefPtr<T>& aRhs) { |
570 | return nullptr != aRhs.get(); |
571 | } |
572 | |
573 | // MOZ_DBG support |
574 | |
575 | template <class T> |
576 | std::ostream& operator<<(std::ostream& aOut, const RefPtr<T>& aObj) { |
577 | return mozilla::DebugValue(aOut, aObj.get()); |
578 | } |
579 | |
580 | /*****************************************************************************/ |
581 | |
582 | template <class T> |
583 | inline already_AddRefed<T> do_AddRef(T* aObj) { |
584 | RefPtr<T> ref(aObj); |
585 | return ref.forget(); |
586 | } |
587 | |
588 | template <class T> |
589 | inline already_AddRefed<T> do_AddRef(const RefPtr<T>& aObj) { |
590 | RefPtr<T> ref(aObj); |
591 | return ref.forget(); |
592 | } |
593 | |
594 | namespace mozilla { |
595 | |
596 | template <typename T> |
597 | class AlignmentFinder; |
598 | |
599 | // Provide a specialization of AlignmentFinder to allow MOZ_ALIGNOF(RefPtr<T>) |
600 | // with an incomplete T. |
601 | template <typename T> |
602 | class AlignmentFinder<RefPtr<T>> { |
603 | public: |
604 | static const size_t alignment = alignof(T*); |
605 | }; |
606 | |
607 | /** |
608 | * Helper function to be able to conveniently write things like: |
609 | * |
610 | * already_AddRefed<T> |
611 | * f(...) |
612 | * { |
613 | * return MakeAndAddRef<T>(...); |
614 | * } |
615 | */ |
616 | template <typename T, typename... Args> |
617 | already_AddRefed<T> MakeAndAddRef(Args&&... aArgs) { |
618 | RefPtr<T> p(new T(std::forward<Args>(aArgs)...)); |
619 | return p.forget(); |
620 | } |
621 | |
622 | /** |
623 | * Helper function to be able to conveniently write things like: |
624 | * |
625 | * auto runnable = |
626 | * MakeRefPtr<ErrorCallbackRunnable<nsIDOMGetUserMediaSuccessCallback>>( |
627 | * mOnSuccess, mOnFailure, *error, mWindowID); |
628 | */ |
629 | template <typename T, typename... Args> |
630 | RefPtr<T> MakeRefPtr(Args&&... aArgs) { |
631 | RefPtr<T> p(new T(std::forward<Args>(aArgs)...)); |
632 | return p; |
633 | } |
634 | |
635 | } // namespace mozilla |
636 | |
637 | /** |
638 | * Deduction guide to allow simple `RefPtr` definitions from an |
639 | * already_AddRefed<T> without repeating the type, e.g.: |
640 | * |
641 | * RefPtr ptr = MakeAndAddRef<SomeType>(...); |
642 | */ |
643 | template <typename T> |
644 | RefPtr(already_AddRefed<T>) -> RefPtr<T>; |
645 | |
646 | #endif /* mozilla_RefPtr_h */ |
1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | |
5 | #ifndef mozilla_cxxalloc_h |
6 | #define mozilla_cxxalloc_h |
7 | |
8 | /* |
9 | * We implement the default operators new/delete as part of |
10 | * libmozalloc, replacing their definitions in libstdc++. The |
11 | * operator new* definitions in libmozalloc will never return a NULL |
12 | * pointer. |
13 | * |
14 | * Each operator new immediately below returns a pointer to memory |
15 | * that can be delete'd by any of |
16 | * |
17 | * (1) the matching infallible operator delete immediately below |
18 | * (2) the matching system |operator delete(void*, std::nothrow)| |
19 | * (3) the matching system |operator delete(void*) noexcept(false)| |
20 | * |
21 | * NB: these are declared |noexcept(false)|, though they will never |
22 | * throw that exception. This declaration is consistent with the rule |
23 | * that |::operator new() noexcept(false)| will never return NULL. |
24 | * |
25 | * NB: mozilla::fallible can be used instead of std::nothrow. |
26 | */ |
27 | |
28 | #ifndef MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline |
29 | # define MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline MFBT_API__attribute__((weak)) __attribute__((visibility("default"))) |
30 | #endif |
31 | |
32 | MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void* operator new(size_t size) noexcept(false) { |
33 | return moz_xmalloc(size); |
34 | } |
35 | |
36 | MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void* operator new(size_t size, |
37 | const std::nothrow_t&) noexcept(true) { |
38 | return malloc_implmalloc(size); |
39 | } |
40 | |
41 | MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void* operator new[](size_t size) noexcept(false) { |
42 | return moz_xmalloc(size); |
43 | } |
44 | |
45 | MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void* operator new[](size_t size, |
46 | const std::nothrow_t&) noexcept(true) { |
47 | return malloc_implmalloc(size); |
48 | } |
49 | |
50 | MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void operator delete(void* ptr) noexcept(true) { |
51 | return free_implfree(ptr); |
52 | } |
53 | |
54 | MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void operator delete(void* ptr, |
55 | const std::nothrow_t&) noexcept(true) { |
56 | return free_implfree(ptr); |
57 | } |
58 | |
59 | MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void operator delete[](void* ptr) noexcept(true) { |
60 | return free_implfree(ptr); |
61 | } |
62 | |
63 | MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void operator delete[]( |
64 | void* ptr, const std::nothrow_t&) noexcept(true) { |
65 | return free_implfree(ptr); |
66 | } |
67 | |
68 | #if defined(XP_WIN) |
69 | // We provide the global sized delete overloads unconditionally because the |
70 | // MSVC runtime headers do, despite compiling with /Zc:sizedDealloc- |
71 | MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void operator delete(void* ptr, |
72 | size_t /*size*/) noexcept(true) { |
73 | return free_implfree(ptr); |
74 | } |
75 | |
76 | MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void operator delete[](void* ptr, |
77 | size_t /*size*/) noexcept(true) { |
78 | return free_implfree(ptr); |
79 | } |
80 | #endif |
81 | |
82 | #endif /* mozilla_cxxalloc_h */ |